4 using namespace pftools;
24 for (std::vector<CandidateWrapper>::const_iterator
c =
27 s <<
"\t\t\t\tType: " << cw.
type_ <<
", (" << cw.
energy_ <<
", "
29 << cw.
eta_ <<
", " << cw.
phi_ <<
"]\n";
39 s <<
"CalibratableElement: (energy, eta, phi) = (" << ce.
energy_ <<
", "
40 << ce.
eta_ <<
", " << ce.
phi_ <<
")";
88 for (std::vector<CandidateWrapper>::iterator it =
cands_.begin(); it
112 const std::vector<CandidateWrapper>& wrappers) {
115 if (wrappers.size() == 0)
117 for (std::vector<CandidateWrapper>::const_iterator it = wrappers.begin(); it
118 != wrappers.end(); ++it) {
129 cw.
phi_ /= wrappers.size();
130 cw.
eta_ /= wrappers.size();
133 cw.
type_ /= wrappers.size();
141 if (diets.size() == 0)
143 for (std::vector<CalibratableElement>::const_iterator cit = diets.begin(); cit
144 != diets.end(); ++cit) {
153 dmean.
eta_ /= diets.size();
154 dmean.
phi_ /= diets.size();
156 dmean.
time_ /= diets.size();
162 std::vector<CalibratableElement>::const_iterator cit = source.begin();
163 for (; cit != source.end(); ++cit) {
168 <<
": couldn't fill CaloWindow with " << ce <<
"\n";
static std::string const source