[ROOT] zero TClones -> bad tree?

From: Dr. John Krane (jkrane@netzero.com)
Date: Fri Jul 04 2003 - 01:50:56 MEST


Hi,

I'm running my file over a limited sample to test it.  My sample is 
small enough that there are not all of the event types present that I 
anticipate in the full sample.  As a result, some of my Branches have 
TClonesArrays with zero members.

When I run my Tree-maker with all branches present, I get zero entries 
in all branches.  If I turn off all branches except one, which has 
entries in the TClonesArray, I get a good tree.  By the way, all 
branches consist of a single object, which has a good default 
constructor; by default, a TClonesArray is created for a specific 
object, and with a specific maximum number of elements -- I just don't 
always put any elements in before I fill the tree.

Does anybody else get this behavior?  For instance, if you have an event 
with zero tracks, does that wreck your tree?  If you have track-finding 
turned off or something so *every* event has no tracks, does that wreck 
your tree?

(Since this is a three-day weekend for us, I have the luxury of testing 
my code with the entire sample this one time, but it is hard to justify 
during the week.)

	- John



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET