29 void rf501_simultaneouspdf()
58 RooRealVar mean_ctl(
"mean_ctl",
"mean_ctl",-3,-8,8) ;
62 RooRealVar a0_ctl(
"a0_ctl",
"a0_ctl",-0.1,-1,1) ;
63 RooRealVar a1_ctl(
"a1_ctl",
"a1_ctl",0.5,-0.1,1) ;
86 sample.defineType(
"physics") ;
87 sample.defineType(
"control") ;
101 simPdf.addPdf(
model,
"physics") ;
102 simPdf.addPdf(model_ctl,
"control") ;
110 simPdf.fitTo(combData) ;
121 combData.plotOn(frame1,
Cut(
"sample==sample::physics")) ;
127 simPdf.plotOn(frame1,
Slice(sample,
"physics"),
ProjWData(sample,combData)) ;
132 combData.plotOn(frame2,
Cut(
"sample==sample::control")) ;
133 simPdf.plotOn(frame2,
Slice(sample,
"control"),
ProjWData(sample,combData)) ;
138 TCanvas*
c =
new TCanvas(
"rf501_simultaneouspdf",
"rf403_simultaneouspdf",800,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...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooCmdArg Cut(const char *cutSpec)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
RooCmdArg ProjWData(const RooAbsData &projData, Bool_t binData=kFALSE)
RooCmdArg Title(const char *name)
RooCmdArg LineStyle(Style_t style)
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet is a container class to hold unbinned data.
RooCategory represents a fundamental (non-derived) discrete value object.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg Index(RooCategory &icat)
RooCmdArg Components(const RooArgSet &compSet)
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.
RooCmdArg Bins(Int_t nbin)
Chebychev polynomial p.d.f.
RooCmdArg Slice(const RooArgSet &sliceSet)
RooSimultaneous facilitates simultaneous fitting of multiple PDFs to subsets of a given dataset...
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.