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 vertexreco = cms.Sequence(unsortedOfflinePrimaryVertices*
26 trackWithVertexRefSelectorBeforeSorting*
27 trackRefsForJetsBeforeSorting*
29 offlinePrimaryVertices*
30 offlinePrimaryVerticesWithBS*
36 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff
import DA2D_vectParameters
37 DA2D_vectParameters.TkDAClusParameters.verbose = cms.untracked.bool(
False)
38 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone( verbose = cms.untracked.bool(
False),
39 TkClusParameters = DA2D_vectParameters )
40 unsortedOfflinePrimaryVertices4D.TkFilterParameters.minPt = cms.double(0.7)
41 unsortedOfflinePrimaryVertices4D.TrackTimesLabel = cms.InputTag(
"trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel")
42 unsortedOfflinePrimaryVertices4D.TrackTimeResosLabel = cms.InputTag(
"trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution")
43 offlinePrimaryVertices4D=sortedPrimaryVertices.clone(vertices=
"unsortedOfflinePrimaryVertices4D", particles=
"trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModelResolution"),assignment=
dict(useTiming=
True))
44 offlinePrimaryVertices4DWithBS=sortedPrimaryVertices.clone(vertices=
"unsortedOfflinePrimaryVertices4D:WithBS", particles=
"trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag(
"trackTimeValueMapProducer",
"generalTracksConfigurableFlatResolutionModelResolution"),assignment=
dict(useTiming=
True))
46 trackWithVertexRefSelectorBeforeSorting4D = trackWithVertexRefSelector.clone(vertexTag=
"unsortedOfflinePrimaryVertices4D")
47 trackWithVertexRefSelectorBeforeSorting4D.ptMax=9e99
48 trackWithVertexRefSelectorBeforeSorting4D.ptErrorCut=9e99
49 trackRefsForJetsBeforeSorting4D = trackRefsForJets.clone(src=
"trackWithVertexRefSelectorBeforeSorting4D")
53 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi
import trackTimeValueMapProducer
54 _phase2_tktiming_vertexreco = cms.Sequence( vertexreco.copy() *
56 quickTrackAssociatorByHits *
57 trackTimeValueMapProducer *
58 trackWithVertexRefSelectorBeforeSorting4D *
59 trackRefsForJetsBeforeSorting4D *
60 unsortedOfflinePrimaryVertices4D *
61 offlinePrimaryVertices4D *
62 offlinePrimaryVertices4DWithBS
65 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
66 phase2_timing.toReplaceWith(vertexreco, _phase2_tktiming_vertexreco)