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.Configuration.RecoVertex_phase2_timing_cff
import (tpClusterProducer ,
38 quickTrackAssociatorByHits ,
39 trackTimeValueMapProducer ,
40 unsortedOfflinePrimaryVertices4DnoPID ,
41 trackWithVertexRefSelectorBeforeSorting4DnoPID ,
42 trackRefsForJetsBeforeSorting4DnoPID ,
43 offlinePrimaryVertices4DnoPID ,
44 offlinePrimaryVertices4DnoPIDWithBS,
45 unsortedOfflinePrimaryVertices4DwithPID ,
46 offlinePrimaryVertices4DwithPID ,
47 offlinePrimaryVertices4DwithPIDWithBS,
50 unsortedOfflinePrimaryVertices4D,
51 trackWithVertexRefSelectorBeforeSorting4D,
52 trackRefsForJetsBeforeSorting4D,
53 offlinePrimaryVertices4D,
54 offlinePrimaryVertices4DWithBS)
56 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
58 quickTrackAssociatorByHits ,
59 trackTimeValueMapProducer ,
60 unsortedOfflinePrimaryVertices4D,
61 trackWithVertexRefSelectorBeforeSorting4D ,
62 trackRefsForJetsBeforeSorting4D,
63 offlinePrimaryVertices4D,
64 offlinePrimaryVertices4DWithBS,
67 _phase2_tktiming_layer_vertexrecoTask = cms.Task( _phase2_tktiming_vertexrecoTask.copy() ,
68 unsortedOfflinePrimaryVertices4DnoPID ,
69 trackWithVertexRefSelectorBeforeSorting4DnoPID ,
70 trackRefsForJetsBeforeSorting4DnoPID ,
71 offlinePrimaryVertices4DnoPID ,
72 offlinePrimaryVertices4DnoPIDWithBS,
77 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
78 phase2_timing.toReplaceWith(vertexrecoTask, _phase2_tktiming_vertexrecoTask)
80 from Configuration.Eras.Modifier_phase2_timing_layer_cff
import phase2_timing_layer
81 phase2_timing_layer.toReplaceWith(vertexrecoTask, _phase2_tktiming_layer_vertexrecoTask)
82 phase2_timing_layer.toReplaceWith(unsortedOfflinePrimaryVertices4D, unsortedOfflinePrimaryVertices4DwithPID.clone())
83 phase2_timing_layer.toReplaceWith(offlinePrimaryVertices4D, offlinePrimaryVertices4DwithPID.clone())
84 phase2_timing_layer.toReplaceWith(offlinePrimaryVertices4DWithBS, offlinePrimaryVertices4DwithPIDWithBS.clone())
85 phase2_timing_layer.toModify(offlinePrimaryVertices4D, vertices =
"unsortedOfflinePrimaryVertices4D", particles =
"trackRefsForJetsBeforeSorting4D")
86 phase2_timing_layer.toModify(offlinePrimaryVertices4DWithBS, vertices =
"unsortedOfflinePrimaryVertices4D:WithBS", particles =
"trackRefsForJetsBeforeSorting4D")