Re: [ROOT] Problems with the ClassVersionID

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Mar 25 2002 - 11:42:06 MET


Pierre,

You are still using the old scheme.
We describe the migration procedure from the old Streamers to new Streamers
at page 217 of the Users Guide : chapter "Migrating to Root3"

You can see an example in ROOT class TAxis at:

http://root.cern.ch/root/htmldoc/src/TAxis.cxx.html#TAxis:Streamer

Rene Brun

Pierre Da Silva wrote:
> 
> On Fri, 22 Mar 2002, Rene Brun wrote:
> 
> > Hi Pierre,
> >
> > Did you specify the "+" option in the pragma statement
> > of your LinkDef.h file?
> >
> > Read the section in the Users Guide indicating the steps
> > when moving from the old system to the automatic schema evolution system.
> >
> > Rene Brun
> >
> > On Fri, 22 Mar 2002, Pierre Da Silva wrote:
> 
> Hi Rene,
> 
> When I put the "+" option in the pragma statement, it doesn't work
> anymore!!
> But this is not my biggest problem because it is working for my new files
> without any options.
> Remember that I want to read my old files with the new structure. When I
> put the "-" option to specify
> that I want to use the streamer I wrote, it doesn't use it. In my
> streamer, I have something like :
> 
> void TData::Streamer(TBuffer &R__b)
> {
>         ...
>         ...
>         ...
>         if (R__v > 12) {
> 
>                 R__b >> fCalibStartSecond;
>                 R__b >> fCalibEndSecond;
>         } else {
> 
>                 fCalibStartSecond=0;
>                 fCalibEndSecond=0;
>         }
>         ...
>         ...
>         ...
> }
> 
> I think this is correct, but ROOT seems to use another streamer which is
> not mine. Do you have any idea?
> 
>                                         Pierre



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