31 void rf802_mcstudy_addons()
72 RooRealVar mean2(
"mean2",
"mean of gaussian 2",0.5) ;
96 TCanvas*
c =
new TCanvas(
"rf802_mcstudy_addons",
"rf802_mcstudy_addons",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...
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
RooCmdArg Binned(Bool_t flag=kTRUE)
const RooDataSet & fitParDataSet()
Return a RooDataSet the resulting fit parameters of each toy cycle.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
void addModule(RooAbsMCStudyModule &module)
Insert given RooMCStudy add-on module to the processing chain of this MCStudy object.
Bool_t generateAndFit(Int_t nSamples, Int_t nEvtPerSample=0, Bool_t keepGenData=kFALSE, const char *asciiFilePat=0)
Generate and fit 'nSamples' samples of 'nEvtPerSample' events.
RooCmdArg Silence(Bool_t flag=kTRUE)
RooRealVar represents a fundamental (non-derived) real valued object.
RooChi2MCSModule is an add-on modules to RooMCStudy that calculates the chi-squared of fitted p...
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.
static constexpr double gauss
RooCmdArg FitModel(RooAbsPdf &pdf)
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.