Object representing a time gate, with a start and and end. More...
#include <BeamGateStruct.h>
Classes | |
struct | TimeRange |
Utility class expressing a time range. More... | |
Public Types | |
using | microseconds = util::quantities::intervals::microseconds |
using | electronics_time = detinfo::timescales::electronics_time |
using | simulation_time = detinfo::timescales::simulation_time |
using | optical_tick = detinfo::timescales::optical_tick |
Public Member Functions | |
BeamGateStruct (microseconds duration, microseconds delay, detinfo::DetectorTimings const &detTimings) | |
Constructor: gate of specified duration and start. More... | |
Access | |
icarus::trigger::OpticalTriggerGate const & | asGate () const |
Returns the gate as an OpticalTriggerGate (electronics time). More... | |
TimeRange< simulation_time > const & | asSimulationRange () const |
Returns the gate as start/stop pair in simulation time scale. More... | |
TimeRange< optical_tick > const & | asOptTickRange () const |
Returns the gate as start/stop pair in optical ticks. More... | |
TimeRange< electronics_time > const & | asElectronicsTimeRange () const |
Returns the gate as start/stop pair in electronics time scale. More... | |
template<typename Time = microseconds> | |
Time | duration () const |
Returns the time duration of the gate in the specified time unit. More... | |
bool | operator== (BeamGateStruct const &other) const |
Comparison operators. More... | |
bool | operator!= (BeamGateStruct const &other) const |
Private Attributes | |
icarus::trigger::OpticalTriggerGate const | fGate |
TimeRange< electronics_time > const | fRangeElec |
TimeRange< simulation_time > const | fRangeSim |
TimeRange< optical_tick > const | fRangeOpt |
Object representing a time gate, with a start and and end.
The object caches the gate in a few formats.
Definition at line 58 of file BeamGateStruct.h.
Definition at line 62 of file BeamGateStruct.h.
Definition at line 61 of file BeamGateStruct.h.
Definition at line 64 of file BeamGateStruct.h.
Definition at line 63 of file BeamGateStruct.h.
icarus::trigger::BeamGateStruct::BeamGateStruct | ( | microseconds | duration, |
microseconds | delay, | ||
detinfo::DetectorTimings const & | detTimings | ||
) |
Constructor: gate of specified duration and start.
duration | length of the gate [s] |
delay | (default: 0_us ) time the gate opens relative to beam gate opening [s] |
detTimings | object used for time conversions |
Definition at line 140 of file BeamGateStruct.h.
|
inline |
Returns the gate as start/stop pair in electronics time scale.
Definition at line 105 of file BeamGateStruct.h.
|
inline |
Returns the gate as an OpticalTriggerGate (electronics time).
Definition at line 94 of file BeamGateStruct.h.
|
inline |
Returns the gate as start/stop pair in optical ticks.
Definition at line 101 of file BeamGateStruct.h.
|
inline |
Returns the gate as start/stop pair in simulation time scale.
Definition at line 97 of file BeamGateStruct.h.
|
inline |
Returns the time duration of the gate in the specified time unit.
Definition at line 110 of file BeamGateStruct.h.
|
inline |
Definition at line 119 of file BeamGateStruct.h.
|
inline |
Comparison operators.
Definition at line 117 of file BeamGateStruct.h.
|
private |
Definition at line 126 of file BeamGateStruct.h.
|
private |
Definition at line 128 of file BeamGateStruct.h.
|
private |
Definition at line 132 of file BeamGateStruct.h.
|
private |
Definition at line 130 of file BeamGateStruct.h.