Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
tree502_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/io/tree/tree500_cernbuild.C

{
auto f = TFile::Open("cernstaff.root");
auto T = f->Get<TTree>("T");
T->Draw("Grade:Age:Cost:Division:Nation", "", "gl5d");
if (gPad)
gPad->Print("staff.C.png");
}
#define f(i)
Definition RSha256.hxx:104
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define gPad
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:4131
A TTree represents a columnar dataset.
Definition TTree.h:79
void Draw(Option_t *opt) override
Default Draw method for all objects.
Definition TTree.h:432
Author
Rene Brun

Definition in file tree502_staff.C.