31 edm::LogError(
"InterestingDetIdCollectionProducerError") <<
"Size of eta/phi should be odd numbers";
65 std::vector<DetId> indexToStore;
66 indexToStore.reserve(1000);
68 reco::BasicClusterCollection::const_iterator clusIt;
70 std::vector<DetId> xtalsToStore;
71 xtalsToStore.reserve(50);
72 for (clusIt = pClusters->begin(); clusIt != pClusters->end(); clusIt++) {
73 const std::vector<std::pair<DetId, float> >& clusterDetIds = clusIt->hitsAndFractions();
74 for (
const auto& detidpair : clusterDetIds) {
75 indexToStore.push_back(detidpair.first);
79 if (clusterDetIds.front().first.subdetId() ==
EcalBarrel || clusterDetIds.front().first.subdetId() ==
EcalEndcap) {
80 std::vector<std::pair<DetId, float> >::const_iterator posCurrent;
87 for (posCurrent = clusterDetIds.begin(); posCurrent != clusterDetIds.end(); posCurrent++) {
89 if ((!((*posCurrent).first.null())) && (itt != recHitsHandle->
end()) && ((*itt).energy() >
eMax)) {
90 eMax = (*itt).energy();
102 for (
const auto& detid : xtalsToStore) {
103 indexToStore.push_back(detid);
112 indexToStore.push_back(it->id());
116 indexToStore.push_back(it->id());
121 indexToStore.push_back(it->id());
129 if (
abs(ebid.ieta()) == 85)
130 indexToStore.push_back(it->id());
133 indexToStore.push_back(it->id());
140 std::sort(indexToStore.begin(), indexToStore.end());
141 std::unique(indexToStore.begin(), indexToStore.end());