Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-23 22:40:21

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff import DA_vectParameters
0004 
0005 offlinePrimaryVertices = cms.EDProducer(
0006     "PrimaryVertexProducer",
0007 
0008     verbose = cms.untracked.bool(False),
0009     TrackLabel = cms.InputTag("generalTracks"),
0010     beamSpotLabel = cms.InputTag("offlineBeamSpot"),
0011     
0012     TkFilterParameters = cms.PSet(
0013         algorithm=cms.string('filter'),
0014         maxNormalizedChi2 = cms.double(10.0),
0015         minPixelLayersWithHits=cms.int32(2),
0016         minSiliconLayersWithHits = cms.int32(5),
0017         maxD0Significance = cms.double(4.0), 
0018         maxD0Error = cms.double(1.0), 
0019         maxDzError = cms.double(1.0), 
0020         minPt = cms.double(0.0),
0021         maxEta = cms.double(2.4),
0022         trackQuality = cms.string("any")
0023     ),
0024 
0025     TkClusParameters = DA_vectParameters,
0026 
0027     vertexCollections = cms.VPSet(
0028      [cms.PSet(label=cms.string(""),
0029                algorithm=cms.string("AdaptiveVertexFitter"),
0030                chi2cutoff = cms.double(2.5),
0031                minNdof=cms.double(0.0),
0032                useBeamConstraint = cms.bool(False),
0033                maxDistanceToBeam = cms.double(1.0)
0034                ),
0035       cms.PSet(label=cms.string("WithBS"),
0036                algorithm = cms.string('AdaptiveVertexFitter'),
0037                chi2cutoff = cms.double(2.5),
0038                minNdof=cms.double(2.0),
0039                useBeamConstraint = cms.bool(True),
0040                maxDistanceToBeam = cms.double(1.0),
0041                )
0042       ]
0043     ),
0044     
0045     isRecoveryIteration = cms.bool(False),
0046     recoveryVtxCollection = cms.InputTag("")
0047 
0048                                         
0049 )
0050 
0051 # This customization is needed in the trackingLowPU era to be able to
0052 # produce vertices also in the cases in which the pixel detector is
0053 # not included in data-taking, like it was the case for "Quiet Beam"
0054 # collisions on 2016 with run 269207.
0055 
0056 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
0057 trackingLowPU.toModify(offlinePrimaryVertices,
0058                             TkFilterParameters = dict(minPixelLayersWithHits = 0))
0059 
0060 
0061 # higher eta cut for the phase 2 tracker
0062 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker 
0063 phase2_tracker.toModify(offlinePrimaryVertices, 
0064                         TkFilterParameters = dict(maxEta = 4.0))
0065 
0066 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0067 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0068 (pp_on_XeXe_2017 | pp_on_AA).toModify(offlinePrimaryVertices,
0069                TkFilterParameters = dict(
0070                    algorithm="filterWithThreshold",
0071                    maxD0Significance = 2.0,
0072                    maxD0Error = 10.0, 
0073                    maxDzError = 10.0, 
0074                    minPixelLayersWithHits=3,
0075                    minPt = 0.7,
0076                    trackQuality = "highPurity",
0077                    numTracksThreshold = cms.int32(10),
0078                    maxNumTracksThreshold = cms.int32(1000),
0079                    minPtTight = cms.double(1.0)
0080                ),
0081                TkClusParameters = cms.PSet(
0082                  algorithm = cms.string("gap"),
0083                  TkGapClusParameters = cms.PSet(
0084                    zSeparation = cms.double(1.0)        
0085                  )
0086                )
0087 )
0088     
0089 from Configuration.Eras.Modifier_highBetaStar_2018_cff import highBetaStar_2018
0090 highBetaStar_2018.toModify(offlinePrimaryVertices,
0091      TkFilterParameters = dict(
0092          maxNormalizedChi2 = 80.0,
0093          minPixelLayersWithHits = 1,
0094          minSiliconLayersWithHits = 3,
0095          maxD0Significance = 7.0,
0096          maxD0Error = 10.0, 
0097          maxDzError = 10.0, 
0098          maxEta = 2.5
0099      ),
0100      vertexCollections = {
0101          0: dict(chi2cutoff = 4.0, minNdof = -1.1),
0102          1: dict(chi2cutoff = 4.0, minNdof = -2.0),
0103      }
0104 )
0105