'DATA AND CATEGORIES' RooFit tutorial macro #404
Working with RooCategory objects to describe discrete variables
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf404_categories.C...
void rf404_categories()
{
tagCat.defineType("Lepton") ;
tagCat.defineType("Kaon") ;
tagCat.defineType("NetTagger-1") ;
tagCat.defineType("NetTagger-2") ;
tagCat.Print() ;
b0flav.defineType("B0",-1) ;
b0flav.defineType("B0bar",1) ;
b0flav.Print() ;
cout << "Number of events with B0 flavor is " << nb0 << endl ;
cout << "Fraction of events tagged with Lepton tag is " << fracLep << endl ;
tagCat.setRange("good","Lepton,Kaon") ;
tagCat.addToRange("soso","NetTagger-1") ;
tagCat.addToRange("soso","NetTagger-2") ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf404_categories.C.