1 import FWCore.ParameterSet.Config
as cms
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
15 from RecoHGCal.TICL.trackstersMergeProducerV3_cfi
import trackstersMergeProducerV3
as _trackstersMergeProducerV3
18 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
20 ticlTrackstersMerge = _trackstersMergeProducer.clone()
21 ticlTrackstersMergeV3 = _trackstersMergeProducerV3.clone()
23 pfTICL = _pfTICLProducer.clone()
24 ticlPFTask = cms.Task(pfTICL)
26 ticlIterationsTask = cms.Task(
27 ticlCLUE3DHighStepTask
30 from Configuration.ProcessModifiers.clue3D_cff
import clue3D
31 clue3D.toModify(ticlIterationsTask, func=
lambda x : x.add(ticlCLUE3DHighStepTask,ticlCLUE3DLowStepTask))
33 from Configuration.ProcessModifiers.fastJetTICL_cff
import fastJetTICL
34 fastJetTICL.toModify(ticlIterationsTask, func=
lambda x : x.add(ticlFastJetStepTask))
36 from Configuration.ProcessModifiers.ticl_v3_cff
import ticl_v3
37 ticl_v3.toModify(ticlIterationsTask, func=
lambda x : x.add( ticlTrkEMStepTask
41 ticlIterLabels = [_step.itername.value()
for _iteration
in ticlIterationsTask
for _step
in _iteration
if (_step._TypedParameterizable__type ==
"TrackstersProducer")]
43 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
44 ticlTracksterMergeTaskV3 = cms.Task(ticlTrackstersMergeV3)
46 ticl_v3.toModify(pfTICL, ticlCandidateSrc =
"ticlTrackstersMergeV3")
48 mergeTICLTask = cms.Task(ticlLayerTileTask
50 ,ticlTracksterMergeTask
53 ticl_v3.toModify(mergeTICLTask, func=
lambda x : x.add(ticlTracksterMergeTaskV3))
54 ticlIterLabelsMerge = ticlIterLabels + [
"Merge"]
56 ticlIterLabelsMergeV3 = ticlIterLabels + [
"MergeV3"]
57 ticl_v3.toModify(ticlIterLabelsMerge, func=
lambda x : x.extend(ticlIterLabelsMergeV3))
59 iterTICLTask = cms.Task(mergeTICLTask
62 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
66 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
68 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
69 ,ticlHFNoseTrkEMStepTask
71 ,ticlHFNoseTrkStepTask
72 ,ticlHFNoseHADStepTask
73 ,ticlHFNoseMIPStepTask