11 gROOT->SetMacroPath(dir);
12 gROOT->ProcessLine(
".x cernbuild.C");
19 c1->
cd(1);
gPad->SetGrid();
20 T->
Draw(
"Nation:Division>>hN",
"",
"text");
26 c1->
cd(2);
gPad->SetGrid();
27 gPad->SetLeftMargin(0.12);
28 T->
Draw(
"Cost:Nation>>hNation",
"",
"prof,goff");
30 hNation->
SetTitle(
"Average Cost per Nation");
39 c1->
cd(3);
gPad->SetGrid();
41 TH1F *hFR =
new TH1F(
"hFR",
"FR",12,3,15);
44 T->
Draw(
"Grade>>hFR",
"Nation==\"FR\"");
45 TH1F *hCH =
new TH1F(
"hCH",
"CH",12,3,15);
48 T->
Draw(
"Grade>>hCH",
"Nation==\"CH\"");
49 TH1F *hIT =
new TH1F(
"hIT",
"IT",12,3,15);
52 T->
Draw(
"Grade>>hIT",
"Nation==\"IT\"");
53 TH1F *hDE =
new TH1F(
"hDE",
"DE",12,3,15);
56 T->
Draw(
"Grade>>hDE",
"Nation==\"DE\"");
57 TH1F *hGB =
new TH1F(
"hGB",
"GB",12,3,15);
60 T->
Draw(
"Grade>>hGB",
"Nation==\"GB\"");
71 c1->
cd(4);
gPad->SetGrid();
73 T->
Draw(
"Age>>hRetired",
"Age>(65-2002+1988)",
"same");
85 pt->
AddText(
"People at CERN in 1988");
86 pt->
AddText(
"and retired in 2002");
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
virtual void SetMaximum(Double_t maximum=-1111)
This class displays a legend box (TPaveText) containing several legend entries.
The Histogram stack class.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void SetMinimum(Double_t minimum=-1111)
1-D histogram with a float per channel (see TH1 documentation)}
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual void SetFillStyle(Style_t fstyle)
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void Draw(Option_t *option="")
Draw this arrow with its current attributes.
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SetMarkerStyle(Style_t mstyle=1)
virtual void SetMarkerSize(Size_t msize=1)
A Pave (see TPave) with text, lines or/and boxes inside.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
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.
A TTree object has a header with a name and a title.
virtual void SetTitle(const char *title)
Change (i.e.
Draw all kinds of Arrows.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.