[ROOT] I don't understand

From: Jano Hruby (fly@pobox.sk)
Date: Wed Mar 24 2004 - 10:35:40 MET


 Hi,
I have this very strange problem:

In MyClsass.h:
#define MAX 100
UShort_t     fMinWidth[MAX];
....

In MyClass.cxx:
void MyClass::AnyFunction() const
{
cout << "before " << fMinWidth[0] << endl;
for (UInt_t j=0; j< all_entries; j++)
  fTree->GetEntry(j);
cout << "after " << fMinWidth[0] << endl;
}

Compile this class -> libMyClass.so
In ROOT:
1) filling array fMinWidth from SQL database, OK
2) for example fMinWidth[0] = 10;
3) analyze for example run01.root (1 000 000 events)
   before 10
   after 10
all is OK
4) analyze for example run02.root
   before 10
   after  56720 !!!
4) analyze to same file run02.root, but only 1000 events
   before 10
   after 10
all is OK

I don't understand, maybe file run02.root is corrupted ?
run01, run02 was created by root_v4.00.00 (CVS ~feb 2004)
Now I using root_v4.00.03 (CVS 22 mar 2004)

Thanks in advance,

 Jano




====================== REKLAMA ========================
Spolocnost SUN Microsystems uviedla na trh novy server Sun Fire V20z
zalozeny procesoroch AMD Opteron.
Viac informacii najdete na : http://www.somi.sk/sun/v20z.php
=======================================================



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET