Re: [ROOT] Q: Write/Read a ROOT file with STL vector?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jul 19 2003 - 19:56:38 MEST


Hi Junichi,

On Sun, 20 Jul 2003 Junichi.Tanaka@cern.ch wrote:

> Hello Rene,
> 
> thank you for your quick reply.
> I could write and read a ROOT file.
> By the way, you added //|| not to split
> std::vector<TLorentzVector> Vect;.
> At page 204 of the User's manual v3.5,
> that is, "the Rules for Splitting",
> we can see that most STL containers are supported.
> Why do I need to add //|| to this case?

We do not support (yet) STL collections in split mode.
This will come with the next version where STL will be a first class
citizen. Currently you have to specify the "no split ||" in the
data member comment field if the data member is of the form
  std::vector<someclass>;

Rene Brun

> 
> Best Regards,
> Junichi.Tanaka@cern.ch
> 
> From: Rene Brun <Rene.Brun@cern.ch>
> Subject: Re: [ROOT] Q: Write/Read a ROOT file with STL vector?
> Date: Sat, 19 Jul 2003 17:56:00 +0200 (MEST)
> 
> > Hi Junichi,
> > 
> > see the tar file in attachement.
> > A few diffs in all files.
> > You had two main problems
> > 
> > -in MyCLinkDef.h  note the "MyClass+" instead of "MyClass"
> > -in MyC.h note the comment field for member Vect
> > 
> > Rene Brun
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET