TTree problem

From: PRODUIT Nicolas <Nicolas.Produit_at_obs.unige.ch>
Date: Mon, 06 Mar 2006 17:24:38 +0100


Hi,

I have a problem accessing two different cycles of a TREE in a TFile. I open a root file (there are some warning due to the fact that class used to write the file is not known to root, but this is not a problem) Access a cycle of a tree and then access another cycle, it seems then that I loose access to first cycle.

isdcsf3:0053 495> root


FreeType Engine v2.1.3 used to render TrueType fonts. Compiled for solarisCC5.

CINT/ROOT C/C++ Interpreter version 5.15.159, Nov 14 2004 Type ? for help. Commands must be C++ statements. Enclose multiple statements between { }. root [0] a = new TFile("005300010010.root") Warning in <TClass::TClass>: no dictionary for class TFIOElement is available
Warning in <TClass::TClass>: no dictionary for class TFHeader is available Warning in <TClass::TClass>: no dictionary for class TFAttr<int,IntFormat> is available
Warning in <TClass::TClass>: no dictionary for class TFBaseAttr is available Warning in <TClass::TClass>: no dictionary for class TFAttr<TString,StringFormat> is available

Warning in <TClass::TClass>: no dictionary for class 
TFAttr<double,DoubleFormat> is available
Warning in <TClass::TClass>: no dictionary for class 
TFAttr<bool,BoolFormat> is available
(class TFile*)0xbbfee8
root [1] a->ls()
TFile**         005300010010.root
  TFile*         005300010010.root
   KEY: TFIOElement      isgr_src__lcr_idx_h;1   header
   KEY: TFIOElement      isgr_src__lcr_h;6       header
   KEY: TFIOElement      isgr_src__lcr_h;5       header
   KEY: TFIOElement      isgr_src__lcr_h;4       header
   KEY: TFIOElement      isgr_src__lcr_h;3       header
   KEY: TFIOElement      isgr_src__lcr_h;2       header
   KEY: TFIOElement      isgr_src__lcr_h;1       header
   KEY: TTree    isgr_src__lcr_idx;1     isgr_src__lcr_idx
   KEY: TTree    isgr_src__lcr;6 isgr_src__lcr
   KEY: TTree    isgr_src__lcr;5 isgr_src__lcr
   KEY: TTree    isgr_src__lcr;4 isgr_src__lcr
   KEY: TTree    isgr_src__lcr;3 isgr_src__lcr
   KEY: TTree isgr_src__lcr;2 isgr_src__lcr    KEY: TTree isgr_src__lcr;1 isgr_src__lcr root [2] TTree *t1=(TTree *)a->Get("isgr_src__lcr;1") root [3] t1->Scan("rate","","",1)
-- 
Nicolas Produit
INTEGRAL Science Data Center    Phone:  +41 22 379 2140
16, Chemin d'Ecogia             Fax:    +41 22 379 2133
CH-1290 Versoix                 www:    http://isdc.unige.ch/~produit
Received on Mon Mar 06 2006 - 17:24:46 MET

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