]>
Commit | Line | Data |
---|---|---|
48265b32 | 1 | #ifndef ALITPCMONITORDATEFILE_H |
2 | #define ALITPCMONITORDATEFILE_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
9 | #include <string> | |
10 | #include <fstream> | |
11 | #include "AliTPCMonitorDateFormat.h" | |
12 | #include "TNamed.h" | |
13 | ||
14 | using namespace std; | |
15 | ||
16 | class AliTPCMonitorDateFile : public TNamed { | |
17 | public: | |
18 | AliTPCMonitorDateFile(); | |
19 | ~AliTPCMonitorDateFile(); | |
20 | ||
21 | void AllocateArray(int size); | |
22 | void CloseDateFile(); | |
23 | ||
24 | Int_t GetAllocatedSizeofArray(); | |
25 | Int_t GetFileSize(); | |
26 | Int_t GetFilePosition(); | |
27 | Char_t* GetMemoryPointer(); | |
28 | ||
29 | Bool_t IsLastEvent(); | |
30 | Bool_t IsEventValid(); | |
31 | ||
32 | Bool_t IsDateFileOpen(); | |
33 | void OpenDateFile(string name); | |
34 | ||
35 | void ReadEvent(); | |
36 | void ResetFilePos(); | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | private: | |
42 | void SetFileSize(); | |
43 | ifstream * fin; // file to be read | |
44 | Int_t ffilePos; // position in file | |
45 | Char_t fmem[512]; // array for event header | |
46 | Char_t* fbigMem; // array for event data | |
47 | UInt_t fbigMemsize; // size of data array | |
48 | Bool_t fisBigMemAllocated; // flag for already allocated array | |
49 | Int_t ffileSize; // size of DATE file | |
50 | string ffilename; // name of DATE file | |
51 | Bool_t finitFile; // flag for opened file | |
52 | Bool_t freadPosOverflow; // data position overflow flag | |
53 | ||
54 | ClassDef(AliTPCMonitorDateFile,1); | |
55 | }; | |
56 | ||
57 | #endif | |
58 |