Converter from raw::OpDetWaveform into sbn::OpDetWaveformMeta.
More...
#include <OpDetWaveformMetaUtils.h>
Public Types | |
| using | microseconds = util::quantities::intervals::microseconds |
Public Member Functions | |
| OpDetWaveformMetaMaker (detinfo::DetectorTimings const &detTimings) | |
| OpDetWaveformMetaMaker (microseconds opDetTickPeriod) | |
| sbn::OpDetWaveformMeta | make (raw::OpDetWaveform const &waveform) const |
Creates a sbn::OpDetWaveformMeta out of the specified waveform. More... | |
| sbn::OpDetWaveformMeta | operator() (raw::OpDetWaveform const &waveform) const |
Private Types | |
| using | electronics_time = detinfo::timescales::electronics_time |
Private Attributes | |
| microseconds | fOpDetTickPeriod |
| The duration of a optical detector tick. More... | |
| std::optional< electronics_time > | fTriggerTime |
| Cached trigger time. More... | |
| std::optional< electronics_time > | fBeamGateTime |
| Cached beam gate time. More... | |
Converter from raw::OpDetWaveform into sbn::OpDetWaveformMeta.
An object of this class is initialized once with some timings (e.g. once per event), used to make() multiple sbn::OpDetWaveformMeta and then discarded:
It supports a scenario where times (trigger and beam gate) are not available or not relevant, in which case only the duration in time of a optical detector waveform tick is needed.
Definition at line 123 of file OpDetWaveformMetaUtils.h.
Definition at line 147 of file OpDetWaveformMetaUtils.h.
Definition at line 127 of file OpDetWaveformMetaUtils.h.
| sbn::OpDetWaveformMetaMaker::OpDetWaveformMetaMaker | ( | detinfo::DetectorTimings const & | detTimings | ) |
Constructor: allows creation of sbn::OpDetWaveformMeta with full information.
Definition at line 22 of file OpDetWaveformMetaUtils.cxx.
| sbn::OpDetWaveformMetaMaker::OpDetWaveformMetaMaker | ( | microseconds | opDetTickPeriod | ) |
Constructor: allows creation of sbn::OpDetWaveformMeta with no trigger/beam time information.
Definition at line 30 of file OpDetWaveformMetaUtils.cxx.
| sbn::OpDetWaveformMeta sbn::OpDetWaveformMetaMaker::make | ( | raw::OpDetWaveform const & | waveform | ) | const |
Creates a sbn::OpDetWaveformMeta out of the specified waveform.
Definition at line 37 of file OpDetWaveformMetaUtils.cxx.
|
inline |
Definition at line 141 of file OpDetWaveformMetaUtils.h.
|
private |
Cached beam gate time.
Definition at line 152 of file OpDetWaveformMetaUtils.h.
|
private |
The duration of a optical detector tick.
Definition at line 149 of file OpDetWaveformMetaUtils.h.
|
private |
Cached trigger time.
Definition at line 151 of file OpDetWaveformMetaUtils.h.
1.8.5