]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliTagDB.h
Added a cut on PtHard at 2.76 GeV/c (Nicole)
[u/mrichter/AliRoot.git] / RAW / AliTagDB.h
index 64a8336879eea95f29ff75ada83fc944e3824aee..8490d6f8c722cc6a8b1a40d0345505357b5f2181 100644 (file)
 #include <TTree.h>
 #endif
 
+#ifndef ROOT_TString
+#include <TString.h>
+#endif
+
+
 
 // Forward class declarations
-class AliRawEventHeader;
+class AliRawEventHeaderBase;
 
 
 class AliTagDB : public TObject {
 
 public:
-   AliTagDB(AliRawEventHeader *header, Double_t maxsize, Bool_t create = kTRUE);
+   AliTagDB(AliRawEventHeaderBase *header, const char* fileName = NULL);
    virtual ~AliTagDB() { Close(); }
 
-   Bool_t          Create();
+   Bool_t          Create(const char* fileName = NULL);
    virtual void    Close();
    void            Fill() { fTree->Fill(); }
    Bool_t          FileFull()
-            { return (fTagDB->GetBytesWritten() > fMaxSize) ? kTRUE : kFALSE; }
+            { return (fMaxSize >= 0) ? ((fTagDB->GetBytesWritten() > fMaxSize) ? kTRUE : kFALSE) : kFALSE; }
+
+   Bool_t          NextFile(const char* fileName = NULL);
 
-   Bool_t          NextFile();
+   void            SetMaxSize(Double_t maxSize) { fMaxSize = maxSize; }
+   void            SetFS(const char* fs);
 
    Double_t           GetBytesWritten() const { return fTagDB->GetBytesWritten(); }
    TFile             *GetDB() const { return fTagDB; }
    const char        *GetDBName() const { return fTagDB->GetName(); }
-   AliRawEventHeader *GetHeader() const { return fHeader; }
+   AliRawEventHeaderBase *GetHeader() const { return fHeader; }
    Int_t              GetEvents() const { return (Int_t) fTree->GetEntries(); }
    Float_t            GetCompressionFactor() const;
 
 protected:
    TFile             *fTagDB;     // DB to store header information only (tag)
    TTree             *fTree;      // tree use to store header
-   AliRawEventHeader *fHeader;    // header via which data is stored
+   AliRawEventHeaderBase *fHeader;    // header via which data is stored
    Double_t           fMaxSize;   // maximum size in bytes of tag DB
+   TString            fFS;        // tag DB file system location
+   Bool_t             fDeleteFiles; // flag for deletion of files
 
    virtual const char *GetFileName() const;