1 #ifndef ALITOFRAWDATAFORMAT_H
2 #define ALITOFRAWDATAFORMAT_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 ///////////////////////////////////////////////////////////////
11 // This classes provide the TOF raw data bit fields. //
13 ///////////////////////////////////////////////////////////////
19 class AliTOFTRMGlobalHeader : public TObject
22 UInt_t GetSlotID() {return fSlotID;};
23 UInt_t GetEventWords() {return fEventWords;};
24 UInt_t GetACQBits() {return fACQBits;};
25 UInt_t GetLBit() {return fLBit;};
26 UInt_t GetMBZ() {return fMBZ;};
27 UInt_t GetWordType() {return fWordType;};
30 UInt_t fEventWords: 13;
38 class AliTOFTRMGlobalTrailer : public TObject
41 UInt_t GetSlotID() {return fSlotID;};
42 UInt_t GetEventCRC() {return fEventCRC;};
43 UInt_t GetEventCounter() {return fEventCounter;};
44 UInt_t GetWordType() {return fWordType;};
48 UInt_t fEventCounter: 12;
53 class AliTOFTRMChainHeader : public TObject
56 UInt_t GetSlotID() {return fSlotID;};
57 UInt_t GetBunchID() {return fBunchID;};
58 UInt_t GetPB24Temp() {return fPB24Temp;};
59 UInt_t GetPB24ID() {return fPB24ID;};
60 UInt_t GetTSBit() {return fTSBit;};
61 UInt_t GetWordType() {return fWordType;};
72 class AliTOFTRMChainTrailer : public TObject
75 UInt_t GetStatus() {return fStatus;};
76 UInt_t GetMBZ() {return fMBZ;};
77 UInt_t GetEventCounter() {return fEventCounter;};
78 UInt_t GetWordType() {return fWordType;};
82 UInt_t fEventCounter: 12;
87 class AliTOFTDCPackedHit : public TObject
90 UInt_t GetHitTime() {return fHitTime;};
91 UInt_t GetTOTWidth() {return fTOTWidth;};
92 UInt_t GetChan() {return fChan;};
93 UInt_t GetTDCID() {return fTDCID;};
94 UInt_t GetEBit() {return fEBit;};
95 UInt_t GetPSBits() {return fPSBits;};
96 UInt_t GetMBO() {return fMBO;};
108 class AliTOFTDCUnpackedHit : public TObject
111 UInt_t GetHitTime() {return fHitTime;};
112 UInt_t GetChan() {return fChan;};
113 UInt_t GetTDCID() {return fTDCID;};
114 UInt_t GetEBit() {return fEBit;};
115 UInt_t GetPSBits() {return fPSBits;};
116 UInt_t GetMBO() {return fMBO;};
127 class AliTOFTRMTDCError : public TObject
130 UInt_t GetErrorFlags() {return fErrorFlags;};
131 UInt_t GetMBZ() {return fMBZ;};
132 UInt_t GetTDCID () {return fTDCID;};
133 UInt_t GetWordType() {return fWordType;};
135 UInt_t fErrorFlags: 15;
141 //TRM diagnostic error word 1
142 class AliTOFTRMDiagnosticErrorWord1 : public TObject
145 UInt_t GetFaultChipFlagID() {return fFaultChipFlagID;};
146 UInt_t GetCBit() {return fCBit;};
147 UInt_t GetMBZ() {return fMBZ;};
148 UInt_t GetMBO() {return fMBO;};
149 UInt_t GetWordType() {return fWordType;};
151 UInt_t fFaultChipFlagID: 15;
158 //TRM diagnostic error word 2
159 class AliTOFTRMDiagnosticErrorWord2 : public TObject
162 UInt_t GetJtagErrorCode() {return fJtagErrorCode;};
163 UInt_t GetTDCID() {return fTDCID;};
164 UInt_t GetCBit() {return fCBit;};
165 UInt_t GetMBZ() {return fMBZ;};
166 UInt_t GetMBO() {return fMBO;};
167 UInt_t GetWordType() {return fWordType;};
169 UInt_t fJtagErrorCode: 11;
177 #endif /* ALITOFRAWDATAFORMAT_H */