]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROBuffer.h
Code commit for Ramona, fix of warnings, add of AddTask macros and exchange of comments
[u/mrichter/AliRoot.git] / VZERO / AliVZEROBuffer.h
index c1c2fa5b9c2f1a908254b76e21e53961ddd6fd53..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,6 +13,7 @@ class fstream;
 #include "Riostream.h"
 #endif
 
+#include "AliFstream.h"
 
 class AliVZEROBuffer:public TObject{
 
@@ -20,18 +21,23 @@ public:
   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, Int_t Time);
-  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