Derivative information from raw::OpDetWaveform
data.
More...
#include <OpDetWaveformMeta.h>
Classes | |
struct | bits |
Namespace for bits in the flags. More... | |
Public Types | |
using | Flags_t = ::util::flags::FlagSet< 32U > |
Type of flag interface. More... | |
Public Member Functions | |
`raw::OpDetWaveform` interface replica | |
Partial mirror of These methods are supposed to return a value equivalent to the one from the original waveform.
| |
raw::Channel_t | ChannelNumber () const |
Returns the channnel ID of the PMT waveform. More... | |
raw::TimeStamp_t | TimeStamp () const |
Returns the timestamp at the start of the waveform. More... | |
Bit query | |
Note that each bit may be in an undefined state. The definition of a bit may be tested directly; for example: | |
bool | withBeamGate () const |
Returns whether the time interval includes for sure the beam opening time. More... | |
bool | withoutBeamGate () const |
bool | withTrigger () const |
Returns whether the time interval includes for sure the trigger time. More... | |
bool | withoutTrigger () const |
Public Attributes | |
raw::Channel_t | channel = NoChannel |
ID of the PMT channel. More... | |
std::size_t | nSamples = 0 |
Number of samples in the waveform. More... | |
double | startTime = NoTime |
Time of the first sample in the waveform [us]. More... | |
double | endTime = NoTime |
Time at the end of the last sample in the waveform [us]. More... | |
Flags_t | flags |
All flags (may be set, unset or undefined); see bits . More... | |
Static Public Attributes | |
static constexpr double | NoTime = std::numeric_limits<double>::lowest() |
Magic value denoting the absence of time information. More... | |
static constexpr raw::Channel_t | NoChannel = std::numeric_limits<raw::Channel_t>::max() |
Derivative information from raw::OpDetWaveform
data.
This objects stores some of the information from raw::OpDetWaveform
, with the notable exception of the content of the waveform. In particular, it reports the time range covered by one waveform, and it may store whether the range includes the beam gate opening time.
Times are in the same scale as for raw::OpDetWaveform
, that is the electronics time scale. The exact type of that time is detinfo::timescales::electronics_time
.
Definition at line 35 of file OpDetWaveformMeta.h.
using sbn::OpDetWaveformMeta::Flags_t = ::util::flags::FlagSet<32U> |
Type of flag interface.
Definition at line 40 of file OpDetWaveformMeta.h.
|
inline |
Returns the channnel ID of the PMT waveform.
Definition at line 99 of file OpDetWaveformMeta.h.
|
inline |
Returns the timestamp at the start of the waveform.
Definition at line 102 of file OpDetWaveformMeta.h.
|
inline |
Returns whether the time interval includes for sure the beam opening time.
Definition at line 144 of file OpDetWaveformMeta.h.
|
inline |
Returns whether the time interval for sure does not include the beam opening time.
Definition at line 148 of file OpDetWaveformMeta.h.
|
inline |
Returns whether the time interval for sure does not include the trigger time.
Definition at line 157 of file OpDetWaveformMeta.h.
|
inline |
Returns whether the time interval includes for sure the trigger time.
Definition at line 153 of file OpDetWaveformMeta.h.
raw::Channel_t sbn::OpDetWaveformMeta::channel = NoChannel |
ID of the PMT channel.
Definition at line 66 of file OpDetWaveformMeta.h.
double sbn::OpDetWaveformMeta::endTime = NoTime |
Time at the end of the last sample in the waveform [us].
Definition at line 73 of file OpDetWaveformMeta.h.
Flags_t sbn::OpDetWaveformMeta::flags |
All flags (may be set, unset or undefined); see bits
.
Definition at line 75 of file OpDetWaveformMeta.h.
|
static |
Definition at line 45 of file OpDetWaveformMeta.h.
|
static |
Magic value denoting the absence of time information.
Definition at line 43 of file OpDetWaveformMeta.h.
std::size_t sbn::OpDetWaveformMeta::nSamples = 0 |
Number of samples in the waveform.
Definition at line 68 of file OpDetWaveformMeta.h.
double sbn::OpDetWaveformMeta::startTime = NoTime |
Time of the first sample in the waveform [us].
Definition at line 71 of file OpDetWaveformMeta.h.