]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliMDC.h
Additional protection in Digitize, which was moved to the implementation file
[u/mrichter/AliRoot.git] / RAW / AliMDC.h
index 2e238e010709ab5168b2cf39f60e2ec10ff9694b..c931e03f0112cf04cadcdf6aff91dec3831ac3de 100644 (file)
@@ -26,7 +26,7 @@
 
 // Forward class declarations
 class AliRawEvent;
-class AliRawEventHeader;
+class AliRawEventHeaderBase;
 class AliRawEquipmentHeader;
 class AliRawData;
 class AliRawDB;
@@ -40,15 +40,16 @@ class AliMDC : public TObject {
 public:
    enum EWriteMode { kLOCAL, kRFIO, kROOTD, kCASTOR, kDEVNULL };
    enum EFilterMode { kFilterOff, kFilterTransparent, kFilterOn };
-   enum EErrorCode { kFilterReject = 0, 
-                    kErrStartEndRun = -1, 
+   enum EErrorCode { kErrStartEndRun = -1, 
                     kErrHeader = -2, 
                     kErrHeaderSize = -3, 
                     kErrSubHeader = -4, 
                     kErrDataSize = -5, 
                     kErrEquipmentHeader = -6, 
                     kErrEquipment = -7,
-                     kErrFileSize = -8 };
+                     kErrFileSize = -8,
+                    kFilterReject = -9,
+                     kErrWriting = -10 };
 
    AliMDC(Int_t compress, Bool_t deleteFiles, 
          EFilterMode filterMode = kFilterTransparent, 
@@ -94,6 +95,9 @@ private:
    EFilterMode  fFilterMode;  // high level filter mode
    TObjArray    fFilters;     // filter algorithms
    Bool_t       fStop;        // stop execution (triggered by SIGUSR1)
+   Bool_t       fIsTagDBCreated; // is tag db already created
+   Double_t     fMaxSizeTagDB;// max size of the tag DB
+   const char*  fFileNameTagDB;// tag DB file name
 
    // Filter names
    enum {kNFilters = 1};
@@ -104,7 +108,6 @@ private:
 
    Int_t     Read(const char *name) { return TObject::Read(name); }
    Int_t     Read(Int_t fd, void *buffer, Int_t length);
-   Int_t     ReadHeader(AliRawEventHeader &header, char*& data);
    Int_t     ReadEquipmentHeader(AliRawEquipmentHeader &header,
                                  Bool_t isSwapped, char*& data);
    Int_t     ReadRawData(AliRawData &raw, Int_t size, char*& data);