CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/RecoHI/HiTracking/plugins/HIBestVertexSelector.cc

Go to the documentation of this file.
00001 #include "FWCore/Framework/interface/MakerMacros.h"
00002 
00003 #include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
00004 #include "CommonTools/UtilAlgos/interface/SortCollectionSelector.h"
00005 #include "RecoHI/HiTracking/interface/BestVertexComparator.h"
00006 
00007 #include "DataFormats/VertexReco/interface/Vertex.h"
00008 #include "DataFormats/VertexReco/interface/VertexFwd.h"
00009 
00010 namespace reco
00011 {
00012         namespace modules
00013         {
00014                 
00015                 // define your producer name
00016                 typedef ObjectSelector<
00017                         SortCollectionSelector<
00018                         reco::VertexCollection,
00019                         GreaterByTracksSize<reco::Vertex>
00020                         > 
00021                         > HIBestVertexSelection;
00022                 
00023                 // declare the module as plugin
00024                 DEFINE_FWK_MODULE( HIBestVertexSelection );
00025         }
00026 }