X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=T0%2FAliT0RawData.h;h=ef73ae31d075932267224bd226f0b9eaa7a154be;hp=fd3ed44b090efa41f782a0ce6640b8cf2324767d;hb=2800be7e498c062e3c0160816d22e03390cb8e25;hpb=dc7ca31de92d1b061fddc1358c9d984ed869aa95 diff --git a/T0/AliT0RawData.h b/T0/AliT0RawData.h index fd3ed44b090..ef73ae31d07 100644 --- a/T0/AliT0RawData.h +++ b/T0/AliT0RawData.h @@ -17,7 +17,7 @@ class AliT0; class AliT0digit; class AliFstream; class TFile; -//class TBranch; +class TMap; class AliRawDataHeaderSim; class AliT0RawData : public TObject { @@ -35,16 +35,13 @@ class AliT0RawData : public TObject { void GetDigits(AliT0digit *fDigits); //This method formats and stores in buf all the digits of a TOF module - void PackWord(UInt_t &BaseWord, UInt_t Word, Int_t StartBit, Int_t StopBit); - //This method stores the value of the variable Word of StopBit-StartBit+1 bits - //in BaseWord, starting from the bit StartBit - void WriteDataHeader(Bool_t dummy, Bool_t compressed); void WriteDRMDataHeader(); void WriteTRMDataHeader(UInt_t slotID, Int_t nWords, Int_t positionOfTRMHeader); //this method is used to write the data header void WriteTrailer(UInt_t slot, Int_t word1, UInt_t word2, UInt_t word3); void WriteChainDataHeader(UInt_t chainNumber,UInt_t slotID); + void WriteChainDataTrailer(UInt_t chainNumber); void FillTime(Int_t ch, Int_t iTDC, Int_t time); //T0 digits arrays @@ -59,28 +56,22 @@ class AliT0RawData : public TObject { protected: - Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) - UInt_t fBuffer[512]; // buffer for writing rawdata - Int_t fIndex; //number of 32 words to be stored into the output file - Int_t fEventNumber; // current event number - - Int_t fTimeDiff ; //time difference - Int_t fMeanTime ; // average time - ALICE start signal - Int_t fBestTimeLeft; //first particle on the left - Int_t fBestTimeRight; //first particle on the right - Int_t fSumMult; // sum multiplicity - TArrayI * fTimeCFD; //TDC on the each PMT - TArrayI * fADC1; //QTC (ADC) on the each PMT - TArrayI * fTimeLED; // TDC with amplified signal - TArrayI * fADC0; //QTC amplified - AliFstream* fFile; //logical name of the I/O file - UInt_t fDataHeaderPos;//Data header position - UInt_t fDRMDataHeaderPos;//Data DRM header position - UInt_t fTRMDataHeaderPos;//Data TRM header position - Int_t fWordsIn1stTRM; // Number of word in 1st TRM - AliT0digit *fDigits; //! The T0 digits manager - - ClassDef(AliT0RawData,1) // T0 raw data class + Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) + UInt_t fBuffer[512]; // buffer for writing rawdata + Int_t fIndex; //number of 32 words to be stored into the output file + Int_t fEventNumber; // current event number + TArrayI * fTimeCFD; //TDC on the each PMT + TArrayI * fADC1; //QTC (ADC) on the each PMT + TArrayI * fTimeLED; // TDC with amplified signal + TArrayI * fADC0; //QTC amplified + AliFstream* fFile; //logical name of the I/O file + UInt_t fDataHeaderPos; //Data header position + UInt_t fDRMDataHeaderPos; //Data DRM header position + UInt_t fTRMDataHeaderPos; //Data TRM header position + AliT0Parameters *fParam; // pointer to T0parameters + TMap fLookUp; // LookUp Table + + ClassDef(AliT0RawData,2) // T0 raw data class };