/* 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;
#include "Riostream.h"
#endif
+#include "AliFstream.h"
class AliVZEROBuffer:public TObject{
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