29 void rf102_dataimport()
52 RooPlot* frame =
x.frame(
Title(
"Imported TH1 with Poisson error bars")) ;
68 RooPlot* frame2 =
x.frame(
Title(
"Imported TH1 with internal errors")) ;
70 gauss.plotOn(frame2) ;
88 TTree*
tree = makeTTree() ;
110 RooPlot* frame3 =
y.frame(
Title(
"Unbinned data shown in default frame binning")) ;
114 RooPlot* frame4 =
y.frame(
Title(
"Unbinned data shown with custom binning")) ;
115 ds.plotOn(frame4,
Binning(20)) ;
118 TCanvas* c =
new TCanvas(
"rf102_dataimport",
"rf102_dataimport",800,800) ;
134 TH1D* hh =
new TH1D(
"hh",
"hh",25,-10,10) ;
135 for (
int i=0 ; i<100 ; i++) {
146 TTree* tree =
new TTree(
"tree",
"tree") ;
149 tree->Branch(
"x",px,
"x/D") ;
150 tree->Branch(
"y",py,
"y/D") ;
151 for (
int i=0 ; i<100 ; i++) {
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 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...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
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).
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooCmdArg Binning(const RooAbsBinning &binning)