CMS 3D CMS Logo

RecoParticleFlow_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
5 #from RecoParticleFlow.PFTracking.particleFlowTrackWithDisplacedVertex_cff import *
6 
9 
14 #from RecoParticleFlow.PFProducer.pfGsfElectronCiCSelector_cff import *
16 
18 
20 
23 
25 fixedGridRhoFastjetAllTmp = fixedGridRhoFastjetAll.clone(pfCandidatesTag = cms.InputTag("particleFlowTmp"))
26 
27 particleFlowTmpSeq = cms.Sequence(particleFlowTmp)
28 
29 particleFlowReco = cms.Sequence( particleFlowTrackWithDisplacedVertex*
30 # pfGsfElectronCiCSelectionSequence*
31  pfGsfElectronMVASelectionSequence*
32  particleFlowBlock*
33  particleFlowEGammaFull*
34  particleFlowTmpSeq*
35  fixedGridRhoFastjetAllTmp*
36  particleFlowTmpPtrs*
37  particleFlowEGammaFinal*
38  pfParticleSelectionSequence )
39 
40 particleFlowLinks = cms.Sequence( particleFlow*particleFlowPtrs*chargedHadronPFTrackIsolation*particleBasedIsolationSequence)
41 
46 particleFlowTmpBarrel = particleFlowTmp.clone()
47 _phase2_hgcal_particleFlowTmp = cms.EDProducer(
48  "PFCandidateListMerger",
49  src = cms.VInputTag("particleFlowTmpBarrel",
50  "simPFProducer")
51 
52 )
53 
54 _phase2_hgcal_simPFSequence = cms.Sequence( pfTrack +
55  hgcalTrackCollection +
56  tpClusterProducer +
57  quickTrackAssociatorByHits +
58  simPFProducer )
59 _phase2_hgcal_particleFlowReco = cms.Sequence( _phase2_hgcal_simPFSequence * particleFlowReco.copy() )
60 _phase2_hgcal_particleFlowReco.replace( particleFlowTmpSeq, cms.Sequence( particleFlowTmpBarrel * particleFlowTmp ) )
61 
62 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
63 phase2_hgcal.toReplaceWith( particleFlowTmp, _phase2_hgcal_particleFlowTmp )
64 phase2_hgcal.toReplaceWith( particleFlowReco, _phase2_hgcal_particleFlowReco )
65 
66 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
67 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
68 
69 for e in [pp_on_XeXe_2017, pp_on_AA_2018]:
70  e.toModify(particleFlowDisplacedVertexCandidate,
71  tracksSelectorParameters = dict(pt_min = 999999.0,
72  nChi2_max = 0.0,
73  pt_min_prim = 999999.0,
74  dxy = 999999.0)
75  )
76 
77  e.toModify(particleFlowBlock, useNuclear = cms.bool(False))
78 
79  e.toModify(pfNoPileUpIso, enable = cms.bool(False))
80  e.toModify(pfPileUpIso, enable = cms.bool(False))
81  e.toModify(pfNoPileUp, enable = cms.bool(False))
82  e.toModify(pfPileUp, enable = cms.bool(False))
83 
84 
85