26 void rf404_categories()
34 tagCat.defineType(
"Lepton") ;
35 tagCat.defineType(
"Kaon") ;
36 tagCat.defineType(
"NetTagger-1") ;
37 tagCat.defineType(
"NetTagger-2") ;
46 RooCategory b0flav(
"b0flav",
"B0 flavour eigenstate") ;
47 b0flav.defineType(
"B0",-1) ;
48 b0flav.defineType(
"B0bar",1) ;
82 cout <<
"Number of events with B0 flavor is " << nb0 << endl ;
86 cout <<
"Fraction of events tagged with Lepton tag is " << fracLep << endl ;
94 tagCat.setRange(
"good",
"Lepton,Kaon") ;
97 tagCat.addToRange(
"soso",
"NetTagger-1") ;
98 tagCat.addToRange(
"soso",
"NetTagger-2") ;
Double_t get(const char *label, Bool_t silent=kFALSE) const
Return the table entry named 'label'.
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
RooRealVar represents a fundamental (non-derived) real valued object.
RooCmdArg CutRange(const char *rangeName)
RooDataSet is a container class to hold unbinned data.
RooCategory represents a fundamental (non-derived) discrete value object.
RooDataSet * generate(const RooArgSet &whatVars, Int_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
Generate a new dataset containing the specified variables with events sampled from our distribution...
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
Double_t getFrac(const char *label, Bool_t silent=kFALSE) const
Return the fraction of entries in the table contained in the slot named 'label'.
Roo1DTable implements a one-dimensional table.
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.