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