19void hist039_TH2Poly_usa()
 
   23   const char *states[
nx] = {
 
   24      "alabama",      
"arizona",      
"arkansas",       
"california",    
"colorado",      
"connecticut",   
"delaware",
 
   25      "florida",      
"georgia",      
"idaho",          
"illinois",      
"indiana",       
"iowa",          
"kansas",
 
   26      "kentucky",     
"louisiana",    
"maine",          
"maryland",      
"massachusetts", 
"michigan",      
"minnesota",
 
   27      "mississippi",  
"missouri",     
"montana",        
"nebraska",      
"nevada",        
"new_hampshire", 
"new_jersey",
 
   28      "new_mexico",   
"new_york",     
"north_carolina", 
"north_dakota",  
"ohio",          
"oklahoma",      
"oregon",
 
   29      "pennsylvania", 
"rhode_island", 
"south_carolina", 
"south_dakota",  
"tennessee",     
"texas",         
"utah",
 
   30      "vermont",      
"virginia",     
"washington",     
"west_virginia", 
"wisconsin",     
"wyoming"};
 
   31   Double_t pop[
nx] = {4708708,  6595778, 2889450,  36961664, 5024748, 3518288,  885122,  18537969, 9829211, 1545801,
 
   32                       12910409, 6423113, 3007856,  2818747,  4314113, 4492076,  1318301, 5699478,  6593587, 9969727,
 
   33                       5266214,  2951996, 5987580,  974989,   1796619, 2643085,  1324575, 8707739,  2009671, 19541453,
 
   34                       9380884,  646844,  11542645, 3687050,  3825657, 12604767, 1053209, 4561242,  812383,  6296254,
 
   35                       24782302, 2784572, 621760,   7882590,  6664195, 1819777,  5654774, 544270};
 
   38   usa->ToggleEventStatus();
 
   45   const auto fileName = 
"usa.root";
 
   46   const auto fileNameUrl = 
"http://root.cern/files/usa.root";
 
   53      printf(
"Cannot access %s. Is internet working ?\n", fileName);
 
   70   for (i = 0; i < 
nx; i++)
 
   71      p->Fill(states[i], pop[i]);
 
   74   p->Draw(
"colz textn");
 
   77   TLatex pupulationRef(-128, 27, 
"#scale[.55]{#splitline{Source:}{http://eadiv.state.wy.us/pop/st-09est.htm}}");
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
R__EXTERN TStyle * gStyle
 
R__EXTERN TSystem * gSystem
 
virtual Bool_t Cp(const char *dst, Bool_t progressbar=kTRUE, UInt_t bufsize=1000000)
Allows to copy this file to the dst URL.
 
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.
 
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.
 
To draw Mathematical Formula.
 
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".
 
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
 
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.