Re: vector<TVector3>

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 20 Aug 2010 11:58:23 +0200


OK, so it looks like you did not generate a dictionary for your class. At the top of your script you can add

#if defined(__MAKECINT__)
#pragma link C++ class vector<TVector3 >+; 
#endif

and run your script with ACLIC.

For more info read the Users Guide chapter: http://root.cern.ch/download/doc/7CINT.pdf (see pages 94->100)

Rene Brun

Alexandros Attikis wrote:
>
> On 19 Aug 2010, at 12:11, Rene Brun wrote:
>
>> Could you send a short script showing what you are doing?
>> Did you generate a dictionary for vector<TVector3> ?
>>
>
> All i did was declare an std::vector which "carries" TVector3, and
> pushed back a TVector3 to it! Nothing more
> I have used a XYZTVector instead and it seems to work. I had to move
> one :D
>
>
>> Rene Brun
>>
>> Alexandros Attikis wrote:
>>> Hi ROOTers,
>>>
>>> I have a rather simple question: Is the creation of a vector
>>> carrying TVectors not allowed/supported in ROOT?
>>> This is the only explanation I can come up with when I run my
>>> complied macro and I get the run-time error:
>>> *** glibc detected *** .... double free or corruption....
>>>
>>> Cheers,
>>> Alexandros
>>
>
Received on Fri Aug 20 2010 - 11:58:25 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 20 2010 - 23:50:01 CEST