Hi
I am trying to access a TNtuple and get a error message which i do not understand.
My commands are
[code] IVTuple = ROOT.TNtuple(self.GetUniqueID(), "IVTuple", varlist) # IVTuple
entries = IVTuple.ReadFile(fileName)
for Entry in IVTuple:
voltage = Entry.Voltage[/code]
When running it on my Mac OS X 10.9.4 I get an TypeError with the message
"TypeError: attempt to bind ROOT object w/o class"
I did IVTuple.Print before running the loop and I get
[code]******************************************************************************
*Tree :IVCurve_98: IVTuple *
*Entries : 46 : Total = 2819 bytes File Size = 0 *
-
: : Tree compression factor = 1.00 *
*Br 0 :Timestamp : Float_t *
*Entries : 46 : Total Size= 852 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *
…
*Br 1 :Voltage : Float_t *
*Entries : 46 : Total Size= 840 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *
…
*Br 2 :Current : Float_t *
*Entries : 46 : Total Size= 840 bytes One basket in memory *
*Baskets : 0 : Basket Size= 32000 bytes Compression= 1.00 *
…[/code]
So it looks ok.
I don’t have any idea what i can do now.
Could you please help?
Cheers
Felix