Go to the documentation of this file.
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);
void insert(const H &h, I begin, I end)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::Ref< GsfElectronCollection > GsfElectronRef
reference to an object in a collection of GsfElectron objects
const edm::EDPutTokenT< edm::ValueMap< reco::GsfElectronRef > > putToken_
std::vector< l1t::PFCandidate > PFCandidateCollection
const edm::EDGetTokenT< reco::GsfElectronCollection > electronsToken_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
GEDGsfElectronValueMapProducer(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::PFCandidateCollection > pfCandsToken_