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 
22 
24 fixedGridRhoFastjetAllTmp = fixedGridRhoFastjetAll.clone(pfCandidatesTag = cms.InputTag("particleFlowTmp"))
25 
26 particleFlowTmpSeq = cms.Sequence(particleFlowTmp)
27 
28 particleFlowReco = cms.Sequence( particleFlowTrackWithDisplacedVertex*
29 # pfGsfElectronCiCSelectionSequence*
30  pfGsfElectronMVASelectionSequence*
31  particleFlowBlock*
32  particleFlowEGammaFull*
33  particleFlowTmpSeq*
34  fixedGridRhoFastjetAllTmp*
35  particleFlowTmpPtrs*
36  particleFlowEGammaFinal*
37  pfParticleSelectionSequence )
38 
39 particleFlowLinks = cms.Sequence( particleFlow*particleFlowPtrs*particleBasedIsolationSequence)
40 
45 particleFlowTmpBarrel = particleFlowTmp.clone()
46 _phase2_hgcal_particleFlowTmp = cms.EDProducer(
47  "PFCandidateListMerger",
48  src = cms.VInputTag("particleFlowTmpBarrel",
49  "simPFProducer")
50 
51 )
52 
53 _phase2_hgcal_simPFSequence = cms.Sequence( pfTrack +
54  hgcalTrackCollection +
55  tpClusterProducer +
56  quickTrackAssociatorByHits +
57  simPFProducer )
58 _phase2_hgcal_particleFlowReco = cms.Sequence( _phase2_hgcal_simPFSequence * particleFlowReco.copy() )
59 _phase2_hgcal_particleFlowReco.replace( particleFlowTmpSeq, cms.Sequence( particleFlowTmpBarrel * particleFlowTmp ) )
60 
61 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
62 phase2_hgcal.toModify( quickTrackAssociatorByHits,
63  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis","Pixel"),
64  stripSimLinkSrc = cms.InputTag("simSiPixelDigis","Tracker")
65  )
66 
67 phase2_hgcal.toModify( tpClusterProducer,
68  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis", "Pixel"),
69  phase2OTSimLinkSrc = cms.InputTag("simSiPixelDigis","Tracker")
70  )
71 
72 phase2_hgcal.toReplaceWith( particleFlowTmp, _phase2_hgcal_particleFlowTmp )
73 phase2_hgcal.toReplaceWith( particleFlowReco, _phase2_hgcal_particleFlowReco )