00001 /* \class PdgIdCandViewSelector 00002 * 00003 * Candidate Selector based on a pdgId set. The input collection 00004 * is a View<Candidate>. 00005 * Saves a collection of references to selected objects 00006 * Usage: 00007 * 00008 * module leptonRefs = PdgIdCandViewSelector { 00009 * InputTag src = myCollection 00010 * vint32 pdgId = { 11, 13 } 00011 * }; 00012 * 00013 * \author: Luca Lista, INFN 00014 * 00015 */ 00016 #include "FWCore/Framework/interface/MakerMacros.h" 00017 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h" 00018 #include "PhysicsTools/UtilAlgos/interface/PdgIdSelector.h" 00019 #include "DataFormats/Candidate/interface/Candidate.h" 00020 00021 typedef SingleObjectSelector < 00022 reco::CandidateView, 00023 PdgIdSelector 00024 > PdgIdCandViewSelector; 00025 00026 DEFINE_FWK_MODULE( PdgIdCandViewSelector );