CMS 3D CMS Logo

Functions | Variables
RecoParticleFlow_cff Namespace Reference

Functions

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

Variables

 _mlpfTask
 
 _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 114 of file RecoParticleFlow_cff.py.

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

Referenced by replaceTICLwithSimPF().

◆ replaceTICLwithSimPF()

def RecoParticleFlow_cff.replaceTICLwithSimPF (   process)

Definition at line 123 of file RecoParticleFlow_cff.py.

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

References _findIndicesByModule().

Variable Documentation

◆ _mlpfTask

RecoParticleFlow_cff._mlpfTask
private

Definition at line 108 of file RecoParticleFlow_cff.py.

◆ _phase2_hgcal_particleFlowRecoTask

RecoParticleFlow_cff._phase2_hgcal_particleFlowRecoTask
private

Definition at line 78 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 76 of file RecoParticleFlow_cff.py.

◆ _phase2_hgcal_simPFTask

RecoParticleFlow_cff._phase2_hgcal_simPFTask
private

Definition at line 71 of file RecoParticleFlow_cff.py.

◆ dxy

RecoParticleFlow_cff.dxy

Definition at line 93 of file RecoParticleFlow_cff.py.

◆ enable

RecoParticleFlow_cff.enable

Definition at line 98 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 91 of file RecoParticleFlow_cff.py.

◆ particleFlowBlock

RecoParticleFlow_cff.particleFlowBlock

Definition at line 96 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 100 of file RecoParticleFlow_cff.py.

◆ pfNoPileUpIso

RecoParticleFlow_cff.pfNoPileUpIso

Definition at line 98 of file RecoParticleFlow_cff.py.

◆ pfPileUp

RecoParticleFlow_cff.pfPileUp

Definition at line 101 of file RecoParticleFlow_cff.py.

◆ pfPileUpIso

RecoParticleFlow_cff.pfPileUpIso

Definition at line 99 of file RecoParticleFlow_cff.py.

◆ pt_min

RecoParticleFlow_cff.pt_min

Definition at line 90 of file RecoParticleFlow_cff.py.

◆ pt_min_prim

RecoParticleFlow_cff.pt_min_prim

Definition at line 92 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 90 of file RecoParticleFlow_cff.py.

◆ useNuclear

RecoParticleFlow_cff.useNuclear

◆ vetoEndcap

RecoParticleFlow_cff.vetoEndcap

Definition at line 59 of file RecoParticleFlow_cff.py.

RecoParticleFlow_cff._findIndicesByModule
def _findIndicesByModule(process, name)
Definition: RecoParticleFlow_cff.py:114
RecoParticleFlow_cff.replaceTICLwithSimPF
def replaceTICLwithSimPF(process)
Definition: RecoParticleFlow_cff.py:123