1 import FWCore.ParameterSet.Config
as cms
16 unsortedOfflinePrimaryVertices=offlinePrimaryVertices.clone()
17 offlinePrimaryVertices=sortedPrimaryVertices.clone(
18 vertices=
"unsortedOfflinePrimaryVertices",
19 particles=
"trackRefsForJetsBeforeSorting"
21 offlinePrimaryVerticesWithBS=sortedPrimaryVertices.clone(
22 vertices=
"unsortedOfflinePrimaryVertices:WithBS",
23 particles=
"trackRefsForJetsBeforeSorting"
25 trackWithVertexRefSelectorBeforeSorting = trackWithVertexRefSelector.clone(
26 vertexTag=
"unsortedOfflinePrimaryVertices",
30 trackRefsForJetsBeforeSorting = trackRefsForJets.clone(src=
"trackWithVertexRefSelectorBeforeSorting")
33 vertexrecoTask = cms.Task(unsortedOfflinePrimaryVertices,
34 trackWithVertexRefSelectorBeforeSorting,
35 trackRefsForJetsBeforeSorting,
36 offlinePrimaryVertices,
37 offlinePrimaryVerticesWithBS,
40 inclusiveVertexingTask
42 vertexreco = cms.Sequence(vertexrecoTask)
45 from RecoVertex.Configuration.RecoVertex_phase2_timing_cff
import (tpClusterProducer ,
46 quickTrackAssociatorByHits ,
47 trackTimeValueMapProducer ,
48 unsortedOfflinePrimaryVertices4DnoPID ,
49 trackWithVertexRefSelectorBeforeSorting4DnoPID ,
50 trackRefsForJetsBeforeSorting4DnoPID ,
51 offlinePrimaryVertices4DnoPID ,
52 offlinePrimaryVertices4DnoPIDWithBS,
53 unsortedOfflinePrimaryVertices4DwithPID ,
54 offlinePrimaryVertices4DwithPID ,
55 offlinePrimaryVertices4DwithPIDWithBS,
58 unsortedOfflinePrimaryVertices4D,
59 trackWithVertexRefSelectorBeforeSorting4D,
60 trackRefsForJetsBeforeSorting4D,
61 offlinePrimaryVertices4D,
62 offlinePrimaryVertices4DWithBS)
64 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
66 quickTrackAssociatorByHits ,
67 trackTimeValueMapProducer ,
68 unsortedOfflinePrimaryVertices4D,
69 trackWithVertexRefSelectorBeforeSorting4D ,
70 trackRefsForJetsBeforeSorting4D,
71 offlinePrimaryVertices4D,
72 offlinePrimaryVertices4DWithBS,
75 _phase2_tktiming_layer_vertexrecoTask = cms.Task( _phase2_tktiming_vertexrecoTask.copy() ,
76 unsortedOfflinePrimaryVertices4DnoPID ,
77 trackWithVertexRefSelectorBeforeSorting4DnoPID ,
78 trackRefsForJetsBeforeSorting4DnoPID ,
79 offlinePrimaryVertices4DnoPID ,
80 offlinePrimaryVertices4DnoPIDWithBS,
85 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
86 phase2_timing.toReplaceWith(vertexrecoTask, _phase2_tktiming_vertexrecoTask)
88 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
89 phase2_timing_layer.toReplaceWith(vertexrecoTask, _phase2_tktiming_layer_vertexrecoTask)
90 phase2_timing_layer.toReplaceWith(unsortedOfflinePrimaryVertices4D, unsortedOfflinePrimaryVertices4DwithPID.clone())
91 phase2_timing_layer.toReplaceWith(offlinePrimaryVertices4D, offlinePrimaryVertices4DwithPID.clone())
92 phase2_timing_layer.toReplaceWith(offlinePrimaryVertices4DWithBS, offlinePrimaryVertices4DwithPIDWithBS.clone())
93 phase2_timing_layer.toModify(offlinePrimaryVertices4D, vertices =
"unsortedOfflinePrimaryVertices4D", particles =
"trackRefsForJetsBeforeSorting4D")
94 phase2_timing_layer.toModify(offlinePrimaryVertices4DWithBS, vertices =
"unsortedOfflinePrimaryVertices4D:WithBS", particles =
"trackRefsForJetsBeforeSorting4D")