27 class TestBasic404 :
public RooFitTestUnit
30 TestBasic404(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Categories basic functionality",refFile,writeRef,verbose) {} ;
38 tagCat.defineType(
"Lepton") ;
39 tagCat.defineType(
"Kaon") ;
40 tagCat.defineType(
"NetTagger-1") ;
41 tagCat.defineType(
"NetTagger-2") ;
49 RooCategory b0flav(
"b0flav",
"B0 flavour eigenstate") ;
50 b0flav.defineType(
"B0",-1) ;
51 b0flav.defineType(
"B0bar",1) ;
79 regValue(nb0,
"rf404_nb0") ;
83 regValue(fracLep,
"rf404_fracLep") ;
90 tagCat.setRange(
"good",
"Lepton,Kaon") ;
93 tagCat.addToRange(
"soso",
"NetTagger-1") ;
94 tagCat.addToRange(
"soso",
"NetTagger-2") ;
101 regTable(btable,
"rf404_btable") ;
102 regTable(ttable,
"rf404_ttable") ;
103 regTable(bttable,
"rf404_bttable") ;
104 regTable(gtable,
"rf404_gtable") ;
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...
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.