25 putToken_{produces<edm::ValueMap<reco::GsfElectronRef>>()} {}
36 std::vector<reco::GsfElectronRef>
values;
38 for (
auto const& pfCandidate : *pfCandidatesHandle) {
41 if (pfCandidate.gsfTrackRef().isNonnull()) {
43 const auto itcheck = std::find_if(
electrons->begin(),
electrons->end(), [&pfCandidate](
const auto& ele) {
44 return (ele.gsfTrack() == pfCandidate.gsfTrackRef());
63 descriptions.
add(
"gedGsfElectronValueMapsTmp",
desc);
std::vector< l1t::PFCandidate > PFCandidateCollection
void insert(const H &h, I begin, I end)
const edm::EDPutTokenT< edm::ValueMap< reco::GsfElectronRef > > putToken_
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
GEDGsfElectronValueMapProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::GsfElectronCollection > electronsToken_
const edm::EDGetTokenT< reco::PFCandidateCollection > pfCandsToken_
#define DEFINE_FWK_MODULE(type)
edm::Ref< GsfElectronCollection > GsfElectronRef
reference to an object in a collection of GsfElectron objects
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)