1 #ifndef CommonTools_ParticleFlow_PdgIdPFCandidateSelectorDefinition
2 #define CommonTools_ParticleFlow_PdgIdPFCandidateSelectorDefinition
15 pdgIds_( cfg.getParameter< std::vector<int> >(
"pdgId" ) ) { }
23 for( collection::const_iterator pfc = hc->begin();
24 pfc != hc->end(); ++pfc, ++
key) {
26 for(
unsigned iId=0; iId<
pdgIds_.size(); iId++) {
27 if ( pfc->pdgId() ==
pdgIds_[iId] ) {
30 selected_.back().setSourceCandidatePtr( ptrToMother );
void select(const HandleToCollection &hc, const edm::EventBase &e, const edm::EventSetup &s)
std::vector< int > pdgIds_
PdgIdPFCandidateSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Particle reconstructed by the particle flow algorithm.