New method to get a sort of combined event id in a form of 64-bit integer.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jun 2010 20:34:07 +0000 (20:34 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jun 2010 20:34:07 +0000 (20:34 +0000)
RAW/AliRawReader.h

index d754e71..9de4d85 100644 (file)
@@ -62,6 +62,11 @@ class AliRawReader: public TObject {
       const UInt_t *id = GetEventId();
       return id ? ((id)[1]&0x00000fff) : 0;
     }
+    ULong64_t             GetEventIdAsLong() const {
+      return ((ULong64_t)GetBCID()+
+             (ULong64_t)GetOrbitID()*3564+
+             (ULong64_t)GetPeriod()*16777215*3564);
+    }
     virtual const UInt_t* GetTriggerPattern() const = 0;
     ULong64_t             GetClassMask() const {
       const UInt_t *pattern = GetTriggerPattern();