31 class TestBasic803 :
public RooFitTestUnit
34 TestBasic803(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"MC Study with param rand. and Z calc",refFile,writeRef,verbose) {} ;
44 RooRealVar mjjj(
"mjjj",
"m(3jet) (GeV)",100,85.,350.) ;
48 RooRealVar wtop(
"wtop",
"m(top) resolution",15.2) ;
49 RooGaussian sig(
"sig",
"top signal",mjjj,mtop,wtop) ;
52 RooRealVar c0(
"c0",
"Chebychev coefficient 0",-0.846,-1.,1.) ;
53 RooRealVar c1(
"c1",
"Chebychev coefficient 1", 0.112,-1.,1.) ;
54 RooRealVar c2(
"c2",
"Chebychev coefficient 2", 0.076,-1.,1.) ;
58 RooRealVar nsig(
"nsig",
"number of signal events",53,0,1e3) ;
59 RooRealVar nbkg(
"nbkg",
"number of background events",103,0,5e3) ;
112 TH1* dll_vs_ngen =
new TH2F(
"h_dll_vs_ngen" ,
"",40,0,500,40,0,50) ;
113 TH1* z_vs_ngen =
new TH2F(
"h_z_vs_ngen" ,
"",40,0,500,40,0,10) ;
114 TH1* errnsig_vs_ngen =
new TH2F(
"h_nsigerr_vs_ngen",
"",40,0,500,40,0,30) ;
115 TH1* errnsig_vs_nsig =
new TH2F(
"h_nsigerr_vs_nsig",
"",40,0,200,40,0,30) ;
122 regTH(dll_vs_ngen,
"rf803_dll_vs_ngen") ;
123 regTH(z_vs_ngen,
"rf803_z_vs_ngen") ;
124 regTH(errnsig_vs_ngen,
"rf803_errnsig_vs_ngen") ;
125 regTH(errnsig_vs_nsig,
"rf803_errnsig_vs_nsig") ;
void sampleSumUniform(const RooArgSet ¶mSet, Double_t lo, Double_t hi)
Request uniform smearing of sum of parameters in paramSet uniform smearing in range [lo...
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
RooCmdArg Binned(Bool_t flag=kTRUE)
const RooDataSet & fitParDataSet()
Return a RooDataSet the resulting fit parameters of each toy cycle.
RooCmdArg PrintEvalErrors(Int_t numErrors)
RooCmdArg Extended(Bool_t flag=kTRUE)
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)
RooDLLSignificanceMCSModule is an add-on modules to RooMCStudy that calculates the significance of a ...
RooCmdArg FitOptions(const char *opts)
RooRealVar represents a fundamental (non-derived) real valued object.
RooRandomizeParamMCSModule is an add-on modules to RooMCStudy that allows you to randomize input gene...
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.
you should not use this method at all Int_t Int_t z
Chebychev polynomial p.d.f.
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F