Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
makeMySelector.C
Go to the documentation of this file.
1{
2// create template class for Selector to run on a tree
3//////////////////////////////////////////////////////
4//
5// open root file containing the Tree
6 TFile f("conductivity_experiment.root");
7// create TTree object from it
8 TTree *t; f.GetObject("cond_data",t);
9// this generates the files MySelector.h and MySelector.C
10 t->MakeSelector("MySelector");
11}
#define f(i)
Definition RSha256.hxx:104
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
Definition TFile.h:130
A TTree represents a columnar dataset.
Definition TTree.h:89
TTree * t