void cernstaff () {
dir.
Append(
"/tree/cernstaff.C");
gROOT->SetMacroPath(dir);
gROOT->ProcessLine(
".x cernbuild.C");
}
T->Draw("Nation:Division>>hN","","text");
gPad->SetLeftMargin(0.12);
T->Draw("Cost:Nation>>hNation","","prof,goff");
hNation->
SetTitle(
"Average Cost per Nation");
TH1F *hFR =
new TH1F(
"hFR",
"FR",12,3,15);
T->Draw("Grade>>hFR","Nation==\"FR\"");
TH1F *hCH =
new TH1F(
"hCH",
"CH",12,3,15);
T->Draw("Grade>>hCH","Nation==\"CH\"");
TH1F *hIT =
new TH1F(
"hIT",
"IT",12,3,15);
T->Draw("Grade>>hIT","Nation==\"IT\"");
TH1F *hDE =
new TH1F(
"hDE",
"DE",12,3,15);
T->Draw("Grade>>hDE","Nation==\"DE\"");
TH1F *hGB =
new TH1F(
"hGB",
"GB",12,3,15);
T->Draw("Grade>>hGB","Nation==\"GB\"");
T->Draw("Age");
T->Draw("Age>>hRetired","Age>(65-2002+1988)","same");
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 an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
virtual void LabelsOption(Option_t *option="h", Option_t *axis="X")
Sort bins with labels or set option(s) to draw axis with labels.
virtual void SetMaximum(Double_t maximum=-1111)
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetMinimum(Double_t minimum=-1111)
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 Add(TH1 *h, Option_t *option="")
Add a new histogram to the list.
void Draw(Option_t *chopt="") override
Draw this stack with its current attributes.
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.
void Draw(Option_t *option="") override
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.
void Draw(Option_t *option="") override
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 represents a columnar dataset.