Hi Cynthia,
>From the look of it, you started from the Event.h and Event.cxx in
the ROOT test directory.
If this is the case, to have the split level 0 working correcting you
need to update the Streamer function (void Event::Streamer(TBuffer &R__b)
) in Event.cxx) to contain your new data members.
Philippe.
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Hadjidakis Cynthia
> Sent: Monday, November 06, 2000 2:49 AM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] problem with the creation of a tree
>
>
>
> Hi,
>
> I use the root 2.25 version.
> I have a problem with the split level of the Branch method :
>
> tree=new TTree(name,title);
> tree->Branch("event","TClasEvent",&event,100000,0);
>
> I have some arguments to my class TClasEvent (FLoat_t beam_energy,...).
>
> TCLasEvent::TClasEvent(){
> fNtrack = 0;
> if (!gTracks) gTracks = new TClonesArray("TTrack", 5);
> fTracks = gTracks;
> //.....
> beam_energy = -1;
>
> }
>
> If I make a tree with the split level 1, it seems ok. But with the split
> level 0, when I read the beam_energy data , I have anything.
>
> Is there something else to do ?
>
> Thank you, Cynthia
>
>
>
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET