#ifndef ALISTARTRAWDATA_H #define ALISTARTRAWDATA_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // // Converts START digits into a raw data stream // // // /////////////////////////////////////////////////////////////////////////////// #include "TObject.h" class AliSTART; class AliSTARTdigit; class TTRee; class TBranch; //class AliRawDataHeader; class AliSTARTRawData : public TObject { public: AliSTARTRawData(); // default constructor AliSTARTRawData(const AliSTARTRawData &r); // copy constructor virtual ~AliSTARTRawData(); // destructor AliSTARTRawData &operator=(const AliSTARTRawData &r); // ass. op. Int_t RawDataSTART (AliSTARTdigit *fDigits); // This method generates the files with the TOF detector data void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level void GetDigits(AliSTARTdigit *fDigits, UInt_t *buf); //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 //START digits arrays AliSTARTdigit *fDigits; //! The START digits manager TArrayI *timeTDC() {return ftimeTDC;} TArrayI *ADC() {return fADC;} TArrayI *timeTDCAmp() {return ftimeTDCAmp;} TArrayI *ADCAmp() {return fADCAmp;} TArrayI *SumMult() {return fSumMult;} protected: Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) Int_t fIndex; //number of 32 words to be stored into the output file Int_t fTimeDiff ; //time difference Int_t fMeanTime ; // average time - ALICE start signal Int_t fBestTimeLeft; Int_t fBestTimeRight; TArrayI * ftimeTDC; TArrayI * fADC; TArrayI * ftimeTDCAmp; TArrayI * fADCAmp; TArrayI * fSumMult; ClassDef(AliSTARTRawData,1) // START raw data class }; #endif