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.toModify( quickTrackAssociatorByHits,
64  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis","Pixel"),
65  stripSimLinkSrc = cms.InputTag("simSiPixelDigis","Tracker")
66  )
67 
68 phase2_hgcal.toModify( tpClusterProducer,
69  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis", "Pixel"),
70  phase2OTSimLinkSrc = cms.InputTag("simSiPixelDigis","Tracker")
71  )
72 
73 phase2_hgcal.toReplaceWith( particleFlowTmp, _phase2_hgcal_particleFlowTmp )
74 phase2_hgcal.toReplaceWith( particleFlowReco, _phase2_hgcal_particleFlowReco )