3 // @(#)alimdc:$Name$:$Id$
4 // Author: Fons Rademakers 26/11/99
6 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 //////////////////////////////////////////////////////////////////////////
13 //////////////////////////////////////////////////////////////////////////
28 // Forward class declarations
29 class AliRawEventHeader;
32 class AliTagDB : public TObject {
35 AliTagDB(AliRawEventHeader *header, Double_t maxsize, Bool_t create = kTRUE);
36 virtual ~AliTagDB() { Close(); }
40 void Fill() { fTree->Fill(); }
42 { return (fTagDB->GetBytesWritten() > fMaxSize) ? kTRUE : kFALSE; }
46 Double_t GetBytesWritten() const { return fTagDB->GetBytesWritten(); }
47 TFile *GetDB() const { return fTagDB; }
48 const char *GetDBName() const { return fTagDB->GetName(); }
49 AliRawEventHeader *GetHeader() const { return fHeader; }
50 Int_t GetEvents() const { return (Int_t) fTree->GetEntries(); }
51 Float_t GetCompressionFactor() const;
54 TFile *fTagDB; // DB to store header information only (tag)
55 TTree *fTree; // tree use to store header
56 AliRawEventHeader *fHeader; // header via which data is stored
57 Double_t fMaxSize; // maximum size in bytes of tag DB
59 virtual const char *GetFileName() const;
62 AliTagDB(const AliTagDB& tagDB);
63 AliTagDB& operator = (const AliTagDB& tagDB);
65 ClassDef(AliTagDB,0) // Tag DB