|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef LARRAWCONDITIONS_LARWAVE_H
19 #define LARRAWCONDITIONS_LARWAVE_H
39 LArWave(
const std::vector<double>& theVector,
const double dt,
const unsigned flag=0);
46 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);
161 m_dt(
dt) , m_amplitudes(theVector) , m_flag(
flag)
166 const std::vector<double>&
173 {
return i *
m_dt ; }
204 #endif // LARRAWCONDITIONS_LARWAVE_H
LArWave operator%(const LArWave &bWave) const
std::vector< double > m_amplitudes
size_t getSize() const
number of time samples
unsigned getFlag() const
flag: ...
const std::vector< double > & getWave() const
Wave parameters.
const double & getDt() const
delta time
LArWave operator-(const LArWave &bWave) const
void setSize(const unsigned nSize)
resize the number of time bin samples
double getTime(const unsigned i) const
time
const double & getSample(const unsigned int i) const
Amplitude per time bin.
bool isEmpty() const
is LArWave uninitialized?
LArWave & operator-=(const LArWave &bWave)
LArWave & operator+=(const LArWave &bWave)
LArWave operator/(const LArWave &bWave) const
LArWave operator+(const LArWave &bWave) const
void setDt(const double dt)
set the delta time
unsigned getIndex(double aTime) const
index for a time value
const double & operator[](const unsigned int i) const
Amplitude per time bin.
void setSample(const unsigned i, const double aVal)
set the amplitude for time bin i
void setFlag(const unsigned flag)
set flag
LArWave operator*(const LArWave &bWave) const
virtual ~LArWave()=default
LArWave & operator*=(const double aScale)