CMS 3D CMS Logo

iterativeTICL_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 from RecoHGCal.TICL.MIPStep_cff import *
8 from RecoHGCal.TICL.TrkStep_cff import *
9 from RecoHGCal.TICL.EMStep_cff import *
10 from RecoHGCal.TICL.HADStep_cff import *
11 
12 from RecoHGCal.TICL.ticlLayerTileProducer_cfi import ticlLayerTileProducer
13 from RecoHGCal.TICL.pfTICLProducer_cfi import pfTICLProducer as _pfTICLProducer
14 from RecoHGCal.TICL.trackstersMergeProducer_cfi import trackstersMergeProducer as _trackstersMergeProducer
16 
17 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
18 
19 ticlTrackstersMerge = _trackstersMergeProducer.clone()
20 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
21 
22 
23 pfTICL = _pfTICLProducer.clone()
24 ticlPFTask = cms.Task(pfTICL)
25 
26 ticlIterationsTask = cms.Task(
27  ticlTrkEMStepTask
28  ,ticlEMStepTask
29  ,ticlTrkStepTask
30  ,ticlHADStepTask
31 )
32 
33 from Configuration.ProcessModifiers.clue3D_cff import clue3D
34 clue3D.toModify(ticlIterationsTask, func=lambda x : x.add(ticlCLUE3DHighStepTask,ticlCLUE3DLowStepTask))
35 
36 from Configuration.ProcessModifiers.fastJetTICL_cff import fastJetTICL
37 fastJetTICL.toModify(ticlIterationsTask, func=lambda x : x.add(ticlFastJetStepTask))
38 
39 ticlIterLabels = [_step.itername.value() for _iteration in ticlIterationsTask for _step in _iteration if (_step._TypedParameterizable__type == "TrackstersProducer")]
40 
41 iterTICLTask = cms.Task(ticlLayerTileTask
42  ,ticlIterationsTask
43  ,ticlTracksterMergeTask
44  ,ticlPFTask
45 )
46 ticlIterLabelsMerge = ticlIterLabels + ["Merge"]
47 
48 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
49  detector = 'HFNose'
50 )
51 
52 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
53 
54 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
55  ,ticlHFNoseTrkEMStepTask
56  ,ticlHFNoseEMStepTask
57  ,ticlHFNoseTrkStepTask
58  ,ticlHFNoseHADStepTask
59  ,ticlHFNoseMIPStepTask
60 )