84 caloTopologyToken_ = esConsumes<CaloTopology, CaloTopologyRecord, edm::Transition::BeginRun>();
85 sevLVToken_ = esConsumes<EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd, edm::Transition::BeginRun>();
86 nextToDeadToken_ = esConsumes<EcalNextToDeadChannel, EcalNextToDeadChannelRcd>();
93 edm::LogError(
"InterestingDetIdCollectionProducerError") <<
"Size of eta/phi should be odd numbers";
125 std::vector<DetId> indexToStore;
126 indexToStore.reserve(1000);
128 reco::BasicClusterCollection::const_iterator clusIt;
130 std::vector<DetId> xtalsToStore;
131 xtalsToStore.reserve(50);
132 for (clusIt = pClusters->begin(); clusIt != pClusters->end(); clusIt++) {
133 const std::vector<std::pair<DetId, float> >& clusterDetIds = clusIt->hitsAndFractions();
134 for (
const auto& detidpair : clusterDetIds) {
135 indexToStore.push_back(detidpair.first);
139 if (clusterDetIds.front().first.subdetId() ==
EcalBarrel || clusterDetIds.front().first.subdetId() ==
EcalEndcap) {
140 std::vector<std::pair<DetId, float> >::const_iterator posCurrent;
147 for (posCurrent = clusterDetIds.begin(); posCurrent != clusterDetIds.end(); posCurrent++) {
149 if ((!((*posCurrent).first.null())) && (itt != recHitsHandle->
end()) && ((*itt).energy() >
eMax)) {
150 eMax = (*itt).energy();
151 eMaxId = (*itt).id();
162 for (
const auto& detid : xtalsToStore) {
163 indexToStore.push_back(detid);
172 indexToStore.push_back(it->id());
176 indexToStore.push_back(it->id());
182 indexToStore.push_back(it->id());
190 if (
abs(ebid.ieta()) == 85)
191 indexToStore.push_back(it->id());
194 indexToStore.push_back(it->id());
201 std::sort(indexToStore.begin(), indexToStore.end());
202 std::unique(indexToStore.begin(), indexToStore.end());