]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawEventHeaderVersions.h
coverity fix
[u/mrichter/AliRoot.git] / RAW / AliRawEventHeaderVersions.h
index d137b61342602211d7fe3ab2546201ec8b83f44e..809e0ed18aa20c3120f0f90e16e1ef796cf4c4d4 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
@@ -90,7 +94,7 @@ START_EVENT_HEADER(3,7)
    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
@@ -104,7 +108,7 @@ START_EVENT_HEADER(3,8)
    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
@@ -118,7 +122,7 @@ START_EVENT_HEADER(3,9)
    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
@@ -126,4 +130,51 @@ START_EVENT_HEADER(3,9)
 
 END_EVENT_HEADER(3,9)
 
+#undef INIT_HEADER_VARS
+#define INIT_HEADER_VARS fType(0), fRunNb(0), fDetectorPattern(0), fLdcId(0), fGdcId(0), fTimestamp(0), fTimestampUsec(0)
+START_EVENT_HEADER(3,11)
+
+   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
+   UInt_t fTimestampUsec; // event timestamp (microseconds)
+
+END_EVENT_HEADER(3,11)
+
+START_EVENT_HEADER(3,12)
+
+   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
+   UInt_t fTimestampUsec; // event timestamp (microseconds)
+
+END_EVENT_HEADER(3,12)
+
+START_EVENT_HEADER(3,13)
+
+   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
+   UInt_t fTimestampUsec; // event timestamp (microseconds)
+
+END_EVENT_HEADER(3,13)
+
 #endif