[ROOT] problem with TClonesArray

From: Zhenyu Han (zhenyu.han@yale.edu)
Date: Tue Nov 26 2002 - 00:51:19 MET


Hi,
    I have a problem about splitting TClonesArray here. I defined a class 
called TEvent, which is inherited from TObject. In TEvent,there is a 
pointer member pointing to a TClonesArray of type TMuon, which is my 
collection of muons.Then I defined another class inherited from TEvent, 
called TJpsiEvent. I want to store my data in a TTree.I create a TTree with a branch of type TJpsiEvent and 
set the split level to a large number. But when I looked at the data, I 
found that the TClonesArray of TMuon doesn't split. I got a single leaf 
for it. But, if I create a branch of type TEvent, I can get the splitted 
TMuon. Does anybody know if I could get a splitted TClonesArray when 
using it in an inherited class?

Zhenyu Han



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:20 MET