Hi, I first thought the recent change to have BrIOModule to derive from BrModule was to blame. After having checkout this morning and re-created everything + run test I do not think so. I assume you are reading an 'old' .root file i.w. previously digitized file. I suspect that a eventnode Object (i.e. member of DataTable or a BrDataObject) have had it's members changed. When this is done the Root streamer method has to be manually inserted in order to read old files. Could you try to created another new digitized file and read it- to check if problme persists? ----- Original Message ----- From: Peter H. L. Christiansen <pchristi@nbi.dk> To: <brahms-dev-l@bnl.gov> Sent: Tuesday, June 06, 2000 6:29 AM Subject: Brat Problems > Hi > > Since updating my brat this morning I have had problems with reading > files. > > When I try to open files from geantdig with BrIOModule I get the error : > Error in <TBuffer::ReadClass>: illegal class tag=721481991 (0<tag<=2), I/O > buffer corrupted > File created at with fFileMode = 0 is opened > > The program doesn't crash, but when i do file->Event( event ); the BrEvent > event is empty. > -- > A very small problem with the new version is that every time I compile > something ( programs/libraries ) I get this warning when linking : > > /nfs/hehi/hehi20/hehi/pchristi/brat/brat/include/BrIOModule.h: In method > `Char_t * BrIOModule::GetFileName() const': > In file included from > /nfs/hehi/hehi20/hehi/pchristi/brat/brat/include/BrEventIO.h:49, > from TPM1efftest.cc:18: > /nfs/hehi/hehi20/hehi/pchristi/brat/brat/include/BrIOModule.h:75: warning: > return to `Char_t *' from `const char *' discards const > This is also a problem for Sanders who runs on a PPC linux system with a newer version of gcc that makes a real hickup on this. I admittedly do not understand all the subtle aspects of 'const' and is puzlled on this. the inline fct says: .. Char_t* GetFileName() const {return fFileName;} .. and the datadefinition is protected: Char_t fFileName[256]; file:// ! Current InputFileName Int_t fStatus; // Status of Module Action So why is fFileName 'considered const char??' in the return; ( > Looking in BrIOModule.h I see that something has changed recently with > this inline function, but I don't understand how to make the warning go > away. > > I hope that someone can help me > Peter > > :-) --------------------------------- )-: > |Peter H L Christiansen aka PAN @ NBI | > |EMAIL : pchristi@nbi.dk | > |OFFICE : Tb1 @ NBI | > |PHONE : 353 25269 <- New!! | > |SNAIL : Sdr. Fasanvej 14 ST 2000 F | > |PHONE : 38 872042 | > :-D --------------------------------- \-: > >
This archive was generated by hypermail 2b29 : Tue Jun 06 2000 - 09:43:20 EDT