31 class TestBasic607 :
public RooFitTestUnit
34 TestBasic607(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Fit Result functionality",refFile,writeRef,verbose) {} ;
44 RooRealVar mean(
"mean",
"mean of gaussians",5,-10,10) ;
45 RooRealVar sigma1(
"sigma1",
"width of gaussians",0.5,0.1,10) ;
46 RooRealVar sigma2(
"sigma2",
"width of gaussians",1,0.1,10) ;
48 RooGaussian sig1(
"sig1",
"Signal component 1",
x,mean,sigma1) ;
49 RooGaussian sig2(
"sig2",
"Signal component 2",
x,mean,sigma2) ;
57 RooRealVar sig1frac(
"sig1frac",
"fraction of component 1 in signal",0.8,0.,1.) ;
61 RooRealVar bkgfrac(
"bkgfrac",
"fraction of background",0.5,0.,1.) ;
88 for (
Int_t i=0 ; i<10000 ; i++) {
93 TH1* hhrand = randPars.createHistogram(
"hhrand",sigma1,
Binning(35,0.25,0.65),
YVar(sig1frac,
Binning(35,0.3,1.1))) ;
95 regTH(hcorr,
"rf607_hcorr") ;
96 regTH(hhrand,
"rf607_hhand") ;
RooAddPdf is an efficient implementation of a sum of PDFs of the form.
const RooArgList & floatParsFinal() const
const RooArgList & randomizePars() const
Return a list of floating parameter values that are perturbed from the final fit values by random amo...
R__EXTERN TStyle * gStyle
RooRealVar represents a fundamental (non-derived) real valued object.
TH2 * correlationHist(const char *name="correlation_matrix") const
Return TH2D of correlation matrix.
Service class for 2-Dim histogram classes.
RooDataSet is a container class to hold unbinned data.
virtual void add(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0)
Add a data point, with its coordinates specified in the 'data' argset, to the data set...
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
RooCmdArg Save(Bool_t flag=kTRUE)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Chebychev polynomial p.d.f.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
RooCmdArg Binning(const RooAbsBinning &binning)