50 std::vector<edm::EDGetTokenT<DetIdCollection>>
64 : geometry_p(nullptr) {
70 caloGeometryToken_ = esConsumes<CaloGeometry, CaloGeometryRecord, edm::Transition::BeginRun>();
76 [
this](
edm::InputTag const&
tag) { return consumes<DetIdCollection>(tag); });
80 [
this](
edm::InputTag const&
tag) { return consumes<DetIdCollection>(tag); });
92 edm::LogError(
"WrongGeometry") <<
"could not cast the subdet geometry to preshower geometry";
96 topology_p = std::make_unique<EcalPreshowerTopology>();
103 auto output = std::make_unique<EcalRecHitCollection>();
110 for (reco::SuperClusterCollection::const_iterator isc = eeSuperClusters->begin(); isc != eeSuperClusters->end();
114 if (fabs(isc->eta()) < 1.65 || fabs(isc->eta()) > 2.6)
120 for (; ibc != isc->clustersEnd(); ++ibc) {
143 edm::LogError(
"MissingInput") <<
"no reason to skip detid from : (" <<
labels.module <<
", "
144 <<
labels.productInstance <<
", " <<
labels.process <<
")" << std::endl;
155 for (
const auto&
hit : *ESRecHits_) {
156 if (
hit.recoFlag() == 1 ||
hit.recoFlag() == 14 ||
157 (
hit.recoFlag() <= 10 &&
hit.recoFlag() >= 5)) {
165 e.getByToken(
token, detId);
169 edm::LogError(
"MissingInput") <<
"no reason to skip detid from : (" <<
labels.module <<
", "
170 <<
labels.productInstance <<
", " <<
labels.process <<
")" << std::endl;
178 for (it = ESRecHits_->begin(); it != ESRecHits_->end(); ++it) {
191 map<DetId, const EcalRecHit*>::iterator it;
192 map<DetId, int>::iterator itu;
208 strip1 = theESNav1.north();
210 strip2 = theESNav2.east();
211 }
else if (row == -1) {
213 strip1 = theESNav1.south();
215 strip2 = theESNav2.west();
224 for (
int i = 0;
i < 15; ++
i) {
225 next = theESNav1.east();
235 theESNav1.setHome(strip1);
237 for (
int i = 0;
i < 15; ++
i) {
238 next = theESNav1.west();
253 for (
int i = 0;
i < 15; ++
i) {
254 next = theESNav2.north();
264 theESNav2.setHome(strip2);
266 for (
int i = 0;
i < 15; ++
i) {
267 next = theESNav2.south();