Remove duplicates from the list of electrons. More...
Public Member Functions | |
DuplicatedElectronCleaner (const edm::ParameterSet &iConfig) | |
virtual void | endJob () |
virtual void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) |
~DuplicatedElectronCleaner () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Attributes | |
pat::DuplicatedElectronRemover | duplicateRemover_ |
edm::InputTag | electronSrc_ |
uint64_t | pass_ |
uint64_t | try_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Remove duplicates from the list of electrons.
The DuplicatedElectronCleaner removes duplicates from the input collection. Two electrons are considered duplicate if they share the same gsfTrack or the same superCluster. Among the two, the one with |E/P| nearest to 1 is kept. This is performed by the DuplicatedElectronRemover in PhysicsTools/PatUtils
The output is an edm::RefVector<reco:::GsfElectron>, which can be read through edm::View<reco::GsfElectron>
Definition at line 34 of file DuplicatedElectronCleaner.cc.
|
explicit |
Definition at line 49 of file DuplicatedElectronCleaner.cc.
pat::DuplicatedElectronCleaner::~DuplicatedElectronCleaner | ( | ) |
Definition at line 58 of file DuplicatedElectronCleaner.cc.
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 88 of file DuplicatedElectronCleaner.cc.
|
virtual |
Implements edm::EDProducer.
Definition at line 63 of file DuplicatedElectronCleaner.cc.
References HI_PhotonSkim_cff::electrons, edm::Event::getByLabel(), i, n, edm::Event::put(), and query::result.
|
private |
Definition at line 44 of file DuplicatedElectronCleaner.cc.
|
private |
Definition at line 43 of file DuplicatedElectronCleaner.cc.
|
private |
Definition at line 45 of file DuplicatedElectronCleaner.cc.
|
private |
Definition at line 45 of file DuplicatedElectronCleaner.cc.