]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Compilation with icc
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 9913c333ef9c705f7f4bf9bc4e47ea5ac535ed17..6ed347e401569dc30ad68952d99461b3070810cb 100644 (file)
@@ -18,7 +18,9 @@
 #include "AliRawDataErrorLog.h"
 #include "AliRawDataHeader.h"
 
+class TChain;
 class AliRawEventHeaderBase;
+class AliRawVEvent;
 
 class AliRawReader: public TObject {
   public :
@@ -42,6 +44,7 @@ class AliRawReader: public TObject {
       {fRequireHeader = required;};
 
     virtual const AliRawEventHeaderBase* GetEventHeader() const {return NULL;};
+    virtual const AliRawVEvent* GetEvent() const {return NULL;}
 
     virtual UInt_t   GetType() const = 0;
     virtual UInt_t   GetRunNumber() const = 0;
@@ -119,6 +122,9 @@ class AliRawReader: public TObject {
 
     virtual Bool_t   NextEvent() = 0;
     virtual Bool_t   RewindEvents() = 0;
+    virtual Bool_t   GotoEvent(Int_t event);
+    virtual Int_t    GetEventIndex() const { return -1; }
+    virtual Int_t    GetNumberOfEvents() const { return -1; }
 
     enum {kErrMagic=1, kErrNoDataHeader=2, 
          kErrSize=4, kErrOutOfBounds=8};
@@ -152,9 +158,14 @@ class AliRawReader: public TObject {
     // ESD tree inside AliReconstruction. For the moment it will be
     // activated only for AliRawReaderDateOnline.
     virtual Bool_t   UseAutoSaveESD() const { return kFALSE; }
+    virtual TChain*  GetChain() const { return NULL; }
+
+    Bool_t           IsRawReaderValid() const { return fIsValid; }
+
+    void             LoadTriggerClass(const char* name, Int_t index);
 
   protected :
-    virtual void     SelectEvents(Int_t type, ULong64_t triggerMask = 0);
+    virtual void     SelectEvents(Int_t type, ULong64_t triggerMask = 0, const char *triggerExpr = NULL);
     Bool_t           IsSelected() const;
     Bool_t           IsEventSelected() const;
 
@@ -172,6 +183,7 @@ class AliRawReader: public TObject {
     Bool_t           fSkipInvalid;          // skip invalid data
     Int_t            fSelectEventType;      // type of selected events (<0 = no selection)
     ULong64_t        fSelectTriggerMask;    // trigger mask for selecting events (0 = no selection)
+    TString          fSelectTriggerExpr;    // trigger expression for selecting events (empty = no selection)
 
     Int_t            fErrorCode;            // code of last error
 
@@ -183,6 +195,8 @@ class AliRawReader: public TObject {
     UInt_t SwapWord(UInt_t x) const;
     UShort_t SwapShort(UShort_t x) const;
 
+    Bool_t           fIsValid;              // is raw-reader created successfully
+
     ClassDef(AliRawReader, 0) // base class for reading raw digits
 };