Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-26 04:08:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CommonTools.ParticleFlow.pfPileUp_cfi  import pfPileUp as _pfPileUp
0004 from CommonTools.ParticleFlow.TopProjectors.pfNoPileUp_cfi import pfNoPileUp as _pfNoPileUp
0005 from CommonTools.ParticleFlow.goodOfflinePrimaryVertices_cfi import goodOfflinePrimaryVertices
0006 from CommonTools.RecoAlgos.primaryVertexAssociation_cfi import primaryVertexAssociation
0007 
0008 # The following module implements vertex association for JME.
0009 # It is not run by default to save computing time (but can be run to investigate alternative vertex identification criteria).
0010 # Instead its parameters are used as input to faster implementations in pfPileUpJME and pfCHS and puppi.
0011 primaryVertexAssociationJME = primaryVertexAssociation.clone(vertices = 'goodOfflinePrimaryVertices')
0012 primaryVertexAssociationJME.assignment.maxDzSigForPrimaryAssignment = 1e10
0013 primaryVertexAssociationJME.assignment.maxDzForPrimaryAssignment = 0.3
0014 primaryVertexAssociationJME.assignment.maxDzErrorForPrimaryAssignment = 1e10
0015 primaryVertexAssociationJME.assignment.NumOfPUVtxsForCharged = 2
0016 primaryVertexAssociationJME.assignment.DzCutForChargedFromPUVtxs = 0.2
0017 primaryVertexAssociationJME.assignment.PtMaxCharged = 20.
0018 primaryVertexAssociationJME.assignment.EtaMinUseDz = 2.4
0019 primaryVertexAssociationJME.assignment.OnlyUseFirstDz = True
0020 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
0021 phase2_common.toModify(
0022   primaryVertexAssociationJME.assignment,
0023   maxDzForPrimaryAssignment=0.1,
0024   EtaMinUseDz = 4.0
0025   )
0026 
0027 pfPileUpJME = _pfPileUp.clone(PFCandidates='particleFlowPtrs',
0028                               Vertices = 'goodOfflinePrimaryVertices',
0029                               checkClosestZVertex = False,
0030                               NumOfPUVtxsForCharged = primaryVertexAssociationJME.assignment.NumOfPUVtxsForCharged,
0031                               DzCutForChargedFromPUVtxs = primaryVertexAssociationJME.assignment.DzCutForChargedFromPUVtxs,
0032                               )
0033 pfNoPileUpJME = _pfNoPileUp.clone(topCollection = 'pfPileUpJME',
0034                                   bottomCollection = 'particleFlowPtrs' )
0035 
0036 pfNoPileUpJMETask = cms.Task(
0037     goodOfflinePrimaryVertices,
0038     pfPileUpJME,
0039     pfNoPileUpJME
0040     )
0041 
0042 pfNoPileUpJMESequence = cms.Sequence(pfNoPileUpJMETask)