ROOT NTuple Analysis using MakeClass
For NTuple analysis ROOT provides a MakeClass
command that produces analysis skeleton.
Assuming you have an analysis file
containing one tree
NTuple analysis skeleton is created like this:
>CollectionTree->MakeClass("an_skeleton_name") //produces .h and .C files
Analysis can be implemented in the
method which loops over all entries.
For efficiency comment out the branches and variables in the
files you're not using.
- 28 Oct 2008