Re: [ROOT] Re: Object Inheritance.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 21 2002 - 08:22:05 MET


Hi Patrick,

Event.cxx is included in the dependencies in the Makefile. See the
following lines:
EVENTO        = Event.$(ObjSuf) EventDict.$(ObjSuf)
EVENTS        = Event.$(SrcSuf) EventDict.$(SrcSuf)
EVENTSO       = libEvent.$(DllSuf)
EVENT         = Event$(ExeSuf)

About your previous mail:

Note that all objects do not need to derive from TObject for I/O.
You only have advantages however in deriving from TObject.
To write an object, its class must have a Streamer function.
By using the ClassDef macro the Streamer function is automatically
declared. Running rootcint on the class header generates the code for Streamer.
$ROOTSYS/test/makefile is an example of Makefile running the complete chain:
rootcint, compilation, shared lib ,etc.

Rene Brun

Patrick Murray wrote:
> 
> Hi Me Again,
> 
> I see that my question was naive. I think I understand the first part of
> my problem. I am not telling root about my class in the right way.
> 
> So I was trying to understand the Makefile for your Event class. Event.cxx
> is not included as an include file in the .h file or listed in the
> dependencies. So how is it included??
> 
> Thank you,
> 
> Pat



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET