14 TPad *pad1 =
new TPad(
"pad1",
"",0,0,1,1);
15 TPad *pad2 =
new TPad(
"pad2",
"",0,0,1,1);
21 TH1F *h2 =
new TH1F(
"h2",
"h2",100,-3,3);
23 for (
Int_t i=0;i<100000;i++) {
26 if (i <1000) h1->
Fill(x1);
43 pad2->
Range(xmin-0.1*dx,ymin-0.1*dy,xmax+0.1*dx,ymax+0.1*dy);
54 TGaxis *axis =
new TGaxis(xmax,ymin,xmax,ymax,ymin,ymax,50510,
"+L");
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...
virtual void SetX2NDC(Double_t x2)
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Update()
Update pad.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The histogram statistics painter class.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
static const double x2[5]
This is the base class for the ROOT Random number generators.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
virtual void SetX1NDC(Double_t x1)
The most important graphics class in the ROOT system.
static const double x1[5]
virtual void SetFillStyle(Style_t fstyle)
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
void SetLabelColor(Int_t labelcolor)
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
TList * GetListOfFunctions() const
void Modified(Bool_t flag=1)