Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-26 05:05:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def PFCandidatePrimaryVertexSorter(*args, **kwargs):
0004   mod = cms.EDProducer('PFCandidatePrimaryVertexSorter',
0005     sorting = cms.PSet(),
0006     assignment = cms.PSet(
0007       maxDzSigForPrimaryAssignment = cms.double(5),
0008       maxDzForPrimaryAssignment = cms.double(0.1),
0009       maxDzErrorForPrimaryAssignment = cms.double(0.05),
0010       maxDtSigForPrimaryAssignment = cms.double(3),
0011       maxJetDeltaR = cms.double(0.5),
0012       minJetPt = cms.double(25),
0013       maxDistanceToJetAxis = cms.double(0.07),
0014       maxDzForJetAxisAssigment = cms.double(0.1),
0015       maxDxyForJetAxisAssigment = cms.double(0.1),
0016       maxDxySigForNotReconstructedPrimary = cms.double(2),
0017       maxDxyForNotReconstructedPrimary = cms.double(0.01),
0018       useTiming = cms.bool(False),
0019       useVertexFit = cms.bool(True),
0020       preferHighRanked = cms.bool(False),
0021       NumOfPUVtxsForCharged = cms.uint32(0),
0022       DzCutForChargedFromPUVtxs = cms.double(0.2),
0023       PtMaxCharged = cms.double(-1),
0024       EtaMinUseDz = cms.double(-1),
0025       OnlyUseFirstDz = cms.bool(False)
0026     ),
0027     qualityForPrimary = cms.int32(3),
0028     usePVMET = cms.bool(True),
0029     particles = cms.InputTag('particleFlow'),
0030     vertices = cms.InputTag('offlinePrimaryVertices'),
0031     jets = cms.InputTag('ak4PFJets'),
0032     produceAssociationToOriginalVertices = cms.bool(True),
0033     produceSortedVertices = cms.bool(True),
0034     producePileUpCollection = cms.bool(True),
0035     produceNoPileUpCollection = cms.bool(True),
0036     mightGet = cms.optional.untracked.vstring
0037   )
0038   for a in args:
0039     mod.update_(a)
0040   mod.update_(kwargs)
0041   return mod