ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
staff.C File Reference

Create a plot of the data in cernstaff.root. More...

Go to the source code of this file.

Detailed Description

Create a plot of the data in cernstaff.root.

To create cernstaff.root, execute tutorial $ROOTSYS/tutorials/tree/cernbuild.C

pict1_staff.C.png
void staff() {
auto f = TFile::Open("cernstaff.root");
TTree *T = nullptr;
f->GetObject("T",T);
T->Draw("Grade:Age:Cost:Division:Nation","","gl5d");
if (gPad) gPad->Print("staff.C.png");
}
Author
Rene Brun

Definition in file staff.C.