From $ROOTSYS/tutorials/tree/staff.C

void staff() {
   //to create cernstaff.root, execute tutorial $ROOTSYS/tree/cernbuild.C
   TFile *f = TFile::Open("cernstaff.root");
   TTree *T = (TTree*)f->Get("T");
   T->Draw("Grade:Age:Cost:Division:Nation","","gl5d");
}



 staff.C:1
 staff.C:2
 staff.C:3
 staff.C:4
 staff.C:5
 staff.C:6
 staff.C:7
 staff.C:8
 staff.C:9
 staff.C:10