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