/* $Id$ */
+
+////////////////////////////////////////////////////////////////////////
+////
+//// AliTPCMonitorDateFile class
+////
+//// Class for handling the data structure in a DATE file
+////
+//// Authors: Roland Bramm
+//// Stefan Kniege, IKF, Frankfurt
+////
+////
+/////////////////////////////////////////////////////////////////////////
+
+
#include <string>
-#include <fstream>
-#include "AliTPCMonitorDateFormat.h"
#include "TNamed.h"
using namespace std;
class AliTPCMonitorDateFile : public TNamed {
- public:
+ public:
AliTPCMonitorDateFile();
+ AliTPCMonitorDateFile(const AliTPCMonitorDateFile &datefile);
+ AliTPCMonitorDateFile& operator= (const AliTPCMonitorDateFile& datefile);
~AliTPCMonitorDateFile();
void AllocateArray(int size);
void CloseDateFile();
- Int_t GetAllocatedSizeofArray();
- Int_t GetFileSize();
- Int_t GetFilePosition();
+ Int_t GetAllocatedSizeofArray() const;
+ Int_t GetFileSize() const;
+ Int_t GetFilePosition() const;
Char_t* GetMemoryPointer();
- Bool_t IsLastEvent();
- Bool_t IsEventValid();
+ Bool_t IsLastEvent() const;
+ Bool_t IsEventValid() const;
Bool_t IsDateFileOpen();
void OpenDateFile(string name);
private:
+
void SetFileSize();
- ifstream * fin; // file to be read
+
Int_t ffilePos; // position in file
- Char_t fmem[512]; // array for event header
Char_t* fbigMem; // array for event data
UInt_t fbigMemsize; // size of data array
Bool_t fisBigMemAllocated; // flag for already allocated array
string ffilename; // name of DATE file
Bool_t finitFile; // flag for opened file
Bool_t freadPosOverflow; // data position overflow flag
+ ifstream * fin; // file to be read
ClassDef(AliTPCMonitorDateFile,1);
};