CMS 3D CMS Logo

HISelectedVertex_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # sort by number of tracks and keep the best
4 hiBestAdaptiveVertex = cms.EDFilter("HIBestVertexSelection",
5  src = cms.InputTag("hiPixelAdaptiveVertex"),
6  maxNumber = cms.uint32(1)
7 )
8 
9 # select best of precise vertex, fast vertex, and beamspot
10 hiSelectedVertex = cms.EDProducer("HIBestVertexProducer",
11  beamSpotLabel = cms.InputTag("offlineBeamSpot"),
12  adaptiveVertexCollection = cms.InputTag("hiBestAdaptiveVertex"),
13  medianVertexCollection = cms.InputTag("hiPixelMedianVertex")
14 )
15 
16 # best vertex sequence
17 bestHiVertex = cms.Sequence( hiBestAdaptiveVertex * hiSelectedVertex )