Logo ROOT  
Reference Guide
staff.C File Reference

Detailed Description

View in nbviewer Open in SWAN Create a plot of the data in cernstaff.root To create cernstaff.root, execute tutorial $ROOTSYS/tutorials/tree/cernbuild.C

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");
}
#define f(i)
Definition: RSha256.hxx:104
#define gPad
Definition: TVirtualPad.h:287
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Definition: TFile.cxx:3942
A TTree represents a columnar dataset.
Definition: TTree.h:78
double T(double x)
Definition: ChebyshevPol.h:34
Definition: staff.py:1
Author
Rene Brun

Definition in file staff.C.