Dear all,
I need to write a vector of a user-defined “Particle” class in a TTree.
My code was working well in ROOT v5.34, so I already have the “VectorParticle_LinkDef.h”, the “ClassImp(Particle)” in the “Praticle.cpp” and the “ClassDef(Particle, 1)” in the “Particle.hpp”. I also have a separate header for “VectorParticle.hpp” which includes and “Particle.hpp”.
My tree was well fed with the Particle class and I could access all the members in a TBrowser. Now with ROOT v6.02 I get the following messages when running my code :
Error in <TCling::RegisterModule>: cannot find dictionary module Dictionary_rdict.pcm
Warning in <TTree::Bronch>: Using split mode on a class: Particle with a custom Streamer
I have a dictionary folder in which a “Dictionary_rdict.pcm” file is created, and I have also noticed that I had a “VectorParticle_LinkDef_rflx_rdict.pcm” file in my “include” folder. I have tried to move them to the folder where the executable is, and even though the TCling message disappears, the TTree seems somewhat broken and I don’t see any member of the particle class. When clicking on the “Particle” object in the TBrowser I receive tenths of error messages of the following sort:
Error in <TBufferFile::CheckByteCount>: object of class vector<Particle> read too few bytes: 18 instead of 138
Many thanks in advance for your help,
Valérian