Hi Alexandros,
Also with the code in trunk (and thus in v5.27/06 and up), you can also use:
gInterpreter->GenerateDictionary("vector<TVector3>","TVector3.h");
to easily generate the dictionary for the vector.
Cheers,
Philippe.
On 8/20/10 4:58 AM, Rene Brun wrote:
> 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 - 18:51:56 CEST
This archive was generated by hypermail 2.2.0 : Sat Aug 21 2010 - 17:50:01 CEST