22 std::vector<EcalRecHitCollection::const_iterator>
hits;
33 if (
hit != hitsEC->
end()) {
41 if (
tt > tMin &&
tt < tMax)
50 return std::pair<double, bool>(ener,
flag);
53 std::pair<double, bool>
energyECAL(
const std::vector<DetId>& vdets,
64 for (
const auto&
id : vdets) {
66 std::pair<double, bool> ecalEn =
spr::energyECAL(
id, hitsEC, sevlv, testSpike, tMin, tMax,
debug);
69 if ((ecalEn.first > eThr) || noThrCut)
94 std::vector<DetId> vdets;
98 std::cout <<
"Inside eECALmatrix " << 2 *
ieta + 1 <<
"X" << 2 *
iphi + 1 <<
" nXtals " << vdets.size()
103 for (
const auto&
id : vdets) {
130 std::vector<DetId> vdets;
134 std::cout <<
"Inside eECALmatrix " << 2 *
ieta + 1 <<
"X" << 2 *
iphi + 1 <<
" nXtals " << vdets.size()
141 for (
const auto&
id : vdets) {
145 bool ok = (
id.subdetId() ==
EcalBarrel) ? (eTower > ebThr) : (eTower > eeThr);
151 std::pair<double, bool> ecalEn = (
id.subdetId() ==
EcalBarrel)
182 std::cout <<
"eECALmatrix: " << detId <<
" belongs to " <<
tower <<
" which has " << ids.size() <<
" constituents"
184 for (
unsigned int i = 0;
i < ids.size(); ++
i) {
200 std::vector<DetId> idEBEE;
202 for (
const auto&
id : ids) {
204 idEBEE.emplace_back(
id);
208 idEBEE.emplace_back(
id);
215 std::cout <<
"eECALmatrix: with " << idEBEE.size() <<
" EB+EE hits and "
216 <<
"spike flag " <<
flag << std::endl;
218 double etot = (!idEBEE.empty()) ?
spr::energyECAL(idEBEE, hitsEB, hitsEE, ebThr, eeThr, tMin, tMax,
debug) : 0;
219 return std::pair<double, bool>(etot,
flag);