"Accessing an Existing Tree" via python w/ V5.12/00

From: Kazuyoshi Furutaka <furutaka.kazuyoshi_at_jaea.go.jp>
Date: Wed, 12 Jul 2006 16:42:08 +0900 (JST)


Dear rooters,

The example to access an existing tree (p.349 of the manual(July 2006 v5.12)) doesn't work w/ v5.12/00.   Traceback (most recent call last):
    File "accessing.py", line 22, in ?
      nEvent = int(mychain.ev)
  ValueError: invalid literal for int():

In V5.12/00:
>>> mychain

  <ROOT.TTree object ("t1") at 0xa1142b0>
>>> mychain.ev

  <read-write buffer ptr 0xa1ebcd8, size 4 at 0xb7ecc500>

In V5.11/06 (on another machine):
>>> mychain

  <ROOT.TTree object ("t1") at 0x2c9f840>
>>> mychain.ev

  0
  (for the first entry)

Is this a intended change?

Yours,
Kazuyoshi

--
Kazuyoshi Furutaka
furutaka _dot_ kazuyoshi _at_ jaea _dot_ go _dot_ jp
Received on Wed Jul 12 2006 - 09:42:21 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET