#include <SimGeneral/TrackingParticleSelectorByGen/plugins/TrackingParticleSelectorByGen.cc>
Public Member Functions | |
TrackingParticleSelectorByGen (const edm::ParameterSet &) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
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_ |
edm::EDGetTokenT< reco::GenParticleCollection > | gpToken_ |
int | keepOrDropAll_ |
std::vector< std::pair< StringCutObjectSelector< reco::GenParticle >, helper::SelectCode > > | select_ |
std::vector< std::string > | selection_ |
edm::EDGetTokenT< TrackingParticleCollection > | tpToken_ |
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 |
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 47 of file TrackingParticleSelectorByGen.cc.
|
explicit |
Definition at line 131 of file TrackingParticleSelectorByGen.cc.
|
static |
Definition at line 329 of file TrackingParticleSelectorByGen.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and DEFINE_FWK_MODULE.
|
private |
Definition at line 140 of file TrackingParticleSelectorByGen.cc.
References edm::RefVector< C, T, F >::begin(), reco::CompositeRefCandidateT< D >::daughterRefVector(), BPhysicsValidation_cfi::daughters, edm::RefVector< C, T, F >::end(), flags_, and mps_fire::i.
Referenced by produce().
|
private |
Definition at line 146 of file TrackingParticleSelectorByGen.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), flags_, mps_fire::i, and reco::CompositeRefCandidateT< D >::motherRefVector().
Referenced by produce().
|
private |
Definition at line 194 of file TrackingParticleSelectorByGen.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, and edm::Ref< C, T, F >::key().
|
private |
Definition at line 213 of file TrackingParticleSelectorByGen.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, and edm::Ref< C, T, F >::key().
|
private |
Definition at line 81 of file TrackingParticleSelectorByGen.cc.
References helper::SelectCode::all_, EnergyCorrector::c, mps_check::command, edm::errors::Configuration, helper::SelectCode::daughtersDepth_, Exception, f, helper::SelectCode::kAll, helper::SelectCode::kDrop, helper::SelectCode::keepOrDrop_, helper::SelectCode::kFirst, helper::SelectCode::kKeep, helper::SelectCode::kNone, helper::SelectCode::mothersDepth_, gen::n, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by produce().
|
overrideprivate |
Definition at line 232 of file TrackingParticleSelectorByGen.cc.
References helper::SelectCode::all_, edm::errors::Configuration, TkAlMuonSelectors_cfi::cut, drop, Exception, firstEvent_, flagDaughters(), flagMothers(), flags_, edm::Event::get(), gpToken_, mps_fire::i, keep, helper::SelectCode::keepOrDrop_, keepOrDropAll_, WDecay::kNone, eostools::move(), gen::n, MillePedeFileConverter_cfg::out, AlCaHLTBitMon_ParallelJobs::p, parse(), edm::Event::put(), recursiveFlagDaughters(), recursiveFlagMothers(), cuy::rep, PdgEntryReplacer::replace(), triggerObjects_cff::sel, select_, selection_, and tpToken_.
|
private |
Definition at line 152 of file TrackingParticleSelectorByGen.cc.
References edm::RefVector< C, T, F >::begin(), BPhysicsValidation_cfi::daughters, edm::RefVector< C, T, F >::end(), spr::find(), flags_, and mps_fire::i.
Referenced by produce().
|
private |
Definition at line 173 of file TrackingParticleSelectorByGen.cc.
References edm::RefVector< C, T, F >::begin(), edm::RefVector< C, T, F >::end(), spr::find(), flags_, and mps_fire::i.
Referenced by produce().
|
private |
Definition at line 68 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().
|
private |
Definition at line 70 of file TrackingParticleSelectorByGen.cc.
Referenced by flagDaughters(), flagMothers(), getDaughterKeys(), getMotherKeys(), produce(), recursiveFlagDaughters(), and recursiveFlagMothers().
|
private |
Definition at line 67 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().
|
private |
Definition at line 69 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().
|
private |
Definition at line 72 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().
|
private |
Definition at line 71 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().
|
private |
Definition at line 66 of file TrackingParticleSelectorByGen.cc.
Referenced by produce().