1 import FWCore.ParameterSet.Config
as cms
4 hiBestAdaptiveVertex = cms.EDFilter(
"HIBestVertexSelection",
5 src = cms.InputTag(
"hiPixelAdaptiveVertex"),
6 maxNumber = cms.uint32(1)
10 hiSelectedPixelVertex = cms.EDProducer(
"HIBestVertexProducer",
11 beamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
12 adaptiveVertexCollection = cms.InputTag(
"hiBestAdaptiveVertex"),
13 medianVertexCollection = cms.InputTag(
"hiPixelMedianVertex"),
14 useFinalAdaptiveVertexCollection = cms.bool(
False),
18 bestHiVertexTask = cms.Task( hiBestAdaptiveVertex , hiSelectedPixelVertex )
21 hiOfflinePrimaryVertices=hiPixelAdaptiveVertex.clone(
22 TrackLabel = cms.InputTag(
"hiGeneralTracks"),
24 TkFilterParameters = cms.PSet(
25 algorithm = cms.string(
'filterWithThreshold'),
26 maxNormalizedChi2 = cms.double(5.0),
27 minPixelLayersWithHits=cms.int32(3),
28 minSiliconLayersWithHits = cms.int32(5),
29 maxD0Significance = cms.double(3.0),
30 minPt = cms.double(0.0),
31 maxEta = cms.double(100.),
32 trackQuality = cms.string(
"any"),
33 numTracksThreshold = cms.int32(2)
36 from Configuration.Eras.Modifier_trackingPhase1_cff
import trackingPhase1
37 trackingPhase1.toModify(hiOfflinePrimaryVertices,
38 TkFilterParameters = dict (minPixelLayersWithHits = 4, minSiliconLayersWithHits = 4)
42 hiBestOfflinePrimaryVertex = cms.EDFilter(
"HIBestVertexSelection",
43 src = cms.InputTag(
"hiOfflinePrimaryVertices"),
44 maxNumber = cms.uint32(1)
47 hiSelectedVertex = hiSelectedPixelVertex.clone(
48 useFinalAdaptiveVertexCollection = cms.bool(
True),
49 finalAdaptiveVertexCollection = cms.InputTag(
"hiBestOfflinePrimaryVertex")
51 bestFinalHiVertexTask = cms.Task(hiOfflinePrimaryVertices , hiBestOfflinePrimaryVertex , hiSelectedVertex )