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 vertexreco = cms.Sequence(unsortedOfflinePrimaryVertices*
26  trackWithVertexRefSelectorBeforeSorting*
27  trackRefsForJetsBeforeSorting*
28  caloJetsForTrk *
29  offlinePrimaryVertices*
30  offlinePrimaryVerticesWithBS*
31  generalV0Candidates*
32  inclusiveVertexing
33  )
34 
35 #timing
36 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff import DA2D_vectParameters
37 DA2D_vectParameters.TkDAClusParameters.verbose = cms.untracked.bool(False)
38 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone( verbose = cms.untracked.bool(False),
39  TkClusParameters = DA2D_vectParameters )
40 unsortedOfflinePrimaryVertices4D.TkFilterParameters.minPt = cms.double(0.7)
41 unsortedOfflinePrimaryVertices4D.TrackTimesLabel = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel")
42 unsortedOfflinePrimaryVertices4D.TrackTimeResosLabel = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution")
43 offlinePrimaryVertices4D=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices4D", particles="trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModelResolution"),assignment=dict(useTiming=True))
44 offlinePrimaryVertices4DWithBS=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices4D:WithBS", particles="trackRefsForJetsBeforeSorting4D", trackTimeTag=cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModel"),trackTimeResoTag=cms.InputTag("trackTimeValueMapProducer","generalTracksConfigurableFlatResolutionModelResolution"),assignment=dict(useTiming=True))
45 
46 trackWithVertexRefSelectorBeforeSorting4D = trackWithVertexRefSelector.clone(vertexTag="unsortedOfflinePrimaryVertices4D")
47 trackWithVertexRefSelectorBeforeSorting4D.ptMax=9e99
48 trackWithVertexRefSelectorBeforeSorting4D.ptErrorCut=9e99
49 trackRefsForJetsBeforeSorting4D = trackRefsForJets.clone(src="trackWithVertexRefSelectorBeforeSorting4D")
50 
52 from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import quickTrackAssociatorByHits
53 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
54 _phase2_tktiming_vertexreco = cms.Sequence( vertexreco.copy() *
55  tpClusterProducer *
56  quickTrackAssociatorByHits *
57  trackTimeValueMapProducer *
58  trackWithVertexRefSelectorBeforeSorting4D *
59  trackRefsForJetsBeforeSorting4D *
60  unsortedOfflinePrimaryVertices4D *
61  offlinePrimaryVertices4D *
62  offlinePrimaryVertices4DWithBS
63  )
64 
65 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
66 phase2_timing.toReplaceWith(vertexreco, _phase2_tktiming_vertexreco)