X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=VZERO%2FAliVZEROBuffer.h;h=26afb35edc688d72d370e51cd8a4338129f1457e;hp=cd03b41f4e507c43e9a95c2e8c6a392d23ad88c0;hb=1c95f38e5243539929627ce875ecbe165bcae383;hpb=7caec66bc912ef57a0c815ecda671a27b4cde488 diff --git a/VZERO/AliVZEROBuffer.h b/VZERO/AliVZEROBuffer.h index cd03b41f4e5..26afb35edc6 100644 --- a/VZERO/AliVZEROBuffer.h +++ b/VZERO/AliVZEROBuffer.h @@ -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, 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