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 = "particleFlowTmp")
26 
27 particleFlowTmpTask = cms.Task(particleFlowTmp)
28 particleFlowTmpSeq = cms.Sequence(particleFlowTmpTask)
29 
30 particleFlowRecoTask = cms.Task( particleFlowTrackWithDisplacedVertexTask,
31 # pfGsfElectronCiCSelectionSequence,
32  pfGsfElectronMVASelectionTask,
33  particleFlowBlock,
34  particleFlowEGammaFullTask,
35  particleFlowTmpTask,
36  fixedGridRhoFastjetAllTmp,
37  particleFlowTmpPtrs,
38  particleFlowEGammaFinalTask,
39  pfParticleSelectionTask )
40 particleFlowReco = cms.Sequence(particleFlowRecoTask)
41 
42 particleFlowLinksTask = cms.Task( particleFlow, particleFlowPtrs, chargedHadronPFTrackIsolation, particleBasedIsolationTask)
43 particleFlowLinks = cms.Sequence(particleFlowLinksTask)
44 
49 particleFlowTmpBarrel = particleFlowTmp.clone()
50 _phase2_hgcal_particleFlowTmp = cms.EDProducer(
51  "PFCandidateListMerger",
52  src = cms.VInputTag("particleFlowTmpBarrel",
53  "simPFProducer")
54 
55 )
56 
57 _phase2_hgcal_simPFTask = cms.Task( pfTrack ,
58  hgcalTrackCollection ,
59  tpClusterProducer ,
60  quickTrackAssociatorByHits ,
61  simPFProducer )
62 _phase2_hgcal_simPFSequence = cms.Sequence(_phase2_hgcal_simPFTask)
63 _phase2_hgcal_particleFlowRecoTask = cms.Task( _phase2_hgcal_simPFTask , particleFlowRecoTask.copy() )
64 _phase2_hgcal_particleFlowRecoTask.replace( particleFlowTmpTask, cms.Task( particleFlowTmpBarrel, particleFlowTmp ) )
65 
66 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
67 phase2_hgcal.toReplaceWith( particleFlowTmp, _phase2_hgcal_particleFlowTmp )
68 phase2_hgcal.toReplaceWith( particleFlowRecoTask, _phase2_hgcal_particleFlowRecoTask )
69 
70 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
71 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
72 
73 for e in [pp_on_XeXe_2017, pp_on_AA]:
74  e.toModify(particleFlowDisplacedVertexCandidate,
75  tracksSelectorParameters = dict(pt_min = 999999.0,
76  nChi2_max = 0.0,
77  pt_min_prim = 999999.0,
78  dxy = 999999.0)
79  )
80 
81  e.toModify(particleFlowBlock, useNuclear = cms.bool(False))
82 
83  e.toModify(pfNoPileUpIso, enable = cms.bool(False))
84  e.toModify(pfPileUpIso, enable = cms.bool(False))
85  e.toModify(pfNoPileUp, enable = cms.bool(False))
86  e.toModify(pfPileUp, enable = cms.bool(False))
87 
88 
89 
pfParticleSelection_cff
simPFProducer_cfi
fixedGridRhoProducerFastjet_cfi
pfLinker_cff
hgcalTrackCollection_cfi
particleFlowBlock_cff
particleFlow_cff
pfElectronTranslator_cff
particleFlowSimParticle_cff
tpClusterProducer_cfi
pfPhotonTranslator_cff
particleFlowTrack_cff
quickTrackAssociatorByHits_cfi
particleBasedIsoProducer_cff
pfGsfElectronMVASelector_cff
chargedHadronPFTrackIsolation_cfi
particleFlowEGamma_cff