00001 /* \class CandViewRefSelector 00002 * 00003 * Candidate Selector based on a configurable cut. 00004 * Reads a edm::View<Candidate> as input 00005 * and saves a OwnVector of clones. 00006 * Usage: 00007 * 00008 * module selectedCands = CandViewSelector { 00009 * InputTag src = myCollection 00010 * string cut = "pt > 15.0" 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/StringCutObjectSelector.h" 00019 #include "DataFormats/Candidate/interface/Candidate.h" 00020 00021 typedef SingleObjectSelector< 00022 edm::View<reco::Candidate>, 00023 StringCutObjectSelector<reco::Candidate>, 00024 reco::CandidateCollection 00025 > CandViewSelector; 00026 00027 DEFINE_FWK_MODULE(CandViewSelector);