TChain built with pointers to trees

From: Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Wed, 12 Sep 2007 14:20:12 +0200


Dear rooters,

   I would like to know whether it could be possible to build a chain adding trees instead of files. Actually, what I would like to do is something like:

   TTree *tree1 = new TTree("T","Tree test");    TTree *tree2 = new TTree("T","Tree test"); TTree *tree3 = new TTree("T","Tree test");

   TChain *chain = new TChain("T");

   chain->Add(tree1);
   chain->Add(tree2);
   chain->Add(tree3);

   Is it something possible or not? Is there any workaround that I don't know?

   Thank you in advance.

   Regards, Chiara Received on Wed Sep 12 2007 - 14:20:40 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 12 2007 - 17:50:02 CEST