1 #ifndef ALITPCMONITORDATEFILE_H
2 #define ALITPCMONITORDATEFILE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 ////////////////////////////////////////////////////////////////////////
12 //// AliTPCMonitorDateFile class
14 //// Class for handling the data structure in a DATE file
16 //// Authors: Roland Bramm
17 //// Stefan Kniege, IKF, Frankfurt
20 /////////////////////////////////////////////////////////////////////////
28 class AliTPCMonitorDateFile : public TNamed {
30 AliTPCMonitorDateFile();
31 AliTPCMonitorDateFile(const AliTPCMonitorDateFile &datefile);
32 AliTPCMonitorDateFile& operator= (const AliTPCMonitorDateFile& datefile);
33 ~AliTPCMonitorDateFile();
35 void AllocateArray(int size);
38 Int_t GetAllocatedSizeofArray() const;
39 Int_t GetFileSize() const;
40 Int_t GetFilePosition() const;
41 Char_t* GetMemoryPointer();
43 Bool_t IsLastEvent() const;
44 Bool_t IsEventValid() const;
46 Bool_t IsDateFileOpen();
47 void OpenDateFile(string name);
59 Int_t ffilePos; // position in file
60 Char_t* fbigMem; // array for event data
61 UInt_t fbigMemsize; // size of data array
62 Bool_t fisBigMemAllocated; // flag for already allocated array
63 Int_t ffileSize; // size of DATE file
64 string ffilename; // name of DATE file
65 Bool_t finitFile; // flag for opened file
66 Bool_t freadPosOverflow; // data position overflow flag
67 ifstream * fin; // file to be read
69 ClassDef(AliTPCMonitorDateFile,1);