How To - rooFit
Kenji Hamano
Last modified : Sep 01, 2005
Back to How To
Back to Home
Note that in analysis-26, no need to do these steps 1 and 2.
1. In analysis-25, check out RooFitBabar, RooFitCore and RooFitModels
> addpkg RooFitBabar V02-00-02
> addpkg RooFitCore V02-00-04
> addpkg RooFitModels V02-00-04
In older release, the Babar specific RooFitBabar was in Babar cvs.
And we needed to check out RooFitCore and RooFitModels from rooFit cvs.
So, in older way,
Check out RooFitBabar and extract scripts
> addpkg RooFitBabar V02-00-02
> gmake RooFitBabar.binscripts
The script addpkg_rf allows to check out RooFit packages in the same style as other BaBar software packages
> addpkg_rf RooFitCore V02-00-04
> addpkg_rf RooFitModels V02-00-04
2. Compile rooFit
> gmake RooFitCore.root
> gmake RooFitModels.root
> gmake RooFitBabar.root
3. Add these lines to your RooLogon.C in your workdir. Well, actually these lines are already in RooLogon.C, so you just need to uncomment these lines.
// ROOLOGON RECIPE FOR LIBRARIES BUILT WITH
// gmake RooFitXXX.root
//
gSystem->Load("libMinuit") ; // REQUIRED FOR ROOT4
loadSrtLib("RooFitCore") ;
loadSrtLib("RooFitModels") ;
using namespace RooFit ; // CHANGED!
Here is the instruction on the Babar website.
Here is the required tags for physics analysis.
Here is tutorials.