...
- Copy the declarations of variables and branches to private members of the
FileEvent_trg.h
(as private members). - Copy only the initialization of the variables and setbranchaddress SetBranchAddress from the
Init(TTree *tree)
functions to function to the functionSetBranches()
inFileEvent_trg.cxx
function SetBranches (Note again that only the initialization of variables and SetBranchAddress() should be copied) - Open
FileEvent_trg.cxx
andFileEvent_trg.h
and search and replace template with trg
The last step is to schedule this to be recognized in the main macro. Open ana.C
:
- step
- step
- step
Now you are ready to run. There is a help script to submit many jobs:
phansson@pcphuat27/u1/phansson/jetmetbtag/flatana/trunk/topologies/example% ./ana.sh l2rate 10
And you can also start via root:
phansson@pcphuat27/u1/phansson/jetmetbtag/flatana/trunk/topologies/example% root -l
root 0 .L ana.C
root 1 ana(14,"enbias",10)
root 1 ana(14,"tt",10)