60 inline auto convertToGP(
const T& orgPoint) {
61 return GlobalPoint(orgPoint.x(), orgPoint.y(), orgPoint.z());
68 return trackerTopo.
pxfDisk(detId);
75 int layerOrDisk = getLayerOrDiskNr(matchInfo.
detId, trackerTopo);
87 : matcherConfiguration_(
pset.getParameter<
edm::
ParameterSet>(
"matcherConfig"), consumesCollector()),
92 putToken_{produces<reco::ElectronSeedCollection>()},
93 trackerTopologyToken_{esConsumes<TrackerTopology, TrackerTopologyRcd>()} {
94 for (
const auto& scTag :
pset.getParameter<std::vector<edm::InputTag>>(
"superClusters")) {
95 superClustersTokens_.emplace_back(consumes<std::vector<reco::SuperClusterRef>>(scTag));
105 desc.
add<std::vector<edm::InputTag>>(
"superClusters", {{
"hltEgammaSuperClustersToPixelMatch"}});
108 descriptions.
add(
"electronNHitSeedProducer", desc);
123 for (
auto& superClusRef :
iEvent.get(superClustersToken)) {
127 superClusRef->position().phi(),
128 superClusRef->position().r()));
130 const auto matchedSeeds = matcher(
initialSeeds, caloPosition, primVtxPos, superClusRef->energy());
132 for (
auto& matchedSeed : matchedSeeds) {
135 eleSeed.setCaloCluster(caloClusRef);
136 eleSeed.setNrLayersAlongTraj(matchedSeed.nrValidLayers());
137 for (
auto& matchInfo : matchedSeed.matches()) {
138 eleSeed.addHitInfo(makeSeedPixelVar(matchInfo, trackerTopology));
140 eleSeeds.emplace_back(eleSeed);