]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Increased error checking and possibility to extract some diagnostics
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 6ed347e401569dc30ad68952d99461b3070810cb..e8665fa673fd81c818d5994f3259456f19cfa2cc 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)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();
@@ -123,6 +129,10 @@ class AliRawReader: public TObject {
     virtual Bool_t   NextEvent() = 0;
     virtual Bool_t   RewindEvents() = 0;
     virtual Bool_t   GotoEvent(Int_t event);
+    virtual Bool_t   GotoEventWithID(Int_t event,
+                                    UInt_t period,
+                                    UInt_t orbitID,
+                                    UShort_t bcID);
     virtual Int_t    GetEventIndex() const { return -1; }
     virtual Int_t    GetNumberOfEvents() const { return -1; }
 
@@ -164,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;