28 class TestBasic102 :
public RooFitTestUnit
31 TestBasic102(TFile* refFile,
Bool_t writeRef,
Int_t verbose) : RooFitTestUnit(
"Data import methods",refFile,writeRef,verbose) {} ;
37 TH1D* hh =
new TH1D(
"hh",
"hh",25,-10,10) ;
38 for (
int i=0 ; i<100 ; i++) {
49 TTree*
tree =
new TTree(
"tree",
"tree") ;
52 tree->Branch(
"x",px,
"x/D") ;
53 tree->Branch(
"y",py,
"y/D") ;
54 for (
int i=0 ; i<100 ; i++) {
89 RooPlot* frame =
x.frame(
Title(
"Imported TH1 with Poisson error bars")) ;
105 RooPlot* frame2 =
x.frame(
Title(
"Imported TH1 with internal errors")) ;
107 gauss.plotOn(frame2) ;
125 TTree* tree = makeTTree() ;
144 RooPlot* frame3 =
y.frame(
Title(
"Unbinned data shown in default frame binning")) ;
148 RooPlot* frame4 =
y.frame(
Title(
"Unbinned data shown with custom binning")) ;
149 ds.plotOn(frame4,
Binning(20)) ;
152 regPlot(frame ,
"rf102_plot1") ;
153 regPlot(frame2,
"rf102_plot2") ;
154 regPlot(frame3,
"rf102_plot3") ;
155 regPlot(frame4,
"rf102_plot4") ;
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
RooCmdArg Title(const char *name)
RooDataSet is a container class to hold N-dimensional binned data.
RooCmdArg DataError(Int_t)
RooRealVar represents a fundamental (non-derived) real valued object.
R__EXTERN TRandom * gRandom
tomato 1-D histogram with a double per channel (see TH1 documentation)}
RooDataSet is a container class to hold unbinned data.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooCmdArg Import(const char *state, TH1 &histo)
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
RooCmdArg Binning(const RooAbsBinning &binning)