31void 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) ;
RooChi2MCSModule is an add-on modules to RooMCStudy that calculates the chi-squared of fitted p....
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.
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies,...
const RooDataSet & fitParDataSet()
Return a RooDataSet the resulting fit parameters of each toy cycle.
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.
void addModule(RooAbsMCStudyModule &module)
Insert given RooMCStudy add-on module to the processing chain of this MCStudy object.
RooRealVar represents a fundamental (non-derived) real valued object.
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...
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
RooCmdArg Binned(Bool_t flag=kTRUE)
RooCmdArg Silence(Bool_t flag=kTRUE)
void FitModel(RooWorkspace *, std::string data_name="obsData")
static constexpr double gauss