#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 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; //first particle on the left Int_t fBestTimeRight; //first particle on the right TArrayI * fTimeTDC; //TDC on the each PMT TArrayI * fADC; //QTC (ADC) on the each PMT TArrayI * fTimeTDCAmp; // TDC with amplified signal TArrayI * fADCAmp; //QTC amplified TArrayI * fSumMult; //multiplicity: left, right, left&right + all amplified AliSTARTdigit *fDigits; //! The START digits manager ClassDef(AliSTARTRawData,1) // START raw data class }; #endif