TClonesArray inside a TClonesArray


Is it possible to write TClonesArrays inside another TClonesArray. I am having trouble doing it, so I want to make sure before I spend sometime in digging it.

I am having problem in writing the final TClonesArray to a root file.


Ok, I found that only one split branch can be written to a file with TClonesArray, so I tried std::vector instead of TClonesArray but it uses a lot of memory and finally crashes. Looks like problem is with the not-deleted pointers but no idea how to solve this problem. :question: