Dear ROOTers,
I have implemented a classe which has to be used as "base" for several
further implementations.
I was convinced that it had to inherit from TObject if I want to add it
to the dictionary (and use ClassDef and ClassImp), then I did.
Then, I implemented another class which inherited from TSelector and
from my "base" class, and this caused several errors due to ambiguities
whenever a TObject method was called, because both classes from which it
inherited are derived from TObject.
I thought that in principle my "base" class defines a simple operation, and it must never be stored into files or trees (it is a class which reads some data and converts them into another format). Then, to remove all these ambiguities, I thought: can I still use ClassDef and ClassImp when my class does NOT inherit from TObject? What kind of performance do I loose in this case? Should I also add or change somethind in the LinkDef line related to this class?
Thanks a lot and best regards
Alberto Received on Tue Sep 18 2007 - 12:31:33 CEST
This archive was generated by hypermail 2.2.0 : Tue Sep 18 2007 - 17:50:01 CEST