Associates each optical detector channel to a gate. More...
#include <SlidingWindowCombinerAlg.h>
Public Types | |
using | TriggerGate_t = GateObject |
Type of gate the index lists. More... | |
Public Member Functions | |
TriggerGateIndex (std::size_t expectedChannels=0U) | |
TriggerGateIndex (std::vector< TriggerGate_t > const &gates) | |
Initializes the index from all the gates in the specified collection. More... | |
void | add (TriggerGate_t const &gate) |
unsigned int | nChannels () const |
Returns the total number of registered channels. More... | |
TriggerGate_t const * | find (raw::Channel_t const channel) const |
Returns the gate corresponding to the specified channel . More... | |
TriggerGate_t const & | operator[] (raw::Channel_t const channel) const |
Private Member Functions | |
bool | expandToHold (std::size_t chIndex) |
Static Private Member Functions | |
static std::size_t | channelIndex (raw::Channel_t channel) |
Converts a channel number into an index. More... | |
Private Attributes | |
std::vector< TriggerGate_t const * > | fGates |
Index of gates by channel number (the same gate may appear many times). More... | |
Associates each optical detector channel to a gate.
Definition at line 37 of file SlidingWindowCombinerAlg.h.
using icarus::trigger::TriggerGateIndex< GateObject >::TriggerGate_t = GateObject |
Type of gate the index lists.
Definition at line 330 of file TriggerDataUtils.h.
icarus::trigger::TriggerGateIndex< GateObject >::TriggerGateIndex | ( | std::size_t | expectedChannels = 0U | ) |
Constructs an empty index expecting to be filled by expectedChannels
registered channels.
Definition at line 663 of file TriggerDataUtils.h.
icarus::trigger::TriggerGateIndex< GateObject >::TriggerGateIndex | ( | std::vector< TriggerGate_t > const & | gates | ) |
Initializes the index from all the gates
in the specified collection.
Definition at line 671 of file TriggerDataUtils.h.
void icarus::trigger::TriggerGateIndex< GateObject >::add | ( | TriggerGate_t const & | gate | ) |
Adds a new gate to the index.
cet::exception | ("TriggerGateIndex" ) if it conflicts with a gate already added |
Definition at line 680 of file TriggerDataUtils.h.
|
staticprivate |
Converts a channel number into an index.
Definition at line 743 of file TriggerDataUtils.h.
|
private |
Extends internal map with nullptr
to hold at least chIndex
.
Definition at line 729 of file TriggerDataUtils.h.
auto icarus::trigger::TriggerGateIndex< GateObject >::find | ( | raw::Channel_t const | channel | ) | const |
Returns the gate corresponding to the specified channel
.
Definition at line 708 of file TriggerDataUtils.h.
unsigned int icarus::trigger::TriggerGateIndex< GateObject >::nChannels | ( | ) | const |
Returns the total number of registered channels.
Definition at line 701 of file TriggerDataUtils.h.
auto icarus::trigger::TriggerGateIndex< GateObject >::operator[] | ( | raw::Channel_t const | channel | ) | const |
Returns the gate corresponding to the specified channel
.
std::out_of_range | if the channel is not registered |
Definition at line 718 of file TriggerDataUtils.h.
|
private |
Index of gates by channel number (the same gate may appear many times).
Definition at line 357 of file TriggerDataUtils.h.