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) {
float peakTime() const
the time when the signal peaks
float & operator[](int i)
friend std::ostream & operator<<(std::ostream &, const CSCAnalogSignal &)
std::vector< float > theBinValues
const float & operator[](int i) const
CSCAnalogSignal(int element, float binSize, std::vector< float > &binValues, float total=0., float timeOffset=0.)
void superimpose(const CSCAnalogSignal &signal2)
float getBinValue(int i) const
void operator*=(float scaleFactor)
float getValue(float t) const
void setTimeOffset(float offset)
float getTimeOffset() const
void setElement(int element)
int getElement() const
constructor from time and amp shape
void operator+=(float offset)