2 #define CALOSAMPLES_H 1
std::vector< CaloSamples > CaloSamplesCollection
CaloSamples & scale(double value)
multiply each item by this value
static const int MAXSAMPLES
void setSize(unsigned int size)
double & operator[](int i)
mutable operator to access samples
int precisePresamples() const
int presamples() const
access presample information
int preciseSize() const
get the size
std::vector< float > preciseData_
float preciseAt(int i) const
const function to access precise samples
void setDetId(DetId detId)
float preciseDeltaT() const
void setPresamples(int pre)
set presample information
std::vector< double > data_
double operator[](int i) const
const operator to access samples
std::ostream & operator<<(std::ostream &s, const CaloSamples &samps)
int size() const
get the size
CaloSamples & offsetTime(double offset)
shift all the samples by a time, in ns, interpolating
float & preciseAtMod(int i)
mutable function to access precise samples
void setPrecise(int precisePresamples, float deltaT)
CaloSamples & operator+=(double value)
add a value to all samples
DetId id() const
get the (generic) id
CaloSamples & operator*=(double value)
scale all samples
void setPreciseSize(unsigned int size)