Public Member Functions | |
GenParticlePruner (const edm::ParameterSet &) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Private Member Functions | |
void | flagDaughters (const reco::GenParticle &, int) |
void | flagMothers (const reco::GenParticle &, int) |
void | getDaughterKeys (std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const |
void | getMotherKeys (std::vector< size_t > &, std::vector< size_t > &, const reco::GenParticleRefVector &) const |
void | parse (const std::string &selection, helper::SelectCode &code, std::string &cut) const |
void | produce (edm::Event &, const edm::EventSetup &) override |
void | recursiveFlagDaughters (size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &) |
void | recursiveFlagMothers (size_t, const reco::GenParticleCollection &, int, std::vector< size_t > &) |
Private Attributes | |
bool | firstEvent_ |
std::vector< int > | flags_ |
std::vector< size_t > | indices_ |
int | keepOrDropAll_ |
std::vector< std::pair< StringCutObjectSelector< reco::GenParticle >, helper::SelectCode > > | select_ |
std::vector< std::string > | selection_ |
edm::EDGetTokenT< reco::GenParticleCollection > | srcToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 22 of file GenParticlePruner.cc.
GenParticlePruner::GenParticlePruner | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 98 of file GenParticlePruner.cc.
|
private |
Definition at line 108 of file GenParticlePruner.cc.
References BPhysicsValidation_cfi::daughters, flags_, and mps_fire::i.
Referenced by produce().
|
private |
Definition at line 114 of file GenParticlePruner.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), flags_, and mps_fire::i.
Referenced by produce().
|
private |
Definition at line 283 of file GenParticlePruner.cc.
References BPhysicsValidation_cfi::daughters, edm::RefVector< C, T, F >::empty(), spr::find(), flags_, training_settings::idx, dqmiolumiharvest::j, and edm::Ref< C, T, F >::key().
Referenced by produce().
|
private |
Definition at line 302 of file GenParticlePruner.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::empty(), edm::RefVector< C, T, F >::end(), spr::find(), flags_, training_settings::idx, dqmiolumiharvest::j, and edm::Ref< C, T, F >::key().
Referenced by produce().
|
private |
Definition at line 50 of file GenParticlePruner.cc.
References helper::SelectCode::all_, HltBtagPostValidation_cff::c, mps_check::command, edm::errors::Configuration, TkAlMuonSelectors_cfi::cut, helper::SelectCode::daughtersDepth_, Exception, f, helper::SelectCode::keepOrDrop_, WDecay::kNone, helper::SelectCode::mothersDepth_, dqmiodumpmetadata::n, corrVsCorr::selection, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produce().
|
overrideprivate |
Definition at line 162 of file GenParticlePruner.cc.
References reco::CompositeRefCandidateT< D >::addDaughter(), reco::CompositeRefCandidateT< D >::addMother(), edm::errors::Configuration, TkAlMuonSelectors_cfi::cut, drop, Exception, firstEvent_, flagDaughters(), flagMothers(), flags_, relval_steps::gen(), GenParticle::GenParticle, edm::Event::getByToken(), getDaughterKeys(), getMotherKeys(), edm::Event::getRefBeforePut(), mps_fire::i, indices_, dqmiolumiharvest::j, keep, keepOrDropAll_, WDecay::kNone, eostools::move(), dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, AlCaHLTBitMon_ParallelJobs::p, parse(), edm::Event::put(), recursiveFlagDaughters(), recursiveFlagMothers(), cuy::rep, EgammaValidation_Wenu_cff::sel, select_, selection_, TrackRefitter_38T_cff::src, srcToken_, and reco::GenParticle::statusFlags().
|
private |
Definition at line 120 of file GenParticlePruner.cc.
References BPhysicsValidation_cfi::daughters, spr::find(), flags_, mps_fire::i, and TrackRefitter_38T_cff::src.
Referenced by produce().
|
private |
Definition at line 141 of file GenParticlePruner.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), spr::find(), flags_, mps_fire::i, and TrackRefitter_38T_cff::src.
Referenced by produce().
|
private |
Definition at line 28 of file GenParticlePruner.cc.
Referenced by produce().
|
private |
Definition at line 33 of file GenParticlePruner.cc.
Referenced by flagDaughters(), flagMothers(), getDaughterKeys(), getMotherKeys(), produce(), recursiveFlagDaughters(), and recursiveFlagMothers().
|
private |
Definition at line 34 of file GenParticlePruner.cc.
Referenced by produce().
|
private |
Definition at line 30 of file GenParticlePruner.cc.
Referenced by produce().
|
private |
Definition at line 32 of file GenParticlePruner.cc.
Referenced by produce().
|
private |
Definition at line 31 of file GenParticlePruner.cc.
Referenced by produce().
|
private |
Definition at line 29 of file GenParticlePruner.cc.
Referenced by produce().