30 class TestBasic702 :
public RooFitTestUnit
33 TestBasic702(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Efficiency operator p.d.f. 2D",refFile,writeRef,verbose) {} ;
54 RooFormulaVar effFunc(
"effFunc",
"((1-ax)+ax*cos((x-cx)/bx))*((1-ay)+ay*cos((y-cy)/by))",
RooArgList(ax,bx,cx,
x,ay,by,cy,
y)) ;
58 cut.defineType(
"accept",1) ;
59 cut.defineType(
"reject",0) ;
67 RooEfficiency effPdf(
"effPdf",
"effPdf",effFunc,cut,
"accept") ;
108 regTH(hh_data_all,
"rf702_hh_data_all") ;
109 regTH(hh_data_sel,
"rf702_hh_data_sel") ;
110 regTH(hh_eff,
"rf702_hh_eff") ;
RooCmdArg Cut(const char *cutSpec)
RooProdPdf is an efficient implementation of a product of PDFs of the form.
virtual void SetMinimum(Double_t minimum=-1111)
RooCmdArg Conditional(const RooArgSet &pdfSet, const RooArgSet &depSet, Bool_t depsAreCond=kFALSE)
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
TH2F * createHistogram(const RooAbsRealLValue &var1, const RooAbsRealLValue &var2, const char *cuts="", const char *name="hist") const
Create a TH2F histogram of the distribution of the specified variable using this dataset.
RooDataSet is a container class to hold unbinned data.
RooCategory represents a fundamental (non-derived) discrete value object.
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooConstVar & RooConst(Double_t val)
RooPolynomial implements a polynomial p.d.f of the form By default coefficient a_0 is chosen to be 1...
RooEfficiency is a PDF helper class to fit efficiencies parameterized by a supplied function F...
RooCmdArg ConditionalObservables(const RooArgSet &set)
RooCmdArg Binning(const RooAbsBinning &binning)