]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReader.h
Adding support for raw data events without subevent header
[u/mrichter/AliRoot.git] / RAW / AliRawReader.h
index 7e35774cc4bde21996fcf37e0d52d51b8fe5fce3..f3a6f00ac561c2ca935b16fa80768b07cb70bd25 100644 (file)
@@ -30,6 +30,8 @@ class AliRawReader: public TObject {
     void             SkipInvalid(Bool_t skip = kTRUE)
       {fSkipInvalid = skip;};
     void             SelectEvents(Int_t type);
+    void             RequireHeader(Bool_t required = kTRUE)
+      {fRequireHeader = required;};
 
     virtual UInt_t   GetType() const = 0;
     virtual UInt_t   GetRunNumber() const = 0;
@@ -102,6 +104,8 @@ class AliRawReader: public TObject {
 
     virtual Bool_t   ReadNext(UChar_t* data, Int_t size) = 0;
 
+    Bool_t           fRequireHeader; // if false, data without header is accepted
+
     AliRawDataHeader* fHeader;     // current data header
     Int_t            fCount;       // counter of bytes to be read for current DDL