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"))),
84 verticesToken_(consumes(pset.getParameter<edm::
InputTag>(
"vertices"))),
85 beamSpotToken_(consumes(pset.getParameter<edm::
InputTag>(
"beamSpot"))),
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")) {
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);
#define DEFINE_FWK_MODULE(type)
unsigned int pxfDisk(const DetId &id) const
void setDPhi(float pos, float neg)
const edm::EDGetTokenT< MeasurementTrackerEvent > measTkEvtToken_
const edm::EDGetTokenT< TrajectorySeedCollection > initialSeedsToken_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
bool getData(T &iHolder) const
void setNrLayersAlongTraj(int val)
static edm::ParameterSetDescription makePSetDescription()
ElectronNHitSeedProducer(const edm::ParameterSet &)
void setDet(int iDetId, int iLayerOrDiskNr)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
bool get(ProductID const &oid, Handle< PROD > &result) const
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
ParameterDescriptionBase * add(U const &iLabel, T const &value)
unsigned int pxbLayer(const DetId &id) const
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)
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
const edm::EDPutTokenT< reco::ElectronSeedCollection > putToken_
T getParameter(std::string const &) const
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_