]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Combined event ID complaint with the DAQ software.
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 9de4d855303f2fb9992274d940b87ffcf115fdba..e8665fa673fd81c818d5994f3259456f19cfa2cc 100644 (file)
@@ -63,9 +63,9 @@ class AliRawReader: public TObject {
       return id ? ((id)[1]&0x00000fff) : 0;
     }
     ULong64_t             GetEventIdAsLong() const {
-      return ((ULong64_t)GetBCID()+
-             (ULong64_t)GetOrbitID()*3564+
-             (ULong64_t)GetPeriod()*16777215*3564);
+      return (((ULong64_t)GetPeriod() << 36) |
+             ((ULong64_t)GetOrbitID() << 12) |
+             (ULong64_t)GetBCID()); 
     }
     virtual const UInt_t* GetTriggerPattern() const = 0;
     ULong64_t             GetClassMask() const {