Obtaining the code
The RooFit code for BaBar consists of 3 packages:
- RooFitCore - The core package
- RooFitModels - Contributed PDF classes and other functions
- RooFitBabar - Babar-specific classes and PDFs
BaBar users need all three packages. Only RooFitBabar is in the BaBar repository,
RooFitCore and RooFitModels reside in a
CVS repository at roofit.sourceforge.net.
To facilitate importing the RooFitCore/Models code in BaBar software releases, RooFitBabar
contains a script addpkg_rf that allows to check out RooFitCore/Models in the
same style as other BaBar software packages are handled:
unix> addpkg [ -h ] RooFitBabar [ <tag> ]
unix> gmake RooFitBabar.binscripts
unix> addpkg_rf [ -h ] RooFitCore [ <tag> ]
unix> addpkg_rf [ -h ] RooFitModels [ <tag> ]
The -h option, without tag, will check out the head.
Once checked out, cvs operations in RooFitCore/RooFitModels (e.g. cvs update -A)
will work as usual and the directories will remain connected to the repository at roofit.sourceforge.net.
Recommended tags for RooFitCore and RooFitModels are listed here.
For ROOT version 4.x, it is suggested that you use RooFitCore/RooFitModels V02-00-05.
In ROOT version 5.x, the RooFit Classes have been built in. In general you don't have to build RooFit by yourself, or you should find the latest tag.
Building the libraries
RooFit is easiest built in a series 12 release as it requires ROOT
version 3.02-07 or higher. Currently no analysis releases are based
on series 12, but the forthcomming analysis-14 release will be.
WV 03/04/05
From release analysis-24 and on, which are based on ROOT4 you'll
need to use RooFit version V01-09-01 or higher. Note that the
RooFit version in analysis-24 is lower so if you want to use
RooFit in this release you'll need to check it out and compile
it yourself. The will of course be fixed in the next analysis release
Compile the libraries as follows:
unix> gmake RooFitCore.root
unix> gmake RooFitModels.root
unix> gmake RooFitBabar.root
See this HN thread for RooFit 1.91 release notes and Quick Start Guide.
RooFit has been tested on the following platforms:
- Linux (RedHat 6.2) with gcc 2.95.2
- Linux (RedHat 7.2) with gcc 2.95.3
- Linux (RedHat 7.2) with gcc 2.96
- Linux (SL3) with gcc 3.2.3
- Windows XP / CygWin with gcc 3.3
- Solaris 5.8 with CC from WorkShop6
- OSF with native compiler
If you observe compiler warnings or errors on other platform/compiler combinations,
please contact us.
|