CMS 3D CMS Logo

RecoVertex_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Reco Vertex
4 # initialize magnetic field #########################
10 
15 
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")
23 
24 
25 vertexrecoTask = cms.Task(unsortedOfflinePrimaryVertices,
26  trackWithVertexRefSelectorBeforeSorting,
27  trackRefsForJetsBeforeSorting,
28  offlinePrimaryVertices,
29  offlinePrimaryVerticesWithBS,
30  generalV0Candidates,
31  caloJetsForTrkTask,
32  inclusiveVertexingTask
33  )
34 vertexreco = cms.Sequence(vertexrecoTask)
35 
36 #modifications for timing
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,
48  tofPID,
49  unsortedOfflinePrimaryVertices4Dfastsim,
50  trackWithVertexRefSelectorBeforeSorting4Dfastsim ,
51  trackRefsForJetsBeforeSorting4Dfastsim ,
52  offlinePrimaryVertices4Dfastsim,
53  offlinePrimaryVertices4DfastsimWithBS,
54  unsortedOfflinePrimaryVertices4D,
55  trackWithVertexRefSelectorBeforeSorting4D,
56  trackRefsForJetsBeforeSorting4D,
57  offlinePrimaryVertices4D,
58  offlinePrimaryVertices4DWithBS)
59 
60 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
61  tpClusterProducer ,
62  quickTrackAssociatorByHits ,
63  trackTimeValueMapProducer ,
64  unsortedOfflinePrimaryVertices4D,
65  trackWithVertexRefSelectorBeforeSorting4D ,
66  trackRefsForJetsBeforeSorting4D,
67  offlinePrimaryVertices4D,
68  offlinePrimaryVertices4DWithBS,
69  )
70 
71 _phase2_tktiming_layer_vertexrecoTask = cms.Task( _phase2_tktiming_vertexrecoTask.copy() ,
72  unsortedOfflinePrimaryVertices4DnoPID ,
73  trackWithVertexRefSelectorBeforeSorting4DnoPID ,
74  trackRefsForJetsBeforeSorting4DnoPID ,
75  offlinePrimaryVertices4DnoPID ,
76  offlinePrimaryVertices4DnoPIDWithBS,
77  tofPID,
78  unsortedOfflinePrimaryVertices4Dfastsim,
79  trackWithVertexRefSelectorBeforeSorting4Dfastsim ,
80  trackRefsForJetsBeforeSorting4Dfastsim ,
81  offlinePrimaryVertices4Dfastsim,
82  offlinePrimaryVertices4DfastsimWithBS,
83  )
84 
85 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
86 phase2_timing.toReplaceWith(vertexrecoTask, _phase2_tktiming_vertexrecoTask)
87 
88 from Configuration.Eras.Modifier_phase2_timing_layer_tile_cff import phase2_timing_layer_tile
89 from Configuration.Eras.Modifier_phase2_timing_layer_bar_cff import phase2_timing_layer_bar
90 (phase2_timing_layer_tile | phase2_timing_layer_bar).toReplaceWith(vertexrecoTask, _phase2_tktiming_layer_vertexrecoTask)
91 (phase2_timing_layer_tile | phase2_timing_layer_bar).toReplaceWith(unsortedOfflinePrimaryVertices4D, unsortedOfflinePrimaryVertices4DwithPID.clone())
92 (phase2_timing_layer_tile | phase2_timing_layer_bar).toReplaceWith(offlinePrimaryVertices4D, offlinePrimaryVertices4DwithPID.clone())
93 (phase2_timing_layer_tile | phase2_timing_layer_bar).toReplaceWith(offlinePrimaryVertices4DWithBS, offlinePrimaryVertices4DwithPIDWithBS.clone())
94 (phase2_timing_layer_tile | phase2_timing_layer_bar).toModify(offlinePrimaryVertices4D, vertices = "unsortedOfflinePrimaryVertices4D", particles = "trackRefsForJetsBeforeSorting4D")
95 (phase2_timing_layer_tile | phase2_timing_layer_bar).toModify(offlinePrimaryVertices4DWithBS, vertices = "unsortedOfflinePrimaryVertices4D:WithBS", particles = "trackRefsForJetsBeforeSorting4D")