Re: ROOT / Athena standard problem with (nested) templates (map + set)

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 11 Jun 2012 13:10:53 -0500


Hi Alexander,

Note that I added the part:

  gInterpreter->GenerateDictionary("map<unsigned int,set<unsigned int>*>","set;map");

which is indeed compulsory to make it work correctly in your case.

Cheers,
Philippe.

On 6/8/12 12:13 PM, Alexander Mann wrote:
>
> Hi Philippe,
>
> this somehow doesn't work for me (even on the command line). See the attached text file.
>
> I also attached to auto-generated dictionary which now has an empty include directive.
>
> cu
> Alexander
>
>
> On 06/08/2012 06:53 PM, Philippe Canal wrote:
>> Hi Alexander,
>>
>> You can try:
>>
>> echo 'gInterpreter->GenerateDictionary("set<unsigned int>","set");
>> gInterpreter->GenerateDictionary("map<unsigned int,set<unsigned int>*
>> >","set;map"); gROOT->ProcessLine(".x t1.C")' | root.exe -l
>>
>> Cheers,
>> Philippe.
>>
>> On 6/8/12 11:47 AM, Alexander Mann wrote:
>>>
>>> Hi Philippe,
>>>
>>> I was afraid so :) What if I run it like
>>>
>>> > root -l template_test.C
>>>
>>> as I would when running this as a grid job, is there a way to pass
>>> this on the command line (or any other trick)?
>>>
>>> cu
>>> Alexander
>>>
>>>
>>>
>>> On 06/08/2012 06:31 PM, Philippe Canal wrote:
>>>> Hi Alexander,
>>>>
>>>> On the command line, before the .L template_test.C
>>>>
>>>> Cheers,
>>>> Philippe.
>>>>
>>>> On 6/8/12 11:28 AM, Alexander Mann wrote:
>>>>>
>>>>> Hi Philippe,
>>>>>
>>>>> OK, but where do I put this line in my example? (So that it is
>>>>> executed early enough.)
>>>>>
>>>>> cu
>>>>> Alexander
>>>>>
>>>>>
>>>>> On 06/08/2012 06:14 PM, Philippe Canal wrote:
>>>>>> Hi,
>>>>>>
>>>>>> So the problem is that a partial dictionary for set<unsigned int> is
>>>>>> loaded that interferes with the proper operations.
>>>>>> You could to explicitly generate it before hand by doing:
>>>>>>
>>>>>> gInterpreter->GenerateDictionary("set<unsigned int>","set");
>>>>>>
>>>>>> Cheers,
>>>>>> Philippe.
>
Received on Mon Jun 11 2012 - 20:10:58 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 11 2012 - 23:50:01 CEST