63 return trackerTopo.
pxfDisk(detId);
70 int layerOrDisk = getLayerOrDiskNr(matchInfo.
detId, trackerTopo);
82 : matcherConfiguration_(
pset.getParameter<
edm::
ParameterSet>(
"matcherConfig"), consumesCollector()),
83 initialSeedsToken_(consumes(
pset.getParameter<
edm::
InputTag>(
"initialSeeds"))),
86 measTkEvtToken_(consumes(
pset.getParameter<
edm::
InputTag>(
"measTkEvt"))),
87 putToken_{produces<reco::ElectronSeedCollection>()},
89 for (
const auto& scTag :
pset.getParameter<std::vector<edm::InputTag>>(
"superClusters")) {
90 superClustersTokens_.emplace_back(consumes(scTag));
100 desc.add<std::vector<edm::InputTag>>(
"superClusters", {{
"hltEgammaSuperClustersToPixelMatch"}});
103 descriptions.
add(
"electronNHitSeedProducer",
desc);
119 for (
auto& superClusRef :
iEvent.get(superClustersToken)) {
123 superClusRef->position().phi(),
124 superClusRef->position().r()));
126 for (
auto const& matchedSeed : matcher(caloPosition, superClusRef->energy())) {
131 for (
auto const& matchInfo : matchedSeed.matchInfos) {
132 eleSeed.
addHitInfo(makeSeedPixelVar(matchInfo, trackerTopology));
134 eleSeeds.emplace_back(eleSeed);
unsigned int pxbLayer(const DetId &id) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void setDPhi(float pos, float neg)
const edm::EDGetTokenT< MeasurementTrackerEvent > measTkEvtToken_
const edm::EDGetTokenT< TrajectorySeedCollection > initialSeedsToken_
void setNrLayersAlongTraj(int val)
static edm::ParameterSetDescription makePSetDescription()
ElectronNHitSeedProducer(const edm::ParameterSet &)
void setDet(int iDetId, int iLayerOrDiskNr)
unsigned int pxfDisk(const DetId &id) const
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
std::vector< edm::EDGetTokenT< std::vector< reco::SuperClusterRef > > > superClustersTokens_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const final
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDPutTokenT< reco::ElectronSeedCollection > putToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const TrajSeedMatcher::Configuration matcherConfiguration_
void setCaloCluster(const CaloClusterRef &clus)
const edm::EDGetTokenT< std::vector< reco::Vertex > > verticesToken_
void addHitInfo(const PMVars &hitVars)
void setDRZ(float pos, float neg)
const edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_