I have a source file generated in the past with TTree::MakeClass(). I know how to use this to reference the contents of an N-tuple file. I would like to know if there is a way to supply this class in order to create a new N-tuple in a ROOT file with the same structure. I currently have a function with a few hundred lines of “tree->Branch(…);” statements for all the variables, and would love to collapse this down to something like “tree->Branches()” (just pseudocode, of course).
Is this possible under ROOT 4.04/02?