15 minutes interval for calculation of drift correction
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorDateFile.h
CommitLineData
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
ca7b8371 9
10////////////////////////////////////////////////////////////////////////
fb3305d1 11////
12//// AliTPCMonitorDateFile class
13////
14//// Class for handling the data structure in a DATE file
15////
16//// Authors: Roland Bramm
17//// Stefan Kniege, IKF, Frankfurt
18////
19////
ca7b8371 20/////////////////////////////////////////////////////////////////////////
21
22
48265b32 23#include <string>
48265b32 24#include "TNamed.h"
25
26using namespace std;
27
28class AliTPCMonitorDateFile : public TNamed {
fb3305d1 29 public:
48265b32 30 AliTPCMonitorDateFile();
ca7b8371 31 AliTPCMonitorDateFile(const AliTPCMonitorDateFile &datefile);
32 AliTPCMonitorDateFile& operator= (const AliTPCMonitorDateFile& datefile);
48265b32 33 ~AliTPCMonitorDateFile();
34
35 void AllocateArray(int size);
36 void CloseDateFile();
37
fb3305d1 38 Int_t GetAllocatedSizeofArray() const;
39 Int_t GetFileSize() const;
40 Int_t GetFilePosition() const;
48265b32 41 Char_t* GetMemoryPointer();
42
fb3305d1 43 Bool_t IsLastEvent() const;
44 Bool_t IsEventValid() const;
48265b32 45
46 Bool_t IsDateFileOpen();
47 void OpenDateFile(string name);
48
49 void ReadEvent();
50 void ResetFilePos();
51
52
53
54
55 private:
ca7b8371 56
48265b32 57 void SetFileSize();
ca7b8371 58
48265b32 59 Int_t ffilePos; // position in file
48265b32 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
ca7b8371 67 ifstream * fin; // file to be read
48265b32 68
69 ClassDef(AliTPCMonitorDateFile,1);
70};
71
72#endif
73