Go to the documentation of this file.
41 auto const &coll =
iEvent.get(colltoken);
44 iEvent.getByToken(oldmaptoken, oldmap);
46 auto result = std::make_unique<std::vector<reco::VertexCompositePtrCandidate>>();
47 for (
auto const &
obj : coll) {
62 iConfig.getParameter<
edm::
InputTag>(
"electron2pf"))) {
63 produces<std::vector<reco::VertexCompositePtrCandidate>>(
"photons");
64 produces<std::vector<reco::VertexCompositePtrCandidate>>(
"electrons");
~PFEGammaToCandidate() override=default
const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > electron2pf_
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
const edm::EDGetTokenT< edm::View< pat::Photon > > photons_
#define DEFINE_FWK_MODULE(type)
edm::Ref< l1t::PFCandidateCollection > PFCandidateRef
void produce(edm::StreamID iID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef > > > photon2pf_
PFEGammaToCandidate(const edm::ParameterSet &iConfig)
void run(edm::Event &iEvent, const edm::EDGetTokenT< edm::View< T >> &colltoken, const edm::EDGetTokenT< edm::ValueMap< std::vector< reco::PFCandidateRef >>> &oldmaptoken, const std::string &name) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< edm::View< pat::Electron > > electrons_