49 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)) ;
53 cut.defineType(
"accept",1) ;
54 cut.defineType(
"reject",0) ;
62 RooEfficiency effPdf(
"effPdf",
"effPdf",effFunc,cut,
"accept") ;
106 TCanvas* ca =
new TCanvas(
"rf702_efficiency_2D",
"rf702_efficiency_2D",1200,400) ;
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
RooCmdArg Cut(const char *cutSpec)
RooProdPdf is an efficient implementation of a product of PDFs of the form.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
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.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
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)
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
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)