RE: [ROOT] hadd difficulties

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Apr 01 2004 - 20:37:42 MEST


Hi,

The current hadd is unable to handle TTree inside directory.
The patch in attachment fixes the problem (i.e. you'll need
to rebuild hadd).

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Andy Buckley
Sent: Thursday, April 01, 2004 7:58 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] hadd difficulties


I'm trying to merge several ntuples produced by LHCb experiment analysis
software with the latest (as bundled with ROOT 4.00/03) version of hadd.
I'm getting errors as below from the program (not just if I try to merge
a file with itself, but it seems an interesting comparison given the
messages):

buckley@pcem:~/davinci/job/test$ hadd new.root test.root test.root
Target file: new.root
Source file 1: test.root
Source file 2: test.root
Found subdirectory Bu2KsPi
Found subdirectory LL
Error in <TChain::LoadTree>: cannot find tree with name Stats in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name Stats in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name pi in file test.root
Error in <TChain::LoadTree>: cannot find tree with name pi in file test.root
Error in <TChain::LoadTree>: cannot find tree with name K in file test.root
Error in <TChain::LoadTree>: cannot find tree with name K in file test.root
Error in <TChain::LoadTree>: cannot find tree with name B in file test.root
Error in <TChain::LoadTree>: cannot find tree with name B in file test.root
Error in <TChain::LoadTree>: cannot find tree with name Comb in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name Comb in file
test.root
Found subdirectory UU
Error in <TChain::LoadTree>: cannot find tree with name Stats in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name Stats in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name pi in file test.root
Error in <TChain::LoadTree>: cannot find tree with name pi in file test.root
Error in <TChain::LoadTree>: cannot find tree with name K in file test.root
Error in <TChain::LoadTree>: cannot find tree with name K in file test.root
Error in <TChain::LoadTree>: cannot find tree with name B in file test.root
Error in <TChain::LoadTree>: cannot find tree with name B in file test.root
Error in <TChain::LoadTree>: cannot find tree with name Comb in file
test.root
Error in <TChain::LoadTree>: cannot find tree with name Comb in file
test.root

The files are perfectly readable via the TBrowser and in some code that
I've got specifically for their structure, but hadd doesn't seem to like
them. Any ideas? I've put test.root online at
http://www.hep.phy.cam.ac.uk/~buckley/test.root

Andy

--
Andy Buckley, HEP Group, Cavendish Lab, Cambridge
http://www.insectnation.org




################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET