TTrees of object containing TTrees

Hi All,
I’d like to store a TTree of objects that themselves contain a TTree. The TTree is cloned in the constructor of the object:

MyEvent::MyEvent(TTree *injets, int inrun, int inevtno){ theJets = injets->CloneTree(); theMet = 0; //Empty TTree theLeptons = 0; //Empty TTree irun = inrun; ievent = inevtno; }
I then want to store these MyEvent objects in a TTree:

TTree * myEvtTree = new TTree("myEvtTree","Events Tree");
MyEvent *evt = new MyEvent();
myEvtTree->Branch("Events","MyEvent",&evt,32000,10);
evt = new MyEvent(myJetTree, 1, 0);
myEvtTree->Fill();

This however SEGV’s (I’m trying to work out why now) but is this sensible? Is there a better way to store collections of objects? I chose a TTree as it seemed to have functunality that TCollection etc didn’t.
Cheers
Simon

A memory-resident Tree (not associated to a file) should work when
referenced by a class itself in another Tree.
However, it is hard to understand what you want to achieve with this construct).

In your code extract, I do not understand why you need to create
two MyEvent objects in:

MyEvent *evt = new MyEvent(); myEvtTree->Branch("Events","MyEvent",&evt,32000,10); evt = new MyEvent(myJetTree, 1, 0);

An explanation of what you want to do together with the shortest
possible running code is necessary if you want to get more help.

Rene