Hi Colin, You give the answer yourself to your problem! Why did you remove ClassDef/ClassImp for your class? This information is required for objects inserted in a TClonesArray. Rene Brun On Sun, 25 Jun 2000, Colin Bernet wrote: > Hi, > > I wanted to adapt the Event and Track classes to my needs, so I just > renamed the Track class as Hit, removed some methods and the ClassImp, > ClassDef. I may have removed too many things, cause now I get this > message when adding a Hit to the TClonesArray in Event : > > Error in <TClonesArray::operator[]>: invalid class specified in > TClonesArray ctor > > Then a segmentation fault occurs in the TObject constructor (Hit > inherits from TObject). > > Could you help ? > thanks, > > Colin > > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:28 MET