[ROOT] Root IO questions

From: Johnson, Tony S. (tony_johnson@SLAC.stanford.edu)
Date: Thu Aug 09 2001 - 20:09:39 MEST


Dear Rooters, I have a couple of ROOT IO/StremerInfo questions.

I am trying to read some root files generated by GLAST using my Root IO for Java package. They are using Root 3.00/6. I have found two strange features. First they have a class which contains:


   enum {
        L1T_Wait_Bit = 0x00100000,
        Cpu_Busy_Bit = 0x00080000,
        Fifo_Full_Trap_Bit = 0x00040000,
        Fifo_Full_Bit = 0x00020000,
        Fifo_Half_Trap_Bit = 0x00010000,
        Fifo_Half_Bit = 0x00008000,
        Tkr_Busy_Bit =  0x00004000
   } DeadTimeCause;

In the corresponding StreamerInfo DeadTimeCause has a type of "enum TObject::". Is this a bug or a feature?  I dont see where the TObject:: comes into it, since this is effectively just an integer?

If I work around that problem I encounter another problem. Some of the classes in the file do not seem to get any StreamerInfo information at all written to the file. I have confirmed this using root's own TFile.ShowStreamerInfo(). I cannot see any obvious difference between the classes that get TStreamerInfo and the ones that do not. I have attached the .h file for one class that does not get included in case you can see something wrong with it.

Any idea why this happens?

Tony
 <<TkrLayer.h>> 





This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:56 MET