32 const uint32_t&
event ) {
35 uint16_t
run =
static_cast<uint16_t
>( buffer[10] & 0xFFFF );
97 while ( !found && ii < 20 ) {
98 uint32_t dcu = buffer[21+3*
ii];
99 uint32_t
key = buffer[21+3*ii+1];
100 uint32_t evt = buffer[21+3*ii+2];
101 if ( evt == event ) {
112 std::stringstream ss;
113 ss <<
"[SiStripEventSummary::" << __func__ <<
"]" 114 <<
" Did not find DeviceId/DCUid for event " 124 std::stringstream ss;
125 ss <<
"[SiStripEventSummary::" << __func__ <<
"]" 126 <<
" Found DeviceId/DCUid for event " 128 << std::hex << std::setw(8) << std::setfill(
'0') <<
params_[0] <<
std::dec 130 << std::hex << std::setw(8) << std::setfill(
'0') <<
params_[3] <<
std::dec;
163 <<
"[SiStripEventSummary::" << __func__ <<
"]" 164 <<
" Unexpected commissioning task: " 178 const uint32_t& daq2 ) {
181 uint16_t
temp =
static_cast<uint16_t
>( (daq1>>8)&0x3 );
182 if ( temp == uint16_t(1) ) {
valid_ =
true; }
183 else if ( temp == uint16_t(2) ) {
valid_ =
false; }
184 else if ( temp == uint16_t(3) &&
188 <<
"[SiStripEventSummary::" << __func__ <<
"]" 189 <<
" DAQ register contents set to invalid: 0x" 191 << std::setw(8) << std::setfill(
'0') << daq1
198 <<
"[SiStripEventSummary::" << __func__ <<
"]" 199 <<
" Unexpected bit pattern set in DAQ1: 0x" 201 << std::setw(8) << std::setfill(
'0') << daq1
208 uint16_t
run =
static_cast<uint16_t
>( daq1&0xFF );
237 params_[2] = (daq2>>0 )&0xFFFF;
240 params_[3] = (daq2>>0)&0xFFFF0000;
253 <<
"[SiStripEventSummary::" << __func__ <<
"]" 254 <<
" Unexpected commissioning task: " 275 return os <<
"[SiStripEventSummary::" << __func__ <<
"]" << std::endl
276 <<
" isSet : " << std::boolalpha << input.
isSet() << std::noboolalpha << std::endl
277 <<
" Trigger FED id : " << input.
triggerFed() << std::endl
278 <<
" isValid : " << std::boolalpha << input.
valid() << std::noboolalpha << std::endl
280 <<
" Event number : " << input.
event() << std::endl
281 <<
" Bunch crossing : " << input.
bx() << std::endl
284 <<
" Commissioning params : " 285 << input.
params()[0] <<
", " 286 << input.
params()[1] <<
", " 287 << input.
params()[2] <<
", " sistrip::FedReadoutMode fedReadoutMode_
std::ostream & operator<<(std::ostream &os, const SiStripEventSummary &input)
static const uint32_t invalid32_
static const char mlDigis_[]
static const uint16_t valid_
static std::string const input
const std::vector< uint32_t > & params() const
static std::string runType(const sistrip::RunType &)
const sistrip::RunType & runType() const
static std::string apvReadoutMode(const sistrip::ApvReadoutMode &)
const uint32_t & bx() const
sistrip::RunType runType_
const uint32_t & event() const
void commissioningInfo(const uint32_t *const buffer, const uint32_t &event)
uint16_t triggerFed() const
const sistrip::FedReadoutMode & fedReadoutMode() const
const sistrip::ApvReadoutMode & apvReadoutMode() const
std::vector< uint32_t > params_
static std::string fedReadoutMode(const sistrip::FedReadoutMode &)