ROOT NTuple Analysis using MakeClass

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

-- LizaMijovic - 28 Oct 2008
Topic revision: r1 - 28 Oct 2008, LizaMijovic
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback