00001 /* \class TrackSelector 00002 * 00003 * Selects track with a configurable string-based cut. 00004 * Saves clones of the selected tracks, and also 00005 * clones track extras and rec-hits 00006 * 00007 * \author: Luca Lista, INFN 00008 * 00009 * usage: 00010 * 00011 * module bestTracks = TrackFullCloneSelector { 00012 * src = ctfWithMaterialTracks 00013 * string cut = "pt > 20 & abs( eta ) < 2" 00014 * } 00015 * 00016 * for more details about the cut syntax, see the documentation 00017 * page below: 00018 * 00019 * httpss://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser 00020 * 00021 * 00022 */ 00023 00024 #include "FWCore/Framework/interface/MakerMacros.h" 00025 #include "PhysicsTools/RecoAlgos/interface/TrackSelector.h" 00026 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h" 00027 #include "PhysicsTools/UtilAlgos/interface/StringCutObjectSelector.h" 00028 #include "DataFormats/TrackReco/interface/Track.h" 00029 #include "DataFormats/TrackReco/interface/TrackFwd.h" 00030 00031 typedef SingleObjectSelector< 00032 reco::TrackCollection, 00033 StringCutObjectSelector<reco::Track> 00034 > TrackFullCloneSelector; 00035 00036 DEFINE_FWK_MODULE(TrackFullCloneSelector); 00037