]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Modified macros for phi analysis: improved pseudorapidity cut flexibility (A.Knospe)
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 2eb8915d4d801756cfb02ac45a43b8c8164721c2..b2ee284adb9b42bf251b0f1bb14bd40246cd40b0 100644 (file)
 #include "AliRawDataErrorLog.h"
 #include "AliRawDataHeader.h"
 
+class THashList;
 class TChain;
 class AliRawEventHeaderBase;
 class AliRawVEvent;
 
 class AliRawReader: public TObject {
+  friend class AliEveEventManager;
   public :
     AliRawReader();
     AliRawReader(const AliRawReader& rawReader);
@@ -61,6 +63,11 @@ class AliRawReader: public TObject {
       const UInt_t *id = GetEventId();
       return id ? ((id)[1]&0x00000fff) : 0;
     }
+    ULong64_t             GetEventIdAsLong() const {
+      return (((ULong64_t)GetPeriod() << 36) |
+             ((ULong64_t)GetOrbitID() << 12) |
+             (ULong64_t)GetBCID()); 
+    }
     virtual const UInt_t* GetTriggerPattern() const = 0;
     ULong64_t             GetClassMask() const {
       const UInt_t *pattern = GetTriggerPattern();
@@ -167,6 +174,7 @@ class AliRawReader: public TObject {
     Bool_t           IsRawReaderValid() const { return fIsValid; }
 
     void             LoadTriggerClass(const char* name, Int_t index);
+    void             LoadTriggerAlias(const THashList *lst);
 
     virtual AliRawReader* CloneSingleEvent() const { return NULL; }
 
@@ -202,6 +210,7 @@ class AliRawReader: public TObject {
     UShort_t SwapShort(UShort_t x) const;
 
     Bool_t           fIsValid;              // is raw-reader created successfully
+    Bool_t           fIsTriggerClassLoaded; // flags the call to LoadTriggerClass
 
     ClassDef(AliRawReader, 0) // base class for reading raw digits
 };