00001 /* \class PdgIdCandSelector 00002 * 00003 * Candidate Selector based on a pdgId set 00004 * Usage: 00005 * 00006 * module leptons = PdgIdCandSelector { 00007 * InputTag src = myCollection 00008 * vint32 pdgId = { 11, 13 } 00009 * }; 00010 * 00011 * \author: Luca Lista, INFN 00012 * 00013 */ 00014 #include "FWCore/Framework/interface/MakerMacros.h" 00015 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h" 00016 #include "PhysicsTools/UtilAlgos/interface/PdgIdSelector.h" 00017 #include "DataFormats/Candidate/interface/Candidate.h" 00018 00019 typedef SingleObjectSelector< 00020 reco::CandidateCollection, 00021 PdgIdSelector 00022 > PdgIdCandSelector; 00023 00024 DEFINE_FWK_MODULE( PdgIdCandSelector );