Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Copy the declarations of variables and branches to private members of the FileEvent_trg.h (as private members).
  2. Copy only the initialization of the variables and setbranchaddress SetBranchAddress from the Init(TTree *tree) functions to function to the function SetBranches() in FileEvent_trg.cxx function SetBranches (Note again that only the initialization of variables and SetBranchAddress() should be copied)
  3. Open FileEvent_trg.cxx and FileEvent_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:

  1. step
  2. step
  3. 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)