 
  Playing with a Tree containing variables of type character
  Playing with a Tree containing variables of type character 
 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>>hRetired",
"Age>(65-2002+1988)",
"same");
   pt->
AddText(
"People at CERN in 1988");
   pt->
AddText(
"and retired in 2002");
}
- Author
- Rene Brun 
Definition in file cernstaff.C.