1 import FWCore.ParameterSet.Config
as cms
14 from RecoHGCal.TICL.ticlLayerTileProducer_cfi
import ticlLayerTileProducer
15 from RecoHGCal.TICL.pfTICLProducer_cfi
import pfTICLProducer
as _pfTICLProducer
16 from RecoHGCal.TICL.trackstersMergeProducer_cfi
import trackstersMergeProducer
as _trackstersMergeProducer
19 from RecoHGCal.TICL.tracksterLinksProducer_cfi
import tracksterLinksProducer
as _tracksterLinksProducer
21 from RecoHGCal.TICL.ticlCandidateProducer_cfi
import ticlCandidateProducer
as _ticlCandidateProducer
23 from RecoHGCal.TICL.mtdSoAProducer_cfi
import mtdSoAProducer
as _mtdSoAProducer
25 from Configuration.ProcessModifiers.ticl_v5_cff
import ticl_v5
27 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
29 ticlTrackstersMerge = _trackstersMergeProducer.clone()
30 ticlTracksterLinks = _tracksterLinksProducer.clone(
31 tracksters_collections = cms.VInputTag(
32 'ticlTrackstersCLUE3DHigh',
33 'ticlTrackstersPassthrough' 35 regressionAndPid = cms.bool(
True)
37 ticlCandidate = _ticlCandidateProducer.clone()
38 mtdSoA = _mtdSoAProducer.clone()
40 pfTICL = _pfTICLProducer.clone()
41 ticl_v5.toModify(pfTICL, ticlCandidateSrc = cms.InputTag(
'ticlCandidate'), isTICLv5 = cms.bool(
True), useTimingAverage=
True)
43 ticlPFTask = cms.Task(pfTICL)
45 ticlIterationsTask = cms.Task(
46 ticlCLUE3DHighStepTask
49 ticl_v5.toModify(ticlIterationsTask , func=
lambda x : x.add(ticlPassthroughStepTask))
50 ''' For future separate iterations 51 ,ticlCLUE3DEMStepTask, 52 ,ticlCLUE3DHADStepTask 55 ''' For future separate iterations 56 ticl_v5.toReplaceWith(ticlIterationsTask, ticlIterationsTask.copyAndExclude([ticlCLUE3DHighStepTask])) 59 from Configuration.ProcessModifiers.fastJetTICL_cff
import fastJetTICL
60 fastJetTICL.toModify(ticlIterationsTask, func=
lambda x : x.add(ticlFastJetStepTask))
62 ticlIterLabels = [
"CLUE3DHigh"]
63 ''' For future separate iterations 64 "CLUE3DEM", "CLUE3DHAD", 67 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
68 ticlTracksterLinksTask = cms.Task(ticlTracksterLinks, ticlSuperclusteringTask)
71 mergeTICLTask = cms.Task(ticlLayerTileTask
73 ,ticlTracksterMergeTask
75 ticl_v5.toReplaceWith(mergeTICLTask, mergeTICLTask.copyAndExclude([ticlTracksterMergeTask]))
76 ticl_v5.toModify(mergeTICLTask, func=
lambda x : x.add(ticlTracksterLinksTask))
78 ticlIterLabelsMerge = ticlIterLabels + [
"Merge"]
80 mtdSoATask = cms.Task(mtdSoA)
81 ticlCandidateTask = cms.Task(ticlCandidate)
83 iterTICLTask = cms.Task(mergeTICLTask,
85 ticl_v5.toModify(iterTICLTask, func=
lambda x : x.add(mtdSoATask, ticlCandidateTask))
87 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
91 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
93 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
94 ,ticlHFNoseTrkEMStepTask
96 ,ticlHFNoseTrkStepTask
97 ,ticlHFNoseHADStepTask
98 ,ticlHFNoseMIPStepTask