1 #ifndef CommonTools_ParticleFlow_PdgIdPFCandidateSelectorDefinition
2 #define CommonTools_ParticleFlow_PdgIdPFCandidateSelectorDefinition
14 pdgIds_( cfg.getParameter< std::vector<int> >(
"pdgId" ) ) { }
22 for( collection::const_iterator pfc = hc->begin();
23 pfc != hc->end(); ++pfc, ++
key) {
25 for(
unsigned iId=0; iId<
pdgIds_.size(); iId++) {
26 if ( pfc->pdgId() ==
pdgIds_[iId] ) {
29 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)
Particle reconstructed by the particle flow algorithm.