Question about branches with own objects


I have an event class as a branch. This class has pointers to other classes as data members ( and I use //-> ).
It appears to be working fine, however, when i open up a treeviewer it does not split up these classes. I would like it to split this class so I can navigate its members. I have tried using different split levels, but did not notice a change.
Is there a way I can do this, or should I just place each sub event class as a branch of its own?

Whitney Armstrong


The TTree almost never split pointers (except for the case of a TClonesArray and for the case of STL container of pointers (the latter only upon explicit request). To get the splitting behavior will either need to transform those pointer in embedded object or have a top level branch holding them.


Thanks for the reply!