]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawReaderDate.h
Change due to change in AliMUONDigit Signal type (int to float) (Laurent)
[u/mrichter/AliRoot.git] / RAW / AliRawReaderDate.h
index b7c9e868f28200e7961027284dfc1a3877ec7a7e..5a67e2c1291f23e3c9235e58aa9c500d6c698ceb 100644 (file)
@@ -3,6 +3,14 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+///
+/// This is a class for reading raw data from a date file or event.
+///
+///////////////////////////////////////////////////////////////////////////////
+
 #include "AliRawReader.h"
 
 struct eventHeaderStruct;
@@ -12,20 +20,16 @@ struct equipmentHeaderStruct;
 class AliRawReaderDate: public AliRawReader {
   public :
     AliRawReaderDate(void* event);
-    AliRawReaderDate(const char* fileName, Int_t eventNumber);
-    AliRawReaderDate(const AliRawReaderDate& rawReader);
-    AliRawReaderDate& operator = (const AliRawReaderDate& rawReader);
+    AliRawReaderDate(const char* fileName, Int_t eventNumber = -1);
     virtual ~AliRawReaderDate();
 
-    void             RequireHeader(Bool_t required = kTRUE)
-      {fRequireHeader = required;};
-
     virtual UInt_t   GetType() const;
     virtual UInt_t   GetRunNumber() const;
     virtual const UInt_t* GetEventId() const;
     virtual const UInt_t* GetTriggerPattern() const;
     virtual const UInt_t* GetDetectorPattern() const;
     virtual const UInt_t* GetAttributes() const;
+    virtual const UInt_t* GetSubEventAttributes() const;
     virtual UInt_t   GetLDCId() const;
     virtual UInt_t   GetGDCId() const;
 
@@ -34,27 +38,32 @@ class AliRawReaderDate: public AliRawReader {
     virtual Int_t    GetEquipmentId() const;
     virtual const UInt_t* GetEquipmentAttributes() const;
     virtual Int_t    GetEquipmentElementSize() const;
+    virtual Int_t    GetEquipmentHeaderSize() const;
 
     virtual Bool_t   ReadHeader();
     virtual Bool_t   ReadNextData(UChar_t*& data);
+    virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
 
     virtual Bool_t   Reset();
 
+    virtual Bool_t   NextEvent();
+    virtual Bool_t   RewindEvents();
+
     virtual Int_t    CheckData() const;
 
   protected :
-    virtual Bool_t   ReadNext(UChar_t* data, Int_t size);
-
-    Bool_t           fRequireHeader; // if false, data without header is accepted
-
+    FILE*            fFile;         // DATE file
     eventHeaderStruct* fEvent;      // raw data super event
     eventHeaderStruct* fSubEvent;   // raw data sub event
     equipmentHeaderStruct* fEquipment; // raw data equipment header
-    Bool_t           fIsOwner;      // flag for ownership of fEvent
 
     UChar_t*         fPosition;     // current position in the raw data
     UChar_t*         fEnd;          // end position of the current data block
 
+  private:
+    AliRawReaderDate(const AliRawReaderDate& rawReader);
+    AliRawReaderDate& operator = (const AliRawReaderDate& rawReader);
+
     ClassDef(AliRawReaderDate, 0) // class for reading raw digits from a root file
 };