48 : electronSrcToken_(consumes<
edm::
View<
reco::GsfElectron>>(iConfig.getParameter<
edm::
InputTag>(
"electronSource"))),
53 produces<edm::RefToBaseVector<reco::GsfElectron>>();
66 auto result = std::make_unique<RefToBaseVector<reco::GsfElectron>>();
68 std::unique_ptr<std::vector<size_t>> duplicates = duplicateRemover_.duplicatesToRemove(*
electrons);
70 std::vector<size_t>::const_iterator itdup = duplicates->begin(), enddup = duplicates->end();
72 while ((itdup != enddup) && (*itdup <
i)) {
75 if ((itdup != enddup) && (*itdup ==
i))
Remove duplicates from the list of electrons.
std::atomic< uint64_t > try_
std::atomic< uint64_t > pass_
T try_(Func f, Response r)
DuplicatedElectronCleaner(const edm::ParameterSet &iConfig)
#define DEFINE_FWK_MODULE(type)
~DuplicatedElectronCleaner() override
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const final
const edm::EDGetTokenT< edm::View< reco::GsfElectron > > electronSrcToken_
const pat::DuplicatedElectronRemover duplicateRemover_