]>
Commit | Line | Data |
---|---|---|
0e46b9ae | 1 | #ifndef AliTOFDDLRAWDATA_H |
2 | #define AliTOFDDLRAWDATA_H | |
3 | ||
7e6dce66 | 4 | /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////////// | |
0e46b9ae | 8 | // // |
7e6dce66 | 9 | // Class used for generating the files containing raw data, // |
0e46b9ae | 10 | // required for Data Challenge // |
11 | // // | |
7e6dce66 | 12 | //////////////////////////////////////////////////////////////////////////// |
13 | ||
0e46b9ae | 14 | #include "TObject.h" |
7e6dce66 | 15 | |
d0eb8f39 | 16 | class TBranch; |
17 | class TClonesArray; | |
18 | ||
19 | class AliTOFDigitMap; | |
d3c7bfac | 20 | class AliTOFGeometry; |
d0eb8f39 | 21 | class AliTOFRawStream; |
22 | ||
23 | class AliTOFDDLRawData:public TObject { | |
7e6dce66 | 24 | |
7e6dce66 | 25 | public: |
d0eb8f39 | 26 | |
7e6dce66 | 27 | AliTOFDDLRawData(); // default constructor |
d3c7bfac | 28 | AliTOFDDLRawData(AliTOFGeometry *tofGeom); // constructor |
7e6dce66 | 29 | virtual ~AliTOFDDLRawData(){;} // destructor |
30 | AliTOFDDLRawData(const AliTOFDDLRawData &source); // copy constructor | |
31 | AliTOFDDLRawData& operator=(const AliTOFDDLRawData &source); // ass. op. | |
d0eb8f39 | 32 | void SetVerbose(Int_t Verbose){fVerbose=Verbose;} // To set the verbose level |
33 | ||
7e6dce66 | 34 | Int_t RawDataTOF(TBranch* branch); |
d0eb8f39 | 35 | |
15ec34b9 | 36 | void SetAcquisitionMode(Bool_t mode) {fPackedAcquisition=mode;}; |
37 | ||
7e6dce66 | 38 | private: |
7e6dce66 | 39 | |
d0eb8f39 | 40 | void GetDigits(); |
41 | ||
42 | void ReverseArray(UInt_t a[], Int_t n) const; | |
43 | ||
44 | void MakeDRMheader(Int_t nDDL, UInt_t *buf); | |
45 | void MakeDRMtrailer(UInt_t *buf); | |
46 | void MakeLTMheader(UInt_t *buf); | |
47 | void MakeLTMdata(UInt_t *buf); | |
48 | void MakeLTMtrailer(UInt_t *buf); | |
49 | void MakeTRMheader(Int_t nTRM, UInt_t *buf); | |
50 | void MakeTRMtrailer(UInt_t *buf); | |
51 | void MakeTRMfiller(UInt_t *buf, UInt_t nWordsPerTRM); | |
52 | void MakeTRMchainHeader(Int_t iChain, Int_t nTRM, UInt_t *buf); | |
53 | void MakeTRMchainTrailer(Int_t iChain, UInt_t *buf); | |
54 | void MakeTDCdigits(Int_t nDDL, Int_t nTRM, Int_t iChain, UInt_t *buf, UInt_t &nWordsPerTRM); | |
55 | ||
56 | UInt_t MakeFiller(); | |
57 | ||
15ec34b9 | 58 | Bool_t HeadOrTail() const; |
59 | ||
d0eb8f39 | 60 | Int_t fVerbose; //Verbose level (0:no msg, 1:msg, 2:digits in txt files) |
61 | Int_t fIndex; //number of 32-bit words to be stored into the output file | |
15ec34b9 | 62 | Bool_t fPackedAcquisition; //flag for packed/no packed acquisition |
d0eb8f39 | 63 | |
64 | AliTOFGeometry *fTOFgeometry; //Pointer to the TOF geometry | |
65 | ||
66 | AliTOFDigitMap *fTOFdigitMap; //Pointer to the channel-TOF map | |
67 | ||
68 | TClonesArray *fTOFdigitArray; //Pointer to the TOF digits | |
69 | ||
70 | AliTOFRawStream *fTOFrawStream; //Pointer to the AliTOFRawStream class | |
d3c7bfac | 71 | |
7e6dce66 | 72 | ClassDef(AliTOFDDLRawData,1) |
571dda3d | 73 | |
7e6dce66 | 74 | }; |
75 | ||
76 | #endif |