00001 /* \class StatusCandRefSelector 00002 * 00003 * Candidate Selector based on the status. 00004 * Save a vector of references to selected candidates. 00005 * Usage: 00006 * 00007 * module leptons = StatusCandRefSelector { 00008 * InputTag src = myCollection 00009 * vint32 status = { 1 } 00010 * }; 00011 * 00012 * \author: Luca Lista, INFN 00013 * 00014 */ 00015 #include "FWCore/Framework/interface/MakerMacros.h" 00016 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h" 00017 #include "PhysicsTools/UtilAlgos/interface/StatusSelector.h" 00018 #include "DataFormats/Candidate/interface/Candidate.h" 00019 00020 typedef SingleObjectSelector< 00021 reco::CandidateCollection, 00022 StatusSelector, 00023 reco::CandidateRefVector 00024 > StatusCandRefSelector; 00025 00026 DEFINE_FWK_MODULE( StatusCandRefSelector );