{ // create template class for Selector to run on a tree ////////////////////////////////////////////////////// // // open root file containing the Tree TFile f("conductivity_experiment.root"); // create TTree object from it TTree *t; f.GetObject("cond_data",t); // this generates the files MySelector.h and MySelector.C t->MakeSelector("MySelector"); }