42 iEvent.getByToken(oldmaptoken, oldmap);
44 std::vector<std::vector<reco::PFCandidateRef>> refs(
handle->size());
45 for (
unsigned int i = 0,
n =
handle->size();
i <
n; ++
i) {
48 refs[
i].push_back(
pf2pf[pfRef]);
52 std::unique_ptr<edm::ValueMap<std::vector<reco::PFCandidateRef>>>
out(
63 electrons_(consumes<
std::vector<
reco::GsfElectron>>(iConfig.getParameter<
edm::
InputTag>(
"electrons"))),
67 iConfig.getParameter<
edm::
InputTag>(
"electron2pf"))),
69 produces<edm::ValueMap<std::vector<reco::PFCandidateRef>>>(
"photons");
70 produces<edm::ValueMap<std::vector<reco::PFCandidateRef>>>(
"electrons");