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") ;
Roo1DTable implements a one-dimensional table.
Double_t get(const char *label, Bool_t silent=kFALSE) const
Return the table entry named 'label'.
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'.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
virtual Roo1DTable * table(const RooArgSet &catSet, const char *cuts="", const char *opts="") const
Construct table for product of categories in catSet.
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())
See RooAbsPdf::generate(const RooArgSet&,const RooCmdArg&,const RooCmdArg&,const RooCmdArg&,...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooCategory represents a fundamental (non-derived) discrete value object.
RooDataSet is a container class to hold unbinned data.
RooPolynomial implements a polynomial p.d.f of the form.
RooRealVar represents a fundamental (non-derived) real valued object.
RooCmdArg CutRange(const char *rangeName)