Algorithm verifying the topology from trigger gates. More...
#include <WindowTopologyAlg.h>
Public Types | |
using | TriggerGates_t = icarus::trigger::WindowTopologyAlg::TriggerGates_t |
Type of sets of trigger gates. More... | |
using | TriggerGatesPerCryostat_t = icarus::trigger::WindowTopologyAlg::TriggerGatesPerCryostat_t |
Type of sets of trigger gates, grouped by cryostat. More... | |
Public Member Functions | |
WindowTopologyVerification (icarus::trigger::WindowChannelMap topology, std::string const &logCategory="WindowTopologyVerification") | |
Constructor. More... | |
WindowTopologyVerification (std::string const &logCategory="WindowTopologyVerification") | |
Constructor. More... | |
bool | hasTopology () const |
Returns whether a window topology is set (see setTopology() ). More... | |
void | setTopology (icarus::trigger::WindowChannelMap topology) |
Resets the topology to be verified against. More... | |
void | clearTopology () |
Forgets the current topology. Set a new one with setTopology() . More... | |
WindowChannelMap const & | getTopology () const |
std::string | verify (TriggerGatesPerCryostat_t const &gates) const |
Verifies that gates match the topology current set up. More... | |
std::string | verify (TriggerGates_t const &gates) const |
void | operator() (TriggerGatesPerCryostat_t const &gates) const |
Verifies that gates match the topology current set up. More... | |
void | operator() (TriggerGates_t const &gates) const |
Private Types | |
using | InputTriggerGate_t = icarus::trigger::WindowTopologyAlg::InputTriggerGate_t |
Type of trigger gate used for input to the algorithm. More... | |
Private Member Functions | |
std::string | verifyGate (std::size_t iWindow, InputTriggerGate_t const &gate) const |
template<typename Gates > | |
void | verifyOrThrow (Gates const &gates) const |
Implementation of operator() . More... | |
Private Attributes | |
std::optional < icarus::trigger::WindowChannelMap > | fWindowMap |
The reference topology to check against. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icarus::ns::util::mfLoggingClass | |
mfLoggingClass (std::string const &logCategory) | |
Constructor: initializes with the specified log category. More... | |
std::string | logCategory () const |
Returns the logging category string for this object. More... | |
mfLoggingClass const & | loggingClass () const |
Returns this object (as a logging class object). More... | |
mf::LogError | mfLogError (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogError() stream for logging. More... | |
mf::LogWarning | mfLogWarning (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogWarning() stream for logging. More... | |
mf::LogProblem | mfLogProblem (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogProblem() stream for logging. More... | |
mf::LogInfo | mfLogInfo (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogInfo() stream for logging. More... | |
mf::LogVerbatim | mfLogVerbatim (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogVerbatim() stream for logging. More... | |
mf::LogDebug | mfLogDebug (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogDebug() stream for logging. More... | |
mf::LogTrace | mfLogTrace (std::string const &file={}, int const lineNumber=0) const |
Returns a mf::LogTrace() stream for logging. More... | |
Algorithm verifying the topology from trigger gates.
The algorithm needs to be provided a reference topology information. It will then analyze any set of trigger gates to confirm that their grouping matches the one defined in that topology.
Definition at line 215 of file WindowTopologyAlg.h.
|
private |
Type of trigger gate used for input to the algorithm.
Definition at line 300 of file WindowTopologyAlg.h.
using icarus::trigger::WindowTopologyVerification::TriggerGates_t = icarus::trigger::WindowTopologyAlg::TriggerGates_t |
Type of sets of trigger gates.
Definition at line 225 of file WindowTopologyAlg.h.
using icarus::trigger::WindowTopologyVerification::TriggerGatesPerCryostat_t = icarus::trigger::WindowTopologyAlg::TriggerGatesPerCryostat_t |
Type of sets of trigger gates, grouped by cryostat.
Definition at line 229 of file WindowTopologyAlg.h.
|
inline |
Constructor.
topology | the window topology to be verified against |
logCategory | category tag for messages from this algorithm |
Definition at line 407 of file WindowTopologyAlg.h.
|
inline |
Constructor.
logCategory | category tag for messages from this algorithm |
Topology must be set up with setTopology()
before any verification can occur.
Definition at line 417 of file WindowTopologyAlg.h.
|
inline |
Forgets the current topology. Set a new one with setTopology()
.
Definition at line 442 of file WindowTopologyAlg.h.
|
inline |
Returns the current window topology.
std::bad_optional_access | if no topology has been set |
Definition at line 436 of file WindowTopologyAlg.h.
|
inline |
Returns whether a window topology is set (see setTopology()
).
Definition at line 425 of file WindowTopologyAlg.h.
|
inline |
Verifies that gates
match the topology current set up.
gates | the set of gates to match to the topology |
cet::exception | (category: WindowTopologyVerification ) if no window topology is set up yet |
cet::exception | (category: WindowTopologyVerification ) if verification fails |
verify()
Definition at line 454 of file WindowTopologyAlg.h.
|
inline |
Definition at line 448 of file WindowTopologyAlg.h.
|
inline |
Resets the topology to be verified against.
Definition at line 431 of file WindowTopologyAlg.h.
std::string icarus::trigger::WindowTopologyVerification::verify | ( | TriggerGatesPerCryostat_t const & | gates | ) | const |
Verifies that gates
match the topology current set up.
gates | the set of gates to match to the topology |
cet::exception | (category: WindowTopologyVerification ) if no window topology is set up yet |
Gates can be specified either as a collection, or as a set of collections, one per cryostat.
Definition at line 344 of file WindowTopologyAlg.cxx.
std::string icarus::trigger::WindowTopologyVerification::verify | ( | TriggerGates_t const & | gates | ) | const |
Definition at line 314 of file WindowTopologyAlg.cxx.
|
private |
Checks that the specified gate
matched the window with index iWindow
.
Definition at line 376 of file WindowTopologyAlg.cxx.
|
private |
Implementation of operator()
.
Definition at line 490 of file WindowTopologyAlg.h.
|
private |
The reference topology to check against.
Definition at line 220 of file WindowTopologyAlg.h.