Hi. Have you tried to make your class inherit from TObject (class Vec3D :public TObject {…)? I think this way you would use the “ROOT defined” streamer for input/output
I hope this fix the problem
Hi @EVTO
first of all i would thanks you for your reply .
i try to do same changes in my code but i get this message
1-class Track : public Vec3D{
2-class Vec3D : public TObject {
Error in <TTree::Branch>: The actual class (TObject) of the object provided for the definition of the branch "TrackList_" does not inherit from Track
(analyse2) @0xec6c30
ROOT needs to know how to store your classes. That info is called “a dictionary”. You can get it simply by running .L analyse.C+ (note the trailing +), and putting
#ifdef __CLING__
#pragma link C++ class Vec3D+;
#endif
Hi @eddymaoui. I think this way you create a branch with a buffer of 2 bytes and 32000 splitting of the branch. Maybe you want the opposite, (… , … ,32000, 2)?