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(
18  vertices="unsortedOfflinePrimaryVertices",
19  particles="trackRefsForJetsBeforeSorting"
20 )
21 offlinePrimaryVerticesWithBS=sortedPrimaryVertices.clone(
22  vertices="unsortedOfflinePrimaryVertices:WithBS",
23  particles="trackRefsForJetsBeforeSorting"
24 )
25 trackWithVertexRefSelectorBeforeSorting = trackWithVertexRefSelector.clone(
26  vertexTag="unsortedOfflinePrimaryVertices",
27  ptMax=9e99,
28  ptErrorCut=9e99
29 )
30 trackRefsForJetsBeforeSorting = trackRefsForJets.clone(src="trackWithVertexRefSelectorBeforeSorting")
31 
32 
33 vertexrecoTask = cms.Task(unsortedOfflinePrimaryVertices,
34  trackWithVertexRefSelectorBeforeSorting,
35  trackRefsForJetsBeforeSorting,
36  offlinePrimaryVertices,
37  offlinePrimaryVerticesWithBS,
38  generalV0Candidates,
39  caloJetsForTrkTask,
40  inclusiveVertexingTask
41  )
42 vertexreco = cms.Sequence(vertexrecoTask)
43 
44 #modifications for timing
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,
56  tofPID,
57  tofPID4DnoPID,
58  unsortedOfflinePrimaryVertices4D,
59  trackWithVertexRefSelectorBeforeSorting4D,
60  trackRefsForJetsBeforeSorting4D,
61  offlinePrimaryVertices4D,
62  offlinePrimaryVertices4DWithBS)
63 
64 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
65  tpClusterProducer ,
66  quickTrackAssociatorByHits ,
67  trackTimeValueMapProducer ,
68  unsortedOfflinePrimaryVertices4D,
69  trackWithVertexRefSelectorBeforeSorting4D ,
70  trackRefsForJetsBeforeSorting4D,
71  offlinePrimaryVertices4D,
72  offlinePrimaryVertices4DWithBS,
73  )
74 
75 _phase2_tktiming_layer_vertexrecoTask = cms.Task( _phase2_tktiming_vertexrecoTask.copy() ,
76  unsortedOfflinePrimaryVertices4DnoPID ,
77  trackWithVertexRefSelectorBeforeSorting4DnoPID ,
78  trackRefsForJetsBeforeSorting4DnoPID ,
79  offlinePrimaryVertices4DnoPID ,
80  offlinePrimaryVertices4DnoPIDWithBS,
81  tofPID,
82  tofPID4DnoPID,
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_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")
95 
caloJetsForTrk_cff
TrackWithVertexRefSelector_cfi
OfflinePrimaryVertices_cfi
OfflinePrimaryVerticesWithBS_cfi
inclusiveVertexing_cff
generalV0Candidates_cff
TracksForJets_cff
TransientTrackBuilder_cfi
sortedPrimaryVertices_cfi