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 ///////////////////////////////////////////////////////////////
18 class AliTOFTRMGlobalHeader
21 UInt_t GetSlotID() {return fSlotID;};
22 UInt_t GetEventWords() {return fEventWords;};
23 UInt_t GetACQBits() {return fACQBits;};
24 UInt_t GetLBit() {return fLBit;};
25 UInt_t GetMBZ() {return fMBZ;};
26 UInt_t GetWordType() {return fWordType;};
29 UInt_t fEventWords: 13;
37 class AliTOFTRMGlobalTrailer
40 UInt_t GetSlotID() {return fSlotID;};
41 UInt_t GetEventCRC() {return fEventCRC;};
42 UInt_t GetEventCounter() {return fEventCounter;};
43 UInt_t GetWordType() {return fWordType;};
47 UInt_t fEventCounter: 12;
52 class AliTOFTRMChainHeader
55 UInt_t GetSlotID() {return fSlotID;};
56 UInt_t GetBunchID() {return fBunchID;};
57 UInt_t GetPB24Temp() {return fPB24Temp;};
58 UInt_t GetPB24ID() {return fPB24ID;};
59 UInt_t GetTSBit() {return fTSBit;};
60 UInt_t GetWordType() {return fWordType;};
71 class AliTOFTRMChainTrailer
74 UInt_t GetStatus() {return fStatus;};
75 UInt_t GetMBZ() {return fMBZ;};
76 UInt_t GetEventCounter() {return fEventCounter;};
77 UInt_t GetWordType() {return fWordType;};
81 UInt_t fEventCounter: 12;
86 class AliTOFTDCPackedHit
89 UInt_t GetHitTime() {return fHitTime;};
90 UInt_t GetTOTWidth() {return fTOTWidth;};
91 UInt_t GetChan() {return fChan;};
92 UInt_t GetTDCID() {return fTDCID;};
93 UInt_t GetEBit() {return fEBit;};
94 UInt_t GetPSBits() {return fPSBits;};
95 UInt_t GetMBO() {return fMBO;};
107 class AliTOFTDCUnpackedHit
110 UInt_t GetHitTime() {return fHitTime;};
111 UInt_t GetChan() {return fChan;};
112 UInt_t GetTDCID() {return fTDCID;};
113 UInt_t GetEBit() {return fEBit;};
114 UInt_t GetPSBits() {return fPSBits;};
115 UInt_t GetMBO() {return fMBO;};
126 class AliTOFTRMTDCError
129 UInt_t GetErrorFlags() {return fErrorFlags;};
130 UInt_t GetMBZ() {return fMBZ;};
131 UInt_t GetTDCID () {return fTDCID;};
132 UInt_t GetWordType() {return fWordType;};
134 UInt_t fErrorFlags: 15;
140 //TRM diagnostic error word 1
141 class AliTOFTRMDiagnosticErrorWord1
144 UInt_t GetFaultChipFlagID() {return fFaultChipFlagID;};
145 UInt_t GetCBit() {return fCBit;};
146 UInt_t GetMBZ() {return fMBZ;};
147 UInt_t GetMBO() {return fMBO;};
148 UInt_t GetWordType() {return fWordType;};
150 UInt_t fFaultChipFlagID: 15;
157 //TRM diagnostic error word 2
158 class AliTOFTRMDiagnosticErrorWord2
161 UInt_t GetJtagErrorCode() {return fJtagErrorCode;};
162 UInt_t GetTDCID() {return fTDCID;};
163 UInt_t GetCBit() {return fCBit;};
164 UInt_t GetMBZ() {return fMBZ;};
165 UInt_t GetMBO() {return fMBO;};
166 UInt_t GetWordType() {return fWordType;};
168 UInt_t fJtagErrorCode: 11;
176 #endif /* ALITOFRAWDATAFORMAT_H */