Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:10

0001 /* \class TrackSelector
0002  *
0003  * Selects track with a configurable string-based cut.
0004  * Saves clones of the selected tracks, and also
0005  * clones track extras and rec-hits
0006  *
0007  * \author: Luca Lista, INFN
0008  *
0009  * usage:
0010  *
0011  * module bestTracks = TrackFullCloneSelector {
0012  *   src = ctfWithMaterialTracks
0013  *   string cut = "pt > 20 & abs( eta ) < 2"
0014  * }
0015  *
0016  * for more details about the cut syntax, see the documentation
0017  * page below:
0018  *
0019  *   https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
0020  *
0021  *
0022  */
0023 
0024 #include "FWCore/Framework/interface/MakerMacros.h"
0025 #include "CommonTools/RecoAlgos/interface/TrackSelector.h"
0026 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0027 #include "CommonTools/UtilAlgos/interface/StringCutObjectSelector.h"
0028 #include "DataFormats/TrackReco/interface/Track.h"
0029 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0030 
0031 typedef SingleObjectSelector<reco::TrackCollection, StringCutObjectSelector<reco::Track> > TrackFullCloneSelector;
0032 
0033 DEFINE_FWK_MODULE(TrackFullCloneSelector);