LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
OpWaveform.cxx
Go to the documentation of this file.
1 
10 
11 // C/C++ standard libraries
12 #include <utility> // std::move()
13 
14 namespace recob {
15 
16  //----------------------------------------------------------------------
17  OpWaveform::OpWaveform() : fTimeStamp(0), fChannel(raw::InvalidChannelID), fSignalROI() {}
18 
19  //----------------------------------------------------------------------
21  raw::ChannelID_t channel,
22  RegionsOfInterest_t const& sigROIlist)
23  : fTimeStamp(time), fChannel(channel), fSignalROI(sigROIlist)
24  {}
25 
26  //----------------------------------------------------------------------
27  OpWaveform::OpWaveform(double time, raw::ChannelID_t channel, RegionsOfInterest_t&& sigROIlist)
28  : fTimeStamp(time), fChannel(channel), fSignalROI(std::move(sigROIlist))
29  {}
30 
31  //----------------------------------------------------------------------
32  std::vector<float> OpWaveform::Signal() const
33  {
34  return {fSignalROI.begin(), fSignalROI.end()};
35  } // OpWaveform::Signal()
36 
37 }
double fTimeStamp
Time stamp.
Definition: OpWaveform.h:103
Reconstruction base classes.
STL namespace.
Raw data description.
Definition: RawTypes.h:6
OpWaveform()
Default constructor: a wire with no signal information.
Definition: OpWaveform.cxx:17
constexpr ChannelID_t InvalidChannelID
ID of an invalid channel.
Definition: RawTypes.h:31
iterator end()
Standard iterators interface.
Definition of calibrated photon detector waveform.
RegionsOfInterest_t fSignalROI
Signal on the channel as function of time tick.
Definition: OpWaveform.h:105
iterator begin()
Standard iterators interface.
raw::ChannelID_t fChannel
ID of the associated channel.
Definition: OpWaveform.h:104
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
std::vector< float > Signal() const
Return a zero-padded full length vector filled with RoI signal.
Definition: OpWaveform.cxx:32