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  tofPID4DnoPID,
50  unsortedOfflinePrimaryVertices4D,
51  trackWithVertexRefSelectorBeforeSorting4D,
52  trackRefsForJetsBeforeSorting4D,
53  offlinePrimaryVertices4D,
54  offlinePrimaryVertices4DWithBS)
55 
56 _phase2_tktiming_vertexrecoTask = cms.Task( vertexrecoTask.copy() ,
57  tpClusterProducer ,
58  quickTrackAssociatorByHits ,
59  trackTimeValueMapProducer ,
60  unsortedOfflinePrimaryVertices4D,
61  trackWithVertexRefSelectorBeforeSorting4D ,
62  trackRefsForJetsBeforeSorting4D,
63  offlinePrimaryVertices4D,
64  offlinePrimaryVertices4DWithBS,
65  )
66 
67 _phase2_tktiming_layer_vertexrecoTask = cms.Task( _phase2_tktiming_vertexrecoTask.copy() ,
68  unsortedOfflinePrimaryVertices4DnoPID ,
69  trackWithVertexRefSelectorBeforeSorting4DnoPID ,
70  trackRefsForJetsBeforeSorting4DnoPID ,
71  offlinePrimaryVertices4DnoPID ,
72  offlinePrimaryVertices4DnoPIDWithBS,
73  tofPID,
74  tofPID4DnoPID,
75  )
76 
77 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
78 phase2_timing.toReplaceWith(vertexrecoTask, _phase2_tktiming_vertexrecoTask)
79 
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")
87 
caloJetsForTrk_cff
TrackWithVertexRefSelector_cfi
OfflinePrimaryVertices_cfi
OfflinePrimaryVerticesWithBS_cfi
inclusiveVertexing_cff
generalV0Candidates_cff
TracksForJets_cff
TransientTrackBuilder_cfi
sortedPrimaryVertices_cfi