consolidate zero-length arrays (aka struct hack)
[u/mrichter/AliRoot.git] / RAW / AliRawEventHeaderBase.h
index bcc8a91..57c554d 100644 (file)
@@ -72,7 +72,8 @@ public:
      kStartOfData =      10,   // START_OF_DATA
      kEndOfData =        11,   // END_OF_DATA
      kSystemSoftwareTriggerEvent   = 12, // SYSTEM_SOFTWARE_TRIGGER_EVENT
-     kDetectorSoftwareTriggerEvent = 13  // DETECTOR_SOFTWARE_TRIGGER_EVENT
+     kDetectorSoftwareTriggerEvent = 13, // DETECTOR_SOFTWARE_TRIGGER_EVENT
+     kSyncEvent = 14  // SYNC_EVENT
    };
 
 private:
@@ -102,17 +103,18 @@ private:
 };
 
 #define EVENT_HEADER_VERSION(AA,BB) AliRawEventHeaderV##AA##_##BB
+#define INIT_HEADER_VARS
 
 #define START_EVENT_HEADER(AA,BB) \
 class AliRawEventHeaderV##AA##_##BB:public AliRawEventHeaderBase { \
 public: \
-   AliRawEventHeaderV##AA##_##BB():AliRawEventHeaderBase() {}; \
+ AliRawEventHeaderV##AA##_##BB():AliRawEventHeaderBase(),              \
+   INIT_HEADER_VARS {};        \
    virtual ~AliRawEventHeaderV##AA##_##BB() {}; \
 private:
 
 #define END_EVENT_HEADER(AA,BB) \
 ClassDef(AliRawEventHeaderV##AA##_##BB,1) \
-}; \
-ClassImp(AliRawEventHeaderV##AA##_##BB)
+};
 
 #endif