18#ifndef LARRAWCONDITIONS_LARWAVE_H
19#define LARRAWCONDITIONS_LARWAVE_H
38 LArWave(
const unsigned nSamples,
const double dt,
const unsigned flag=0);
39 LArWave(
const std::vector<double>& theVector,
const double dt,
const unsigned flag=0);
47 const std::vector<double>&
getWave()
const;
59 double getTime(
const unsigned i)
const;
65 unsigned getIndex(
double aTime)
const;
81 void setSize (
const unsigned nSize);
84 void setDt (
const double dt);
90 void setFlag (
const unsigned flag);
166const std::vector<double>&
double getTime(const unsigned i) const
time
std::vector< double > m_amplitudes
void setSample(const unsigned i, const double aVal)
set the amplitude for time bin i
const double & operator[](const unsigned int i) const
Amplitude per time bin.
LArWave & operator+=(const LArWave &bWave)
size_t getSize() const
number of time samples
LArWave operator%(const LArWave &bWave) const
LArWave operator/(const LArWave &bWave) const
LArWave & operator*=(const double aScale)
LArWave & operator-=(const LArWave &bWave)
bool isEmpty() const
is LArWave uninitialized?
LArWave operator-(const LArWave &bWave) const
const double & getSample(const unsigned int i) const
Amplitude per time bin.
double & operator[](const unsigned int i)
Amplitude per time bin - NOT const.
void setDt(const double dt)
set the delta time
void setSize(const unsigned nSize)
resize the number of time bin samples
virtual ~LArWave()=default
const std::vector< double > & getWave() const
Wave parameters.
LArWave operator*(const LArWave &bWave) const
unsigned getIndex(double aTime) const
index for a time value
LArWave operator+(const LArWave &bWave) const
const double & getDt() const
delta time
unsigned getFlag() const
flag: ...
void setFlag(const unsigned flag)
set flag