CMS 3D CMS Logo

Functions | Variables
RecoParticleFlow_cff Namespace Reference

Functions

def _findIndicesByModule (process, name)
 
def replaceTICLwithSimPF (process)
 

Variables

 _phase2_hgcal_particleFlowRecoTask
 
 _phase2_hgcal_particleFlowTmp
 
 _phase2_hgcal_simPFSequence
 
 _phase2_hgcal_simPFTask
 
 dxy
 
 enable
 
 fixedGridRhoFastjetAllTmp
 
 nChi2_max
 
 particleFlowBlock
 
 particleFlowLinks
 
 particleFlowLinksTask
 
 particleFlowReco
 
 particleFlowRecoTask
 
 particleFlowTmpBarrel
 
 particleFlowTmpSeq
 
 particleFlowTmpTask
 
 pfCandidatesTag
 
 pfNoPileUp
 
 pfNoPileUpIso
 
 pfPileUp
 
 pfPileUpIso
 
 pt_min
 
 pt_min_prim
 
 src
 
 tracksSelectorParameters
 
 useNuclear
 
 vetoEndcap
 

Function Documentation

◆ _findIndicesByModule()

def RecoParticleFlow_cff._findIndicesByModule (   process,
  name 
)
private

Definition at line 113 of file RecoParticleFlow_cff.py.

Referenced by replaceTICLwithSimPF().

113 def _findIndicesByModule(process,name):
114  ret = []
115  if hasattr(process,'particleFlowBlock'):
116  for i, pset in enumerate(process.particleFlowBlock.elementImporters):
117  if pset.importerName.value() == name:
118  ret.append(i)
119  return ret
120 
def _findIndicesByModule(process, name)

◆ replaceTICLwithSimPF()

def RecoParticleFlow_cff.replaceTICLwithSimPF (   process)

Definition at line 122 of file RecoParticleFlow_cff.py.

References _findIndicesByModule().

122 def replaceTICLwithSimPF(process):
123  if hasattr(process,'particleFlowTmp'):
124  process.particleFlowTmp.src = ['particleFlowTmpBarrel', 'simPFProducer']
125 
126  if hasattr(process,'particleFlowTmpBarrel'):
127  process.particleFlowTmpBarrel.vetoEndcap = False
128 
129  _insertTrackImportersWithVeto = {}
130  _trackImporters = ['GeneralTracksImporter','ConvBremTrackImporter',
131  'ConversionTrackImporter','NuclearInteractionTrackImporter']
132  for importer in _trackImporters:
133  for idx in _findIndicesByModule(process,importer):
134  _insertTrackImportersWithVeto[idx] = dict(
135  vetoMode = cms.uint32(0), # HGCal-region PFTrack list for simPF
136  vetoSrc = cms.InputTag('hgcalTrackCollection:TracksInHGCal')
137  )
138  phase2_hgcal.toModify(
139  process.particleFlowBlock,
140  elementImporters = _insertTrackImportersWithVeto
141  )
142 
143  return process
144 
def _findIndicesByModule(process, name)

Variable Documentation

◆ _phase2_hgcal_particleFlowRecoTask

RecoParticleFlow_cff._phase2_hgcal_particleFlowRecoTask
private

Definition at line 80 of file RecoParticleFlow_cff.py.

◆ _phase2_hgcal_particleFlowTmp

RecoParticleFlow_cff._phase2_hgcal_particleFlowTmp
private

Definition at line 48 of file RecoParticleFlow_cff.py.

◆ _phase2_hgcal_simPFSequence

RecoParticleFlow_cff._phase2_hgcal_simPFSequence
private

Definition at line 78 of file RecoParticleFlow_cff.py.

◆ _phase2_hgcal_simPFTask

RecoParticleFlow_cff._phase2_hgcal_simPFTask
private

Definition at line 72 of file RecoParticleFlow_cff.py.

◆ dxy

RecoParticleFlow_cff.dxy

Definition at line 95 of file RecoParticleFlow_cff.py.

◆ enable

RecoParticleFlow_cff.enable

Definition at line 100 of file RecoParticleFlow_cff.py.

◆ fixedGridRhoFastjetAllTmp

RecoParticleFlow_cff.fixedGridRhoFastjetAllTmp

Definition at line 25 of file RecoParticleFlow_cff.py.

◆ nChi2_max

RecoParticleFlow_cff.nChi2_max

Definition at line 93 of file RecoParticleFlow_cff.py.

◆ particleFlowBlock

RecoParticleFlow_cff.particleFlowBlock

Definition at line 98 of file RecoParticleFlow_cff.py.

◆ particleFlowLinks

RecoParticleFlow_cff.particleFlowLinks

Definition at line 43 of file RecoParticleFlow_cff.py.

◆ particleFlowLinksTask

RecoParticleFlow_cff.particleFlowLinksTask

Definition at line 42 of file RecoParticleFlow_cff.py.

◆ particleFlowReco

RecoParticleFlow_cff.particleFlowReco

Definition at line 40 of file RecoParticleFlow_cff.py.

◆ particleFlowRecoTask

RecoParticleFlow_cff.particleFlowRecoTask

Definition at line 30 of file RecoParticleFlow_cff.py.

◆ particleFlowTmpBarrel

RecoParticleFlow_cff.particleFlowTmpBarrel

Definition at line 47 of file RecoParticleFlow_cff.py.

◆ particleFlowTmpSeq

RecoParticleFlow_cff.particleFlowTmpSeq

Definition at line 28 of file RecoParticleFlow_cff.py.

◆ particleFlowTmpTask

RecoParticleFlow_cff.particleFlowTmpTask

Definition at line 27 of file RecoParticleFlow_cff.py.

◆ pfCandidatesTag

RecoParticleFlow_cff.pfCandidatesTag

Definition at line 25 of file RecoParticleFlow_cff.py.

◆ pfNoPileUp

RecoParticleFlow_cff.pfNoPileUp

Definition at line 102 of file RecoParticleFlow_cff.py.

◆ pfNoPileUpIso

RecoParticleFlow_cff.pfNoPileUpIso

Definition at line 100 of file RecoParticleFlow_cff.py.

◆ pfPileUp

RecoParticleFlow_cff.pfPileUp

Definition at line 103 of file RecoParticleFlow_cff.py.

◆ pfPileUpIso

RecoParticleFlow_cff.pfPileUpIso

Definition at line 101 of file RecoParticleFlow_cff.py.

◆ pt_min

RecoParticleFlow_cff.pt_min

Definition at line 92 of file RecoParticleFlow_cff.py.

◆ pt_min_prim

RecoParticleFlow_cff.pt_min_prim

Definition at line 94 of file RecoParticleFlow_cff.py.

◆ src

RecoParticleFlow_cff.src

Definition at line 50 of file RecoParticleFlow_cff.py.

◆ tracksSelectorParameters

RecoParticleFlow_cff.tracksSelectorParameters

Definition at line 92 of file RecoParticleFlow_cff.py.

◆ useNuclear

RecoParticleFlow_cff.useNuclear

◆ vetoEndcap

RecoParticleFlow_cff.vetoEndcap

Definition at line 59 of file RecoParticleFlow_cff.py.