42   ce->ToggleEventStatus();
 
   50      "france",      
"spain",          
"sweden",     
"germany", 
"finland",   
"norway",         
"poland",     
"italy",
 
   51      "yugoslavia",  
"united_kingdom", 
"romania",    
"belarus", 
"greece",    
"czechoslovakia", 
"bulgaria",   
"iceland",
 
   52      "hungary",     
"portugal",       
"austria",    
"ireland", 
"lithuania", 
"latvia",         
"estonia",    
"denmark",
 
   53      "netherlands", 
"switzerland",    
"moldova",    
"belgium", 
"albania",   
"cyprus",         
"luxembourg", 
"andorra",
 
   54      "malta",       
"liechtenstein",  
"san_marino", 
"monaco"};
 
   55   nx] = {547030, 505580, 449964, 357021, 338145, 324220, 312685, 301230, 255438,
 
   56                           244820, 237500, 207600, 131940, 127711, 110910, 103000, 93030,  89242,
 
   57                           83870,  70280,  65200,  64589,  45226,  43094,  41526,  41290,  33843,
 
   58                           30528,  28748,  9250,   2586,   468,    316,    160,    61,     2};
 
   60   TH1F *
h = 
new TH1F(
"h", 
"Countries surfaces (in km^{2})", 3, 0, 3);
 
   61   for (i = 0; i < 
nx; i++)
 
   67   f = 
TFile::Open(
"http://root.cern/files/europe.root", 
"cacheread");
 
   70      printf(
"Cannot access europe.root. Is internet working ?\n");
 
   75      new TH2Poly(
"Europe", 
"Europe (bin contents are normalized to the surfaces in km^{2})", 
lon1, 
lon2, 
lat1, 
lat2);
 
   76   p->GetXaxis()->SetNdivisions(520);
 
   77   p->GetXaxis()->SetTitle(
"longitude");
 
   78   p->GetYaxis()->SetTitle(
"latitude");
 
   98   p->ChangePartition(100, 100);
 
  103   for (i = 0; i < 
npoints; i++) {
 
  112   Int_t nbins = 
p->GetNumberOfBins();
 
  118   for (
j = 0; 
j < 
nx; 
j++) {
 
  119      for (i = 0; i < nbins; i++) {
 
  121            p->GetBinContent(i + 1));
 
  122            p->GetBinError(i + 1));
 
  129   for (i = 0; i < nbins; i++)
 
  130      p->SetBinContent(i + 1, 
scale * 
p->GetBinContent(i + 1));
 
  136   c1->SetRightMargin(0.047);
 
  141   h->SetLineColor(
kRed - 3);
 
  143   h->SetMarkerStyle(20);
 
  145   h->SetMarkerSize(0.8);
 
  147   h->GetXaxis()->SetLabelFont(42);
 
  148   h->GetXaxis()->SetLabelSize(0.03);
 
  149   h->GetYaxis()->SetLabelFont(42);
 
  153   for (i = 0; i < 
nx; i++)
 
  154      h2->GetBinError(i + 1));
 
  156   h2->SetMarkerStyle(20);
 
  157   h2->SetMarkerSize(0.8);
 
  160   leg->SetTextFont(42);
 
  161   leg->SetTextSize(0.025);
 
  162   leg->AddEntry(
h, 
"Real countries surfaces from Wikipedia (in km^{2})", 
"lp");
 
  163   leg->AddEntry(h2, 
"Countries surfaces from TH2Poly (with errors)", 
"lp");
 
  170   printf(
"THPoly Europe surface estimation error wrt wikipedia = %f per cent when using %d points\n", 100 * error,
 
R__EXTERN TBenchmark * gBenchmark
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
R__EXTERN TStyle * gStyle
 
virtual void Start(const char *name)
Starts Benchmark with the specified name.
 
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
 
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
 
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
 
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
 
1-D histogram with a float per channel (see TH1 documentation)
 
2D Histogram with Polygonal Bins
 
Book space in a file, create I/O buffers, to fill them, (un)compress them.
 
virtual TObject * ReadObj()
To read a TObject* from the file.
 
This class displays a legend box (TPaveText) containing several legend entries.
 
A TMultiGraph is a collection of TGraph (or derived) objects.
 
Mother of all ROOT objects.
 
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
 
This is the base class for the ROOT Random number generators.
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
void SetStatX(Float_t x=0)
 
void SetStatW(Float_t w=0.19)
 
void SetStatY(Float_t y=0)
 
Double_t Log(Double_t x)
Returns the natural logarithm of x.
 
Double_t Sqrt(Double_t x)
Returns the square root of x.
 
Double_t Tan(Double_t)
Returns the tangent of an angle of x radians.
 
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.