GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TLeaf * EvapLMOF::GetLeaf ( const char *  leafname = "no")

To get a ROOT leaf corresponding to one of the variable.

It helps you to write general macros to fill histograms. A leaf is a pointer to one of the value of the global record, the id record, the data record or the kinematic record. For instance, the following part of code fills the gamma multiplicity histogram. To get the Z distribution of the residus, just change "MG" by "Z".

EvapLMOF pax; pax.AddFile("my.pax");
TLeaf *x = pax.GetLeaf("MG"), *w = pax.GetLeaf("WT");
while( pax.NextEvent() ) { histo.Fill(x->GetValue(),w->GetValue()); }

Definition at line 633 of file EvapLMOF.cpp.