spider.C: script illustrating the use of the TSpider class | Trees I/O, Queries, Graphics | tcl.C: Example of macro illustrating how to write a TClonesArray to a TTree |
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"); }