Dear experts,
Just to verify for my understanding: since the only way to add entries to a TClonesArray is with ‘new with placement’, which is impossible in Python, it’s not possible to fill TClonesArrays with PyROOT, right? So I should just switch to TObjArrays?
My ‘problem’ with this is that TObjArrays cannot be split, unlike TClonesArrays. Would it help to use the TTree::Branch(TCollection*,…) method? If so, could someone show me an example, please? I tried it but it kept crashing python.
(Why all this? I want to selectively copy some particles from the TPythia6::GetListOfParticles() TClonesArray.)
Thanks,
Jeroen