X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=VZERO%2FAliVZEROBuffer.h;h=26afb35edc688d72d370e51cd8a4338129f1457e;hb=620b34a510a5d1a95b47b554a44d1b6563ab54e8;hp=54391d681d0c30527644e0d4c36a8ed5e113967d;hpb=af0954303815e43283e68b13d4855eab3e33a46d;p=u%2Fmrichter%2FAliRoot.git diff --git a/VZERO/AliVZEROBuffer.h b/VZERO/AliVZEROBuffer.h index 54391d681d0..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); - 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