Re: PyROOT and Athena: Cannot read LVL1NameMap

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 29 Nov 2010 16:39:56 -0600


Shortened traceback (most recent user call last):

   File "./ntuple_trigger_metstatus.py", line 66, in <module>      for trigger in [y.first for y in x]: TypeError: int& map<string,int>::operator[](const string& __k) =>

     could not convert argument 1

What are y and x? Is the argument to the map compatible with a string?

Philippe.

On 11/26/10 10:07 AM, Alexander Mann wrote:
>
> Hi,
>
> I have the same problem as described on
>
> http://root.cern.ch/phpBB3/viewtopic.php?f=14&t=11627
>
> My code runs within Python, but not within Athena. Unfortunately, the solutions described in the forum do not help in my case :( I
> always get
>
> TClass::TClass:0: RuntimeWarning: no dictionary for class AttributeListLayout is available
> Shortened traceback (most recent user call last):
> File "./ntuple_trigger_metstatus.py", line 66, in <module>
> for trigger in [y.first for y in x]:
> TypeError: int& map<string,int>::operator[](const string& __k) =>
> could not convert argument 1
> Py:Athena INFO leaving with code 8: "an unknown exception occurred"
>
> cu,
> Alexander
>
> @tamsett: Can you send me the relevant parts of your code? A minimal example just reading out the LVL1NameMap?
>
Received on Mon Nov 29 2010 - 23:40:30 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 30 2010 - 11:50:01 CET