00001 /* \class GenParticleRefSelector 00002 * 00003 * GenParticle Selector based on a configurable cut. 00004 * saves a vector of references 00005 * Usage: 00006 * 00007 * module selectedParticles = GenParticleRefSelector { 00008 * InputTag src = genParticles 00009 * string cut = "pt > 15.0" 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/StringCutObjectSelector.h" 00018 #include "DataFormats/HepMCCandidate/interface/GenParticle.h" 00019 00020 typedef SingleObjectSelector< 00021 reco::GenParticleCollection, 00022 StringCutObjectSelector<reco::GenParticle> 00023 > GenParticleRefSelector; 00024 00025 DEFINE_FWK_MODULE(GenParticleRefSelector);