1 import FWCore.ParameterSet.Config
as cms
16 unsortedOfflinePrimaryVertices=offlinePrimaryVertices.clone()
17 offlinePrimaryVertices=sortedPrimaryVertices.clone(vertices=
"unsortedOfflinePrimaryVertices", particles=
"trackRefsForJetsBeforeSorting")
18 offlinePrimaryVerticesWithBS=sortedPrimaryVertices.clone(vertices=cms.InputTag(
"unsortedOfflinePrimaryVertices",
"WithBS"), particles=
"trackRefsForJetsBeforeSorting")
19 trackWithVertexRefSelectorBeforeSorting = trackWithVertexRefSelector.clone(vertexTag=
"unsortedOfflinePrimaryVertices")
20 trackWithVertexRefSelectorBeforeSorting.ptMax=9e99
21 trackWithVertexRefSelectorBeforeSorting.ptErrorCut=9e99
22 trackRefsForJetsBeforeSorting = trackRefsForJets.clone(src=
"trackWithVertexRefSelectorBeforeSorting")
25 vertexrecoTask = cms.Task(unsortedOfflinePrimaryVertices,
26 trackWithVertexRefSelectorBeforeSorting,
27 trackRefsForJetsBeforeSorting,
28 offlinePrimaryVertices,
29 offlinePrimaryVerticesWithBS,
32 inclusiveVertexingTask
34 vertexreco = cms.Sequence(vertexrecoTask)
37 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff
import DA2D_vectParameters
38 DA2D_vectParameters.TkDAClusParameters.verbose = cms.untracked.bool(
False)
39 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone( verbose = cms.untracked.bool(
False),
40 TkClusParameters = DA2D_vectParameters )
41 unsortedOfflinePrimaryVertices4D.TkFilterParameters.minPt = cms.double(0.0)
42 unsortedOfflinePrimaryVertices4D.TrackTimesLabel = cms.InputTag(
"trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel")
43 unsortedOfflinePrimaryVertices4D.TrackTimeResosLabel = cms.InputTag(
"trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution")
44 offlinePrimaryVertices4D=sortedPrimaryVertices.clone(vertices=
"unsortedOfflinePrimaryVertices4D", particles=
"trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModelResolution"),assignment=
dict(useTiming=
True))
45 offlinePrimaryVertices4DWithBS=sortedPrimaryVertices.clone(vertices=
"unsortedOfflinePrimaryVertices4D:WithBS", particles=
"trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModelResolution"),assignment=
dict(useTiming=
True))
47 trackWithVertexRefSelectorBeforeSorting4D = trackWithVertexRefSelector.clone(vertexTag=
"unsortedOfflinePrimaryVertices4D")
48 trackWithVertexRefSelectorBeforeSorting4D.ptMax=9e99
49 trackWithVertexRefSelectorBeforeSorting4D.ptErrorCut=9e99
50 trackRefsForJetsBeforeSorting4D = trackRefsForJets.clone(src=
"trackWithVertexRefSelectorBeforeSorting4D")
54 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi
import trackTimeValueMapProducer
55 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
57 quickTrackAssociatorByHits ,
58 trackTimeValueMapProducer ,
59 trackWithVertexRefSelectorBeforeSorting4D ,
60 trackRefsForJetsBeforeSorting4D ,
61 unsortedOfflinePrimaryVertices4D ,
62 offlinePrimaryVertices4D ,
63 offlinePrimaryVertices4DWithBS
66 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
67 phase2_timing.toReplaceWith(vertexrecoTask, _phase2_tktiming_vertexrecoTask)