CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
RecoParticleFlow_cff Namespace Reference

Functions

def _findIndicesByModule
 
def replaceTICLwithSimPF
 

Variables

tuple _mlpfTask = cms.Task(mlpfProducer, particleFlowRecoTask.copy())
 
tuple _phase2_hgcal_particleFlowRecoTask = cms.Task( _phase2_hgcal_simPFTask , particleFlowRecoTask.copy() )
 
tuple _phase2_hgcal_particleFlowTmp
 
tuple _phase2_hgcal_simPFSequence = cms.Sequence(_phase2_hgcal_simPFTask)
 
tuple _phase2_hgcal_simPFTask
 
tuple fixedGridRhoFastjetAllTmp = fixedGridRhoFastjetAll.clone(pfCandidatesTag = "particleFlowTmp")
 
tuple particleFlowLinks = cms.Sequence(particleFlowLinksTask)
 
tuple particleFlowLinksTask = cms.Task( particleFlow, particleFlowPtrs, chargedHadronPFTrackIsolation, particleBasedIsolationTask)
 
tuple particleFlowReco = cms.Sequence(particleFlowRecoTask)
 
tuple particleFlowRecoTask
 
tuple particleFlowTmpBarrel = particleFlowTmp.clone()
 
tuple particleFlowTmpSeq = cms.Sequence(particleFlowTmpTask)
 
tuple particleFlowTmpTask = cms.Task(particleFlowTmp)
 
tuple tracksSelectorParameters
 
 vetoEndcap = True
 

Function Documentation

def RecoParticleFlow_cff._findIndicesByModule (   process,
  name 
)
private

Definition at line 116 of file RecoParticleFlow_cff.py.

Referenced by replaceTICLwithSimPF().

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

Definition at line 125 of file RecoParticleFlow_cff.py.

References _findIndicesByModule().

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

Variable Documentation

tuple RecoParticleFlow_cff._mlpfTask = cms.Task(mlpfProducer, particleFlowRecoTask.copy())

Definition at line 110 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff._phase2_hgcal_particleFlowRecoTask = cms.Task( _phase2_hgcal_simPFTask , particleFlowRecoTask.copy() )

Definition at line 80 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff._phase2_hgcal_particleFlowTmp
Initial value:
1 = cms.EDProducer(
2  "PFCandidateListMerger",
3  src = cms.VInputTag("particleFlowTmpBarrel",
4  "pfTICL")
5 
6 )

Definition at line 48 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff._phase2_hgcal_simPFSequence = cms.Sequence(_phase2_hgcal_simPFTask)

Definition at line 78 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff._phase2_hgcal_simPFTask
Initial value:
1 = cms.Task( pfTrack ,
2  hgcalTrackCollection ,
3  tpClusterProducer ,
4  quickTrackAssociatorByHits ,
5  particleFlowClusterHGCalFromSimCl ,
6  simPFProducer )

Definition at line 72 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.fixedGridRhoFastjetAllTmp = fixedGridRhoFastjetAll.clone(pfCandidatesTag = "particleFlowTmp")

Definition at line 25 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowLinks = cms.Sequence(particleFlowLinksTask)

Definition at line 43 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowLinksTask = cms.Task( particleFlow, particleFlowPtrs, chargedHadronPFTrackIsolation, particleBasedIsolationTask)

Definition at line 42 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowReco = cms.Sequence(particleFlowRecoTask)

Definition at line 40 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowRecoTask
Initial value:
1 = cms.Task( particleFlowTrackWithDisplacedVertexTask,
2 # pfGsfElectronCiCSelectionSequence,
3  pfGsfElectronMVASelectionTask,
4  particleFlowBlock,
5  particleFlowEGammaFullTask,
6  particleFlowTmpTask,
7  fixedGridRhoFastjetAllTmp,
8  particleFlowTmpPtrs,
9  particleFlowEGammaFinalTask,
10  pfParticleSelectionTask )

Definition at line 30 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowTmpBarrel = particleFlowTmp.clone()

Definition at line 47 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowTmpSeq = cms.Sequence(particleFlowTmpTask)

Definition at line 28 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.particleFlowTmpTask = cms.Task(particleFlowTmp)

Definition at line 27 of file RecoParticleFlow_cff.py.

tuple RecoParticleFlow_cff.tracksSelectorParameters
Initial value:
1 = dict(pt_min = 999999.0,
2  nChi2_max = 0.0,
3  pt_min_prim = 999999.0,
4  dxy = 999999.0)

Definition at line 92 of file RecoParticleFlow_cff.py.

RecoParticleFlow_cff.vetoEndcap = True

Definition at line 59 of file RecoParticleFlow_cff.py.