![]() |
Project
|
Helper class to handle decoded TRU data during the reconstruction. More...
#include <TRUDataHandler.h>
Classes | |
class | PatchIndexException |
Handler of errors related to invalid trigger patch IDs. More... | |
Public Member Functions | |
TRUDataHandler () | |
Constructor. | |
~TRUDataHandler ()=default | |
Destructor. | |
void | reset () |
Reset handler. | |
void | setPatch (unsigned int index, unsigned int time) |
Set reconstructed trigger patch. | |
void | setFired (bool fired) |
Mark TRU as fired (containing at least one patch above threshold) | |
void | setL0time (int l0time) |
Set the L0 time of the TRU. | |
void | setTRUIndex (int index) |
Set the index of the TRU (in global STU indexing scheme) | |
bool | isFired () const |
Check whether the TRU was fired (at least one patch above threshold) | |
int8_t | getL0time () const |
bool | hasPatch (unsigned int index) const |
Check whehther the patch at the given index has fired. | |
uint8_t | getPatchTime (unsigned int index) const |
Get the trigger time of the trigger patch at a given index. | |
bool | hasAnyPatch () const |
Check whether the TRU has any patch fired. | |
int | getTRUIndex () const |
Get the index of the TRU in global (STU) index schemes. | |
void | printStream (std::ostream &stream) const |
Print TRU information to an output stream. | |
Helper class to handle decoded TRU data during the reconstruction.
The decoded TRU data contains the following information
Definition at line 42 of file TRUDataHandler.h.
TRUDataHandler::TRUDataHandler | ( | ) |
Constructor.
Definition at line 17 of file TRUDataHandler.cxx.
|
default |
Destructor.
|
inline |
Definition at line 113 of file TRUDataHandler.h.
|
inline |
Get the trigger time of the trigger patch at a given index.
index | Index of the trigger patch |
PatchIndexException | in case the patch index is invalid (>= 77) |
Definition at line 129 of file TRUDataHandler.h.
|
inline |
Get the index of the TRU in global (STU) index schemes.
Definition at line 149 of file TRUDataHandler.h.
|
inline |
Check whether the TRU has any patch fired.
Definition at line 137 of file TRUDataHandler.h.
|
inline |
Check whehther the patch at the given index has fired.
index | Index of the patch |
PatchIndexException | in case the patch index is invalid (>= 77) |
Definition at line 119 of file TRUDataHandler.h.
|
inline |
Check whether the TRU was fired (at least one patch above threshold)
Definition at line 111 of file TRUDataHandler.h.
void TRUDataHandler::printStream | ( | std::ostream & | stream | ) | const |
Print TRU information to an output stream.
stream | Stream to print on |
Definition at line 30 of file TRUDataHandler.cxx.
void TRUDataHandler::reset | ( | ) |
Reset handler.
Definition at line 22 of file TRUDataHandler.cxx.
|
inline |
Mark TRU as fired (containing at least one patch above threshold)
fired |
Definition at line 99 of file TRUDataHandler.h.
Set the L0 time of the TRU.
l0time | L0 time of the TRU |
Definition at line 103 of file TRUDataHandler.h.
Set reconstructed trigger patch.
index | Index of the trigger patch in the TRU |
time | Decoded time of the patch |
PatchIndexException | in case the patch index is invalid (>= 77) |
Definition at line 91 of file TRUDataHandler.h.
Set the index of the TRU (in global STU indexing scheme)
index | Index of the TRU |
Definition at line 107 of file TRUDataHandler.h.