CMS 3D CMS Logo

iterativeTICL_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.MIPStep_cff import *
4 from RecoHGCal.TICL.TrkStep_cff import *
5 from RecoHGCal.TICL.EMStep_cff import *
6 from RecoHGCal.TICL.HADStep_cff import *
7 from RecoHGCal.TICL.ticlLayerTileProducer_cfi import ticlLayerTileProducer
8 from RecoHGCal.TICL.ticlCandidateFromTrackstersProducer_cfi import ticlCandidateFromTrackstersProducer as _ticlCandidateFromTrackstersProducer
9 from RecoHGCal.TICL.pfTICLProducer_cfi import pfTICLProducer as _pfTICLProducer
10 from RecoHGCal.TICL.trackstersMergeProducer_cfi import trackstersMergeProducer as _trackstersMergeProducer
11 from RecoHGCal.TICL.multiClustersFromTrackstersProducer_cfi import multiClustersFromTrackstersProducer as _multiClustersFromTrackstersProducer
12 
13 
14 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
15 
16 ticlTrackstersMerge = _trackstersMergeProducer.clone()
17 ticlMultiClustersFromTrackstersMerge = _multiClustersFromTrackstersProducer.clone(
18  Tracksters = "ticlTrackstersMerge"
19 )
20 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge, ticlMultiClustersFromTrackstersMerge)
21 
22 ticlCandidateFromTracksters = _ticlCandidateFromTrackstersProducer.clone(
23  tracksterCollections = ["ticlTrackstersMerge"],
24  # A possible alternative for momentum computation:
25  # momentumPlugin = dict(plugin="TracksterP4FromTrackAndPCA")
26  )
27 pfTICL = _pfTICLProducer.clone()
28 ticlPFTask = cms.Task(ticlCandidateFromTracksters, pfTICL)
29 
30 iterTICLTask = cms.Task(ticlLayerTileTask
31  ,ticlMIPStepTask
32  ,ticlTrkStepTask
33  ,ticlEMStepTask
34  ,ticlHADStepTask
35  ,ticlTracksterMergeTask
36  ,ticlPFTask
37  )
38 
39 def injectTICLintoPF(process):
40  if getattr(process,'particleFlowTmp', None):
41  process.particleFlowTmp.src = ['particleFlowTmpBarrel', 'pfTICL']
42 
43  return process
TrkStep_cff
iterativeTICL_cff.injectTICLintoPF
def injectTICLintoPF(process)
Definition: iterativeTICL_cff.py:39
HADStep_cff
MIPStep_cff
EMStep_cff