31 class TestBasic802 :
public RooFitTestUnit
34 TestBasic802(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"MC Study with chi^2 calculator",refFile,writeRef,verbose) {} ;
70 TH1* h_chi2 =
new TH1F(
"h_chi2",
"",40,0,20) ;
71 TH1* h_prob =
new TH1F(
"h_prob",
"",40,0,1) ;
82 RooRealVar mean2(
"mean2",
"mean of gaussian 2",0.5) ;
100 TH1* h2_chi2 =
new TH1F(
"h2_chi2",
"",40,0,20) ;
101 TH1* h2_prob =
new TH1F(
"h2_prob",
"",40,0,1) ;
109 regTH(h_chi2,
"rf802_hist_chi2") ;
110 regTH(h2_chi2,
"rf802_hist2_chi2") ;
111 regTH(h_prob,
"rf802_hist_prob") ;
112 regTH(h2_prob,
"rf802_hist2_prob") ;
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
RooCmdArg Binned(Bool_t flag=kTRUE)
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
const RooDataSet & fitParDataSet()
Return a RooDataSet the resulting fit parameters of each toy cycle.
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 const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual TH1 * fillHistogram(TH1 *hist, const RooArgList &plotVars, const char *cuts="", const char *cutRange=0) const
Loop over columns of our tree data and fill the input histogram.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooCmdArg FitModel(RooAbsPdf &pdf)