]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCMonitorDateFile.h
update to include FSI corrections for peripheral bins
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorDateFile.h
index 3eb0f612640c1788fb2b27731267b8535db4077b..d820b18457120357ccc3b8340e59e83683c497a5 100755 (executable)
@@ -6,28 +6,42 @@
 
 /* $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);
@@ -39,10 +53,10 @@ class AliTPCMonitorDateFile : public TNamed {
 
 
        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
@@ -50,6 +64,7 @@ class AliTPCMonitorDateFile : public TNamed {
        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);
 };