CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HISelectedVertex_cfi.py
Go to the documentation of this file.
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  adaptiveVertexCollection = cms.InputTag("hiBestAdaptiveVertex"),
12  medianVertexCollection = cms.InputTag("hiPixelMedianVertex")
13 )
14 
15 # best vertex sequence
16 bestHiVertex = cms.Sequence( hiBestAdaptiveVertex * hiSelectedVertex )