35#ifndef LARRAWCONDITIONS_LAR2DWAVEBASE_H
36#define LARRAWCONDITIONS_LAR2DWAVEBASE_H
52 static const unsigned int nWaves = 2;
70 const std::vector<std::vector<float> >& wave0,
71 const std::vector<std::vector<float> >& wave1);
90 unsigned int nSamples,
91 const std::vector<float>& wave0,
92 const std::vector<float>& wave1,
Proxy for accessing a range of float values like a vector.
static const unsigned int nWaves
The number of different types of waves we store.
float timeBinWidth() const
Return the time bin width for this channel.
LAr2DWaveBase()
Default constructor.
size_t waveSize(unsigned int which) const
Return the number of time bins for a wave.
float m_timeOffset
The time offset for this channel.
void setFrom(LAr2DWaveBase &other)
Assign from another wave object.
bool isEmpty() const
Is there any data in this channel?
std::vector< std::vector< float > > m_waves[nWaves]
The wave data.
LArVectorProxy wave(unsigned int which, size_t tbin) const
Return wave data.
float timeOffset() const
Return the time offset for this channel.
float m_timeBinWidth
The time bin width for this channel.
A more compact way of storing shape/ofc data — non-const portion.
A more compact way of storing shape/ofc data — const portion.
Proxy for accessing a range of float values like a vector.