21   auto c1 = 
new TCanvas(
"c1", 
"c1", 900, 900);
 
   27   right_pad = 
new TPad(
"right_pad", 
"right_pad", 0.55, 0.0, 1.0, 0.6);
 
   30   top_pad = 
new TPad(
"top_pad", 
"top_pad", 0.0, 0.55, 0.6, 1.0);
 
   33   TH2F(
"h2", 
"", 40, -4, 4, 40, -20, 20);
 
   35   for (
Int_t i = 0; i < 25000; i++) {
 
   58   t.
DrawLatex(0.6, 0.88, 
"This example demonstrates how to display");
 
   59   t.
DrawLatex(0.6, 0.85, 
"a histogram and its two projections.");
 
   61   auto ex = 
new TExec(
"zoom", 
"ZoomExec()");
 
   67   int xfirst = h2->GetXaxis()->GetFirst();
 
   68   int xlast = h2->GetXaxis()->GetLast();
 
   69   double h2->GetXaxis()->GetBinLowEdge(xfirst);
 
   70   double h2->GetXaxis()->GetBinUpEdge(xlast);
 
   74   int yfirst = h2->GetYaxis()->GetFirst();
 
   75   int ylast = h2->GetYaxis()->GetLast();
 
   76   double h2->GetYaxis()->GetBinLowEdge(yfirst);
 
   77   double h2->GetYaxis()->GetBinUpEdge(ylast);
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
R__EXTERN TStyle * gStyle
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
1-D histogram with a double per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
To draw Mathematical Formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
The most important graphics class in the ROOT system.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.