9 #ifndef OpDetWaveform_h 10 #define OpDetWaveform_h 35 OpDetWaveform(TimeStamp_t time = std::numeric_limits<TimeStamp_t>::max(),
36 Channel_t chan = std::numeric_limits<Channel_t>::max(),
38 : fChannel(chan), fTimeStamp(time)
43 OpDetWaveform(TimeStamp_t time, Channel_t chan, std::vector<uint16_t>
const& rhs)
44 :
std::
vector<ADC_Count_t>(rhs.
begin(), rhs.
end()), fChannel(chan), fTimeStamp(time){};
47 std::vector<ADC_Count_t>&
Waveform() {
return *
this; }
50 std::vector<ADC_Count_t>
const&
Waveform()
const {
return *
this; }
78 return (*lhs) < (*rhs);
bool operator<(const OpDetWaveform &lhs, const OpDetWaveform &rhs)
double TimeStamp_t
us since 1970, based on TimeService
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.