00001 /* \class PdgIdAndStatusCandDecaySelector 00002 * 00003 * Candidate Selector based on a pdgId set 00004 * cloning the full decay chain 00005 * Usage: 00006 * 00007 * module leptons = PdgIdAndStatusCandDecaySelector { 00008 * InputTag src = myCollection 00009 * vint32 pdgId = { 11, 13 } 00010 * vint32 status = { 1 } 00011 * }; 00012 * 00013 * \author: Luca Lista, INFN 00014 * 00015 */ 00016 #include "FWCore/Framework/interface/MakerMacros.h" 00017 #include "PhysicsTools/CandAlgos/interface/CandDecaySelector.h" 00018 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h" 00019 #include "PhysicsTools/UtilAlgos/interface/AndSelector.h" 00020 #include "PhysicsTools/UtilAlgos/interface/PdgIdSelector.h" 00021 #include "PhysicsTools/UtilAlgos/interface/StatusSelector.h" 00022 #include "DataFormats/Candidate/interface/Candidate.h" 00023 00024 typedef SingleObjectSelector< 00025 reco::CandidateCollection, 00026 AndSelector< 00027 PdgIdSelector, 00028 StatusSelector 00029 > 00030 > PdgIdAndStatusCandDecaySelector; 00031 00032 DEFINE_FWK_MODULE( PdgIdAndStatusCandDecaySelector );