27 std::fill(mPatchTimes.begin(), mPatchTimes.end(), UCHAR_MAX);
32 std::string patchstring;
35 if (patchstring.length()) {
41 if (!patchstring.length()) {
44 stream <<
"TRU: " <<
static_cast<int>(mTRUIndex) <<
", time " <<
static_cast<int>(mL0Time) <<
", fired: " << (mL0Fired ?
"yes" :
"no") <<
", patches: " << patchstring;
Handler of errors related to invalid trigger patch IDs.
void printStream(std::ostream &stream) const
Print error on output stream.
PatchIndexException(int8_t index)
Constructor.
Helper class to handle decoded TRU data during the reconstruction.
bool hasPatch(unsigned int index) const
Check whehther the patch at the given index has fired.
void printStream(std::ostream &stream) const
Print TRU information to an output stream.
TRUDataHandler()
Constructor.
void reset()
Reset handler.
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
std::string to_string(gsl::span< T, Size > span)