I developed a class deriving from the TParticle - KAParticle(please see the attached code + xml file for the lcg generation).
The problem is that if i try to write an instance of this class on a TFile a get a strange behaviour.
While with the CINT dictionaries everything is fine, with the LCG dictionaries I find in the Rootfile only a TParticle object.
thanks for the hint. This works now for single objects in RootFiles.
I am still encountering some problems (seg fault triggered by ROOT::Cintex::ROOTClassEnhancerInfo::IsA ()) when I use the TTree::Fill function to write in a branch a TClonesArray filled with my custom class objects.
This might be unrelated, in any case. I’ll investigate this further and eventually report.