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 DA2DParameters
37 unsortedOfflinePrimaryVertices1D = unsortedOfflinePrimaryVertices.clone()
38 unsortedOfflinePrimaryVertices1D.TkFilterParameters.minPt = cms.double(0.7)
39 offlinePrimaryVertices1D=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices1D", particles="trackRefsForJetsBeforeSorting")
40 offlinePrimaryVertices1DWithBS=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices1D:WithBS", particles="trackRefsForJetsBeforeSorting")
41 DA2DParameters.TkDAClusParameters.verbose = cms.untracked.bool(False)
42 unsortedOfflinePrimaryVertices4D = unsortedOfflinePrimaryVertices.clone( verbose = cms.untracked.bool(False),
43  TkClusParameters = DA2DParameters )
44 unsortedOfflinePrimaryVertices4D.TkFilterParameters.minPt = cms.double(0.7)
45 unsortedOfflinePrimaryVertices4D.TrackTimesLabel = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModel")
46 unsortedOfflinePrimaryVertices4D.TrackTimeResosLabel = cms.InputTag("trackTimeValueMapProducer:generalTracksConfigurableFlatResolutionModelResolution")
47 offlinePrimaryVertices4D=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices4D", particles="trackRefsForJetsBeforeSorting")
48 offlinePrimaryVertices4DWithBS=sortedPrimaryVertices.clone(vertices="unsortedOfflinePrimaryVertices4D:WithBS", particles="trackRefsForJetsBeforeSorting")
49 
51 from SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi import quickTrackAssociatorByHits
52 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
53 _phase2_tktiming_vertexreco = cms.Sequence( vertexreco.copy() *
54  tpClusterProducer *
55  quickTrackAssociatorByHits *
56  trackTimeValueMapProducer *
57  unsortedOfflinePrimaryVertices1D *
58  offlinePrimaryVertices1D *
59  offlinePrimaryVertices1DWithBS *
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)
67