21 produces< edm::PtrVector<reco::Candidate> >();
22 produces< edm::RefToBaseVector<reco::Candidate> >();
45 auto outColRef = std::make_unique<edm::RefToBaseVector<reco::Candidate>>();
46 auto outColPtr = std::make_unique<edm::PtrVector<reco::Candidate>>();
64 scIt != recoCandColl->end(); ++scIt, ++
counter){
67 elec != electrons->end(); ++elec) {
72 scIt->eta(), scIt->phi());
76 outColRef->push_back( recoCandColl->refAt(counter) );
77 outColPtr->push_back( recoCandColl->ptrAt(counter) );
T getParameter(std::string const &) const
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_
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_
~ElectronMatchedCandidateProducer() override