X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFDDLRawData.h;h=50771706d2adbe8ee7ff3befc97b765008a46d93;hb=2c3fb292e438d3217b07bfe7c5f7825adfecfb50;hp=d5019490d3f15254c1752903a7ad933c2de5000e;hpb=0e46b9aedf22cba61c60921b7b19fb76d89a7a2e;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFDDLRawData.h b/TOF/AliTOFDDLRawData.h index d5019490d3f..50771706d2a 100644 --- a/TOF/AliTOFDDLRawData.h +++ b/TOF/AliTOFDDLRawData.h @@ -12,29 +12,76 @@ //////////////////////////////////////////////////////////////////////////// #include "TObject.h" +#include "AliTOFCableLengthMap.h" -class AliTOFGeometry; +class TBranch; +class TClonesArray; + +class AliTOFDigitMap; +class AliTOFRawStream; + +class AliTOFDDLRawData:public TObject { -class AliTOFDDLRawData:public TObject{ public: + AliTOFDDLRawData(); // default constructor - AliTOFDDLRawData(AliTOFGeometry *tofGeom); // constructor - virtual ~AliTOFDDLRawData(){;} // destructor + virtual ~AliTOFDDLRawData(); // destructor AliTOFDDLRawData(const AliTOFDDLRawData &source); // copy constructor AliTOFDDLRawData& operator=(const AliTOFDDLRawData &source); // ass. op. + void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level + Int_t RawDataTOF(TBranch* branch); - // This method generates the files with the TOF detector data - void SetVerbose(Int_t Verbose){fVerbose=Verbose;} - // To set the verbose level + + void SetPackedAcquisitionMode(Bool_t mode) {fPackedAcquisition=mode;}; + void SetFakeOrphaneProduction(Bool_t flag) {fFakeOrphaneProduction=flag;}; + void SetMatchingWindow(Int_t matWin) {fMatchingWindow=matWin;}; // setter for fMatchingWindow [bin number] + Bool_t GetPackedAcquisitionMode() const {return fPackedAcquisition;}; + Bool_t GetFakeOrphaneProduction() const {return fFakeOrphaneProduction;}; + Int_t GetMatchingWindow() const {return fMatchingWindow;}; // getter for fMatchingWindow [bin number] + private: - void GetDigits(TClonesArray *TOFdigits, Int_t ddl,UInt_t *buf); - //This method formats and stores in buf all the digits of a TOF module - 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 - AliTOFGeometry *fTOFgeometry; //Pointer to the TOF geometry + void GetDigits(); + + void ReverseArray(UInt_t a[], Int_t n) const; + + void MakeDRMheader(Int_t nDDL, UInt_t *buf); + void MakeDRMtrailer(UInt_t *buf); + void MakeLTMheader(UInt_t *buf); + void MakeLTMdata(UInt_t *buf); + void MakeLTMtrailer(UInt_t *buf); + void MakeTRMheader(Int_t nTRM, UInt_t *buf); + void MakeTRMtrailer(UInt_t *buf); + void MakeTRMfiller(UInt_t *buf, UInt_t nWordsPerTRM); + void MakeTRMchainHeader(Int_t iChain, Int_t nTRM, UInt_t *buf); + void MakeTRMchainTrailer(Int_t iChain, UInt_t *buf); + void MakeTDCdigits(Int_t nDDL, Int_t nTRM, Int_t iChain, UInt_t *buf, UInt_t &nWordsPerTRM); + + UInt_t MakeFiller(); + + Bool_t HeadOrTail() const; + + Int_t fVerbose; //Verbose level (0:no msg, 1:msg, + //2:digits in txt files) + Int_t fIndex; //number of 32-bit words to be + //stored into the output file + Bool_t fPackedAcquisition; //flag for packed/no packed acquisition + Bool_t fFakeOrphaneProduction; //flag to insert fake orphane + //(leading or trailing) time + //measurements + Int_t fMatchingWindow; //time window [bin number] where to + //search time-of-flight measurements + //for the current event + + AliTOFDigitMap *fTOFdigitMap; //Pointer to the channel-TOF map + + TClonesArray *fTOFdigitArray; //Pointer to the TOF digits + + AliTOFRawStream *fTOFrawStream; //Pointer to the AliTOFRawStream class + + AliTOFCableLengthMap *fTOFCableLengthMap; // Pointer to the map of Amphenol cable length - ClassDef(AliTOFDDLRawData,1) + ClassDef(AliTOFDDLRawData,2) };