]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Fix for report #72089 changes to AliTOFPIDResponse to be commited in STEER (Roberto)
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 85cdfa54163c696ca6f15721fa9b671b5209011d..9de4d855303f2fb9992274d940b87ffcf115fdba 100644 (file)
@@ -23,6 +23,7 @@ class AliRawEventHeaderBase;
 class AliRawVEvent;
 
 class AliRawReader: public TObject {
+  friend class AliEveEventManager;
   public :
     AliRawReader();
     AliRawReader(const AliRawReader& rawReader);
@@ -61,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();
@@ -168,6 +174,8 @@ class AliRawReader: public TObject {
 
     void             LoadTriggerClass(const char* name, Int_t index);
 
+    virtual AliRawReader* CloneSingleEvent() const { return NULL; }
+
   protected :
     virtual void     SelectEvents(Int_t type, ULong64_t triggerMask = 0, const char *triggerExpr = NULL);
     Bool_t           IsSelected() const;