34 produces<edm::PtrVector<reco::Candidate>>();
35 produces<edm::RefToBaseVector<reco::Candidate>>();
46 auto outColRef = std::make_unique<edm::RefToBaseVector<reco::Candidate>>();
47 auto outColPtr = std::make_unique<edm::PtrVector<reco::Candidate>>();
66 double dRval =
reco::deltaR((
float)eSC->eta(), (float)eSC->phi(), scIt->eta(), scIt->phi());
70 outColRef->push_back(recoCandColl->refAt(counter));
71 outColPtr->push_back(recoCandColl->ptrAt(counter));
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< edm::View< reco::Candidate > > scCollectionToken_
T getParameter(std::string const &) const
ElectronMatchedCandidateProducer(const edm::ParameterSet &)
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static std::atomic< unsigned int > counter
edm::EDGetTokenT< edm::View< reco::GsfElectron > > electronCollectionToken_