CMS 3D CMS Logo

TrackRefSelector.cc

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

Generated on Tue Jun 9 17:41:50 2009 for CMSSW by  doxygen 1.5.4