15 precisePresamples_(0) {
25 preciseSize_(presize),
26 precisePresamples_(0) {
53 edm::LogError(
"CaloHitResponse") <<
"Mismatched calo signals ";
61 if (!
other.preciseData_.empty()) {
73 int firstbin = floor(
t / 25.);
74 double f =
t / 25. - firstbin;
75 int nextbin = firstbin + 1;
76 double v1 = (firstbin < 0 || firstbin >=
size_) ? 0. :
data_[firstbin];
77 double v2 = (nextbin < 0 || nextbin >=
size_) ? 0. :
data_[nextbin];
78 data[
i] = (v1 * (1. -
f) + v2 *
f);
105 s <<
", " <<
samples.size() <<
" samples";
107 s <<
", " <<
samples.preciseSize() <<
" preciseSamples"
108 <<
", " << preciseStep <<
" preciseStep";
112 int precise_start(
i * preciseStep), precise_end(precise_start + preciseStep);
113 for (
int j(precise_start); ((
j < precise_end) && (
j <
samples.preciseSize())); ++
j)