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

Referenced by replaceTICLwithSimPF().

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
def RecoParticleFlow_cff.replaceTICLwithSimPF (   process)

Definition at line 122 of file RecoParticleFlow_cff.py.

References _findIndicesByModule().

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

Variable Documentation

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.