28 std::vector<edm::InputTag> srcLabels = iConfig.
getParameter<std::vector<edm::InputTag> >(
"srcLabels");
50 edm::LogError(
"AlCaECALRecHitReducerError") <<
"Size of eta/phi should be odd numbers";
104 auto miniEBRecHitCollection = std::make_unique<EBRecHitCollection>();
105 auto miniEERecHitCollection = std::make_unique<EERecHitCollection>();
108 std::set<DetId> reducedRecHit_EBmap;
109 std::set<DetId> reducedRecHit_EEmap;
113 auto reducedCaloClusterCollection = std::make_unique<reco::CaloClusterCollection>();
117 for (reco::PhotonCollection::const_iterator phoIt = phoHandle->begin(); phoIt != phoHandle->end(); phoIt++) {
129 for (; it != itend; ++it) {
131 reducedCaloClusterCollection->push_back(caloClus);
138 iEvent.getByToken(*iToken, eleViewHandle);
141 for (
auto eleIt = eleViewHandle->begin(); eleIt != eleViewHandle->end(); eleIt++) {
144 if (fabs(sc.
eta()) < 1.479) {
152 for (; it != itend; ++it) {
154 reducedCaloClusterCollection->push_back(caloClus);
160 for (reco::SuperClusterCollection::const_iterator SC_iter = EESCHandle->begin(); SC_iter != EESCHandle->end();
169 for (; it != itend; ++it) {
171 reducedCaloClusterCollection->push_back(caloClus);
176 for (std::set<DetId>::const_iterator
itr = reducedRecHit_EBmap.begin();
itr != reducedRecHit_EBmap.end();
itr++) {
177 if (barrelHitsCollection->
find(*
itr) != barrelHitsCollection->
end())
178 miniEBRecHitCollection->push_back(*(barrelHitsCollection->
find(*
itr)));
181 for (std::set<DetId>::const_iterator
itr = reducedRecHit_EEmap.begin();
itr != reducedRecHit_EEmap.end();
itr++) {
182 if (endcapHitsCollection->
find(*
itr) != endcapHitsCollection->
end())
183 miniEERecHitCollection->push_back(*(endcapHitsCollection->
find(*
itr)));
194 std::set<DetId>& reducedRecHitMap,
204 for (
unsigned int i = 0;
i < recHit_window.size();
i++) {
205 reducedRecHitMap.insert(recHit_window[
i]);
208 const std::vector<std::pair<DetId, float> >& scHits = sc.
hitsAndFractions();
209 for (std::vector<std::pair<DetId, float> >::const_iterator scHit_itr = scHits.begin(); scHit_itr != scHits.end();
212 reducedRecHitMap.insert(scHit_itr->first);