Print object content to given message stream.
103 {
104
105 log << MSG::DEBUG <<
"*BEGIN* xAOD::CTPResult" <<
endmsg;
106
107
109 log << MSG::DEBUG <<
"xAOD::CTPResult empty" <<
endmsg;
110 log << MSG::DEBUG <<
"*END* xAOD::CTPResult" <<
endmsg;
111 return;
112 }
113
114
116 log << MSG::ERROR <<
"Mismatch: " << ctpRes.
numberOfBunches() <<
" bunches, but the size of tipWords is " << ctpRes.
tipWords().size() <<
endmsg;
117 }
118
122
123
124 log << MSG::DEBUG <<
"Header information: " <<
endmsg;
128 log << MSG::DEBUG <<
" Source ID : 0x" << MSG::hex << ctpRes.
sourceID() << MSG::dec <<
endmsg;
130 log << MSG::DEBUG <<
" Ext. LVL1 ID : " << ctpRes.
L1ID() <<
endmsg;
134
135
136 log << MSG::DEBUG <<
"Payload information: " <<
endmsg;
137 log << MSG::DEBUG <<
" Time " << ctpRes.
timeSec() <<
"s "
138 << std::setw(10) << std::setiosflags(std::ios_base::right) << std::setfill(' ')
139 << ctpRes.
timeNanoSec() << std::resetiosflags(std::ios_base::right)
141
142
144
145 auto bunch = ctpRes.
getBC(i);
146 log << MSG::DEBUG <<
" BC dump for bunch " <<
i <<
endmsg;
147
148
149 for(
unsigned int j = 0; j<ctpRes.
tipWords()[i].size(); ++j) {
150 log << MSG::DEBUG <<
" TIP word number " << j <<
": " << ctpRes.
tipWords()[
i][j] <<
endmsg;
151 }
152 if (ctpRes.
tipWords()[i].size() == 0) {
153 log << MSG::DEBUG <<
" No TIP words!" <<
endmsg;
154 }
155
156
157 for(
unsigned int j = 0; j<ctpRes.
tbpWords()[i].size(); ++j) {
158 log << MSG::DEBUG <<
" TBP word number " << j <<
": " << ctpRes.
tbpWords()[
i][j] <<
endmsg;
159 }
160 if (ctpRes.
tbpWords()[i].size() == 0) {
161 log << MSG::DEBUG <<
" No TBP words!" <<
endmsg;
162 }
163
164
165 for(
unsigned int j = 0; j<ctpRes.
tapWords()[i].size(); ++j) {
166 log << MSG::DEBUG <<
" TAP word number " << j <<
": " << ctpRes.
tapWords()[
i][j] <<
endmsg;
167 }
168 if (ctpRes.
tapWords()[i].size() == 0) {
169 log << MSG::DEBUG <<
" No TAP words!" <<
endmsg;
170 }
171
172
173 for(
unsigned int j = 0; j<ctpRes.
tavWords()[i].size(); ++j) {
174 log << MSG::DEBUG <<
" TAV word number " << j <<
": " << ctpRes.
tavWords()[
i][j] <<
endmsg;
175 }
176 if (ctpRes.
tavWords()[i].size() == 0) {
177 log << MSG::DEBUG <<
" No TAV words!" <<
endmsg;
178 }
179 }
180
181
184 }
186 log << MSG::DEBUG <<
" No additional words!" <<
endmsg;
187 }
188
189
190 log << MSG::DEBUG <<
"Trailer information: " <<
endmsg;
196 log << MSG::DEBUG <<
"*END* xAOD::CTPResult" <<
endmsg;
197 }
uint32_t numDataWords() const
Retrieve the number of data words.
uint32_t L1ID() const
Retrieve the extended LVL1 ID.
const std::vector< std::vector< uint32_t > > & tbpWords() const
Get the TBP words for all bunch crossings.
uint32_t numStatusWords() const
Retrieve the number of status words in the trailer.
const std::vector< std::vector< uint32_t > > & tapWords() const
Get the TAP words for all bunch crossings.
uint32_t infoStatus() const
Retrieve the info status word.
uint32_t headerSize() const
Retrieve the number of words in the header.
uint32_t triggerType() const
Retrieve the LVL1 trigger type.
uint32_t runNumber() const
Retrieve the run number.
uint32_t statusPosition() const
Retrieve the position of status information in the ROD.
uint32_t BCID() const
Retrieve the bunch crossing ID.
const std::vector< uint32_t > & additionalWords() const
Get the additional data words.
uint32_t headerFormatVersion() const
Retrieve the format version of the header.
uint32_t errorStatus() const
Retrieve the error status word.
uint32_t timeSec() const
Get the time in seconds.
const std::vector< std::vector< uint32_t > > & tipWords() const
Get the TIP words for all bunch crossings.
const std::vector< std::vector< uint32_t > > & tavWords() const
Get the TAV words for all bunch crossings.
uint32_t eventType() const
Retrieve the LVL1 event type.
uint32_t headerMarker() const
Retrieve the header marker word.
const CTPResult_v1::CTPBunchCrossing getBC(const int bunch=-1) const
Get the CTPBunchCrossing object for a specific bunch in the readout window.
uint32_t ctpVersionNumber() const
Get the CTP version number.
uint32_t timeNanoSec() const
Get the time in nanoseconds.
uint32_t numberOfBunches() const
Get the number of bunch crossings.
uint32_t sourceID() const
Retrieve the sub-detector source ID.
uint32_t l1AcceptBunchPosition() const
Get the L1 accept bunch position.