30 tagCat.defineType(
"Lepton");
31 tagCat.defineType(
"Kaon");
32 tagCat.defineType(
"NetTagger-1");
33 tagCat.defineType(
"NetTagger-2");
40 RooCategory b0flav(
"b0flav",
"B0 flavour eigenstate");
41 b0flav.defineType(
"B0", -1);
42 b0flav.defineType(
"B0bar", 1);
72 cout <<
"Number of events with B0 flavor is " << nb0 << endl;
76 cout <<
"Fraction of events tagged with Lepton tag is " << fracLep << endl;
82 tagCat.setRange(
"good",
"Lepton,Kaon");
85 tagCat.addToRange(
"soso",
"NetTagger-1");
86 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.
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.
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.
Template specialisation used in RooAbsArg:
RooCmdArg CutRange(const char *rangeName)