CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/RecoHI/HiTracking/python/HISelectedVertex_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # sort by number of tracks and keep the best
00004 hiBestAdaptiveVertex = cms.EDFilter("HIBestVertexSelection",
00005     src = cms.InputTag("hiPixelAdaptiveVertex"),
00006         maxNumber = cms.uint32(1)
00007 )
00008 
00009 # select best of precise vertex, fast vertex, and beamspot
00010 hiSelectedVertex = cms.EDProducer("HIBestVertexProducer",
00011     beamSpotLabel = cms.InputTag("offlineBeamSpot"),
00012     adaptiveVertexCollection = cms.InputTag("hiBestAdaptiveVertex"),
00013     medianVertexCollection = cms.InputTag("hiPixelMedianVertex")
00014 )
00015 
00016 # best vertex sequence
00017 bestHiVertex = cms.Sequence( hiBestAdaptiveVertex * hiSelectedVertex )