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");
83 arrow->SetFillColor(1);
84 arrow->SetFillStyle(1001);
R__EXTERN TSystem * gSystem
Draw all kinds of Arrows.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Set option(s) to draw axis with labels.
virtual void SetMaximum(Double_t maximum=-1111)
virtual void SetMinimum(Double_t minimum=-1111)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
2-D histogram with a float per channel (see TH1 documentation)}
The Histogram stack class.
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
virtual void Draw(Option_t *option="")
Draw this pavetext with its current attributes.
TString & Append(const char *cs)
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
A TTree object has a header with a name and a title.