Hi Rene, et al,
On Mon, 2005-01-03 at 11:59 +0100, Rene Brun wrote:
> Hi Christian,
>
> Before cloning the tree/TChain, you must open an ouput file, eg
>
> TChain* tree = new TChain("T");
> tree->Add("*.root");
> TFile *fout = new TFile("merge.root","recreate");
> Tree* clone = tree->CloneTree();
Uhm, I tried that, but it didn't help. I've attached my modified script, as well as a output of running that script. As you'll see in the log, the clone of the chain doesn't read the branch into the array.
Why should I need to open an output file first, when reading from a TChain, while I don't need to do that when reading from a TTree?
Thanks.
Yours,
--
___ | Christian Holm Christensen
|_| | -------------------------------------------------------------
| | Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
_| DK-2200 Copenhagen N Cell: (+45) 24 61 85 91
_| Denmark Office: (+45) 353 25 404
____| Email: cholm_at_nbi.dk Web: www.nbi.dk/~cholm
| |
- text/x-c++src attachment: Mixed.C__charset_ISO-8859-15
- text/x-log attachment: Mixed.log__charset_ISO-8859-15
Received on Mon Jan 03 2005 - 13:12:07 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET