Go to the documentation of this file. 1 #ifndef MU_END_ANALOG_SIGNAL
2 #define MU_END_ANALOG_SIGNAL
37 int element,
float binSize, std::vector<float> &binValues,
float total = 0.,
float timeOffset = 0.)
57 int i = static_cast<int>(
f);
58 f -= static_cast<float>(
i);
77 for (
size_t i = 0;
i <
n; ++
i) {
void setElement(int element)
float getBinValue(int i) const
std::vector< float > theBinValues
void superimpose(const CSCAnalogSignal &signal2)
float & operator[](int i)
CSCAnalogSignal(int element, float binSize, std::vector< float > &binValues, float total=0., float timeOffset=0.)
void operator*=(float scaleFactor)
float peakTime() const
the time when the signal peaks
float getValue(float t) const
float getTimeOffset() const
int getElement() const
constructor from time and amp shape
void operator+=(float offset)
const float & operator[](int i) const
friend std::ostream & operator<<(std::ostream &, const CSCAnalogSignal &)
void setTimeOffset(float offset)