TTree sub-branches

From: Jochen Klein <jochen.klein_at_cern.ch>
Date: Fri, 5 Mar 2010 10:42:33 +0100


Dear all,

I am wondering whether it is possible to create sub-branches for a TTree,
i.e. I would like to create e.g. two branches as they would be created by

class testClass {

   Int_t index;
   TClonesArray ar("someClass");
}

testClass testClass1;
testClass testClass2;

tree->Branch("b1", &testClass1)
tree->Branch("b2", &testClass2)

without implementing testClass (which has no functionality in my case). So
can I create the branches b1/b2 and then add the branches for index and ar
to each of them?

The wanted behaviour could probably also be achieved by first creating folders
but I am looking for a direct way of creating the tree structure.

Thanks for your help,

        Jochen Received on Fri Mar 05 2010 - 10:42:37 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 05 2010 - 11:50:02 CET