55 std::vector<DetId> indexToStore;
56 indexToStore.reserve(100);
59 for (
auto& ele : *eles) {
60 float scEt = ele.superCluster()->energy() *
std::sin(ele.superCluster()->position().theta());
62 addDetIds(*ele.superCluster(), *ecalPFClusters, *eeClusToESMap, indexToStore);
66 for (
auto& pho : *phos) {
67 float scEt = pho.superCluster()->energy() *
std::sin(pho.superCluster()->position().theta());
69 addDetIds(*pho.superCluster(), *ecalPFClusters, *eeClusToESMap, indexToStore);
74 float scEt = sc.energy() *
std::sin(sc.position().theta());
76 addDetIds(sc, *ecalPFClusters, *eeClusToESMap, indexToStore);
81 std::sort(indexToStore.begin(), indexToStore.end());
82 std::unique(indexToStore.begin(), indexToStore.end());
84 auto detIdCollection = std::make_unique<DetIdCollection>(indexToStore);
93 std::vector<DetId>& detIdsToStore) {
94 const float scEta = superClus.
eta();
96 const float scPhi = superClus.
phi();
100 for (
size_t clusNr = 0; clusNr <
clusters.size(); clusNr++) {
104 const auto esClusters = std::equal_range(
105 eeClusToESMap.begin(),
111 for (
auto esIt = esClusters.first; esIt != esClusters.second; ++esIt) {
113 for (
const auto& hitAndFrac : esIt->second->hitsAndFractions()) {
114 detIdsToStore.push_back(hitAndFrac.first);