13 dir.
Append(
"/tree/cernstaff.C");
15 gROOT->SetMacroPath(dir);
16 gROOT->ProcessLine(
".x cernbuild.C");
23 c1->
cd(1);
gPad->SetGrid();
24 T->
Draw(
"Nation:Division>>hN",
"",
"text");
30 c1->
cd(2);
gPad->SetGrid();
31 gPad->SetLeftMargin(0.12);
32 T->
Draw(
"Cost:Nation>>hNation",
"",
"prof,goff");
34 hNation->
SetTitle(
"Average Cost per Nation");
43 c1->
cd(3);
gPad->SetGrid();
45 TH1F *hFR =
new TH1F(
"hFR",
"FR",12,3,15);
48 T->
Draw(
"Grade>>hFR",
"Nation==\"FR\"");
49 TH1F *hCH =
new TH1F(
"hCH",
"CH",12,3,15);
52 T->
Draw(
"Grade>>hCH",
"Nation==\"CH\"");
53 TH1F *hIT =
new TH1F(
"hIT",
"IT",12,3,15);
56 T->
Draw(
"Grade>>hIT",
"Nation==\"IT\"");
57 TH1F *hDE =
new TH1F(
"hDE",
"DE",12,3,15);
60 T->
Draw(
"Grade>>hDE",
"Nation==\"DE\"");
61 TH1F *hGB =
new TH1F(
"hGB",
"GB",12,3,15);
64 T->
Draw(
"Grade>>hGB",
"Nation==\"GB\"");
75 c1->
cd(4);
gPad->SetGrid();
77 T->
Draw(
"Age>>hRetired",
"Age>(65-2002+1988)",
"same");
89 pt->
AddText(
"People at CERN in 1988");
90 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.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
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 void SetFillStyle(Style_t fstyle)
Set the fill area style.
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.
TString & Append(const char *cs)
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
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)
See GetStatOverflows for more information.
Draw all kinds of Arrows.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.