]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawEventHeaderVersions.h
bugfix: checking for consistency of the data, thanks to Cvetan for the hints
[u/mrichter/AliRoot.git] / RAW / AliRawEventHeaderVersions.h
index 4be20e86431d713dd73748c362d8771e12aadd7e..ff7e45d5e2ac4ae87279d931a11822ca32b6003c 100644 (file)
@@ -3,13 +3,15 @@
 
 #include "AliRawEventHeaderBase.h"
 
+#undef INIT_HEADER_VARS
+#define INIT_HEADER_VARS fType(0), fRunNb(0), fDetectorPattern(0), fLdcId(0), fGdcId(0) 
 START_EVENT_HEADER(3,1)
 
    UInt_t fType;          // event type
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
@@ -22,7 +24,7 @@ START_EVENT_HEADER(3,2)
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
@@ -35,20 +37,22 @@ START_EVENT_HEADER(3,3)
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
 
 END_EVENT_HEADER(3,3)
 
+#undef INIT_HEADER_VARS
+#define INIT_HEADER_VARS fType(0), fRunNb(0), fDetectorPattern(0), fLdcId(0), fGdcId(0), fTimestamp(0)
 START_EVENT_HEADER(3,4)
 
    UInt_t fType;          // event type
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
@@ -62,7 +66,7 @@ START_EVENT_HEADER(3,5)
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
@@ -76,7 +80,7 @@ START_EVENT_HEADER(3,6)
    UInt_t fRunNb;     // run number
    UInt_t fId[2];  // id field
    UInt_t fTriggerPattern[2];   // trigger pattern
-   UInt_t fDetectorPattern[1]; // detector pattern
+   UInt_t fDetectorPattern; // detector pattern
    UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
    UInt_t fLdcId;         // LDC id
    UInt_t fGdcId;         // GDC id
@@ -84,5 +88,46 @@ START_EVENT_HEADER(3,6)
 
 END_EVENT_HEADER(3,6)
 
+START_EVENT_HEADER(3,7)
+
+   UInt_t fType;          // event type
+   UInt_t fRunNb;     // run number
+   UInt_t fId[2];  // id field
+   UInt_t fTriggerPattern[2];   // trigger pattern
+   UInt_t fDetectorPattern; // detector pattern
+   UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
+   UInt_t fLdcId;         // LDC id
+   UInt_t fGdcId;         // GDC id
+   UInt_t fTimestamp;     // event timestamp
+
+END_EVENT_HEADER(3,7)
+
+START_EVENT_HEADER(3,8)
+
+   UInt_t fType;          // event type
+   UInt_t fRunNb;     // run number
+   UInt_t fId[2];  // id field
+   UInt_t fTriggerPattern[2];   // trigger pattern
+   UInt_t fDetectorPattern; // detector pattern
+   UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
+   UInt_t fLdcId;         // LDC id
+   UInt_t fGdcId;         // GDC id
+   UInt_t fTimestamp;     // event timestamp
+
+END_EVENT_HEADER(3,8)
+
+START_EVENT_HEADER(3,9)
+
+   UInt_t fType;          // event type
+   UInt_t fRunNb;     // run number
+   UInt_t fId[2];  // id field
+   UInt_t fTriggerPattern[2];   // trigger pattern
+   UInt_t fDetectorPattern; // detector pattern
+   UInt_t fTypeAttribute[3];  // system (0,1) and user (2) attributes
+   UInt_t fLdcId;         // LDC id
+   UInt_t fGdcId;         // GDC id
+   UInt_t fTimestamp;     // event timestamp
+
+END_EVENT_HEADER(3,9)
 
 #endif