12 deltaTprecise_ (0.0
f) ,
14 precisePresamples_(0) {
setBlank() ; }
20 deltaTprecise_ (0.0
f) ,
21 preciseSize_(presize),
22 precisePresamples_(0) {
setBlank() ; }
51 edm::LogError(
"CaloHitResponse") <<
"Mismatched calo signals ";
54 for(i = 0; i <
size_; ++
i) {
73 int firstbin = floor(t/25.);
74 double f = t/25. - firstbin;
75 int nextbin = firstbin + 1;
76 double v1 = (firstbin < 0 || firstbin >=
MAXSAMPLES) ? 0. :
data_[firstbin];
77 double v2 = (nextbin < 0 || nextbin >=
MAXSAMPLES) ? 0. :
data_[nextbin];
78 data[
i] = (v1*(1.-
f)+v2*f);
105 s <<
"DetId=" << samples.
id();
108 s <<
", "<< samples.
size() <<
" samples";
110 s <<
", " << samples.
preciseSize() <<
" preciseSamples"
111 <<
", " << preciseStep <<
" precise step";
113 for (
int i=0;
i<samples.
size();
i++) {
114 s <<
i <<
":" << samples[
i];
115 int precisei =
i*preciseStep;
116 if(precisei < samples.preciseSize()) {
117 s <<
" " << samples.preciseAt(precisei) ;
CaloSamples & scale(double value)
multiply each item by this value
static const int MAXSAMPLES
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int preciseSize() const
get the size
std::vector< float > preciseData_
void setPresamples(int pre)
set presample information
unsigned int offset(bool)
int size() const
get the size
CaloSamples & offsetTime(double offset)
shift all the samples by a time, in ns, interpolating
char data[epos_bytes_allocation]
CaloSamples & operator+=(double value)
add a value to all samples
DetId id() const
get the (generic) id
tuple size
Write out results.