]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROBuffer.h
Compilation warning fixed.
[u/mrichter/AliRoot.git] / VZERO / AliVZEROBuffer.h
index 54391d681d0c30527644e0d4c36a8ed5e113967d..26afb35edc688d72d370e51cd8a4338129f1457e 100644 (file)
@@ -3,9 +3,9 @@
 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-///////////////////////////////////////////////////////////////////
-// Class used for storing TPC digits according to the DDLs format//
-//////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////
+// Class used for storing VZERO digits according to the DDLs format//
+/////////////////////////////////////////////////////////////////////
 
 #ifdef __CINT__
 class fstream;
@@ -13,27 +13,31 @@ class fstream;
 #include "Riostream.h"
 #endif
 
+#include "AliFstream.h"
 
 class AliVZEROBuffer:public TObject{
 
 public:
-  AliVZEROBuffer(){
-    //default constructor
-  }
+  AliVZEROBuffer();
   AliVZEROBuffer(const char* fileName); //constructor
   virtual ~AliVZEROBuffer(); //destructor
+  void    WriteTriggerInfo(UInt_t trigger);
+  void    WriteTriggerScalers();
+  void    WriteBunchNumbers();  
+  void    WriteChannel(Int_t channel, Short_t *adc, Bool_t integrator);
+  void    WriteBeamFlags(Bool_t *bbFlag, Bool_t *bgFlag);
+  void    WriteMBInfo();
+  void    WriteMBFlags();  
+  void    WriteBeamScalers();
+  void    WriteTiming(Float_t time, Float_t width);
+
+private:
   AliVZEROBuffer(const AliVZEROBuffer &source); // copy constructor
   AliVZEROBuffer& operator=(const AliVZEROBuffer &source); // ass. op.
-  void    WriteBinary(Int_t cell,Int_t ADC);
-  UInt_t  GetDigNumber()const{return fNumberOfDigits;}
-  void    SetVerbose(Int_t val){fVerbose=val;}
-  Int_t   GetVerbose() const{return  fVerbose;} 
-  
-private:
-  Int_t fVerbose; //Verbosity level: 0-silent, 1:cout msg, 2: txt files for checking
-  fstream f;      //The IO file name
-  UInt_t  fNumberOfDigits; //Number of VZERO digits
-  ClassDef(AliVZEROBuffer,1)
+
+  UInt_t      fRemainingWord; // Remaining data word between even and odd channel's data
+  AliFstream* f;      //The IO file name
+  ClassDef(AliVZEROBuffer,2)
 };
 
 #endif