CMS 3D CMS Logo

LargestPtTrackSelector.cc

Go to the documentation of this file.
00001 /* \class LargestPtTrackSelector
00002  *
00003  * selects the N track with largest pt
00004  *
00005  * \author: Luca Lista, INFN
00006  *
00007  */
00008 #include "FWCore/Framework/interface/MakerMacros.h"
00009 #include "PhysicsTools/UtilAlgos/interface/ObjectSelector.h"
00010 #include "PhysicsTools/UtilAlgos/interface/SortCollectionSelector.h"
00011 #include "DataFormats/TrackReco/interface/Track.h"
00012 #include "DataFormats/TrackReco/interface/TrackFwd.h"
00013 #include "PhysicsTools/Utilities/interface/PtComparator.h"
00014 
00015  typedef ObjectSelector<
00016            SortCollectionSelector<
00017              reco::TrackCollection, 
00018              GreaterByPt<reco::Track> 
00019            > 
00020          > LargestPtTrackSelector;
00021 
00022 DEFINE_FWK_MODULE( LargestPtTrackSelector );

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