CMS 3D CMS Logo

iterativeTICL_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 from RecoHGCal.TICL.MIPStep_cff import *
7 from RecoHGCal.TICL.TrkStep_cff import *
8 from RecoHGCal.TICL.EMStep_cff import *
9 from RecoHGCal.TICL.HADStep_cff import *
10 from RecoHGCal.TICL.CLUE3DEM_cff import *
11 from RecoHGCal.TICL.CLUE3DHAD_cff import *
13 
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
18 
19 from RecoHGCal.TICL.tracksterLinksProducer_cfi import tracksterLinksProducer as _tracksterLinksProducer
21 from RecoHGCal.TICL.ticlCandidateProducer_cfi import ticlCandidateProducer as _ticlCandidateProducer
22 
23 from RecoHGCal.TICL.mtdSoAProducer_cfi import mtdSoAProducer as _mtdSoAProducer
24 
25 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
26 
27 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
28 
29 ticlTrackstersMerge = _trackstersMergeProducer.clone()
30 ticlTracksterLinks = _tracksterLinksProducer.clone(
31  tracksters_collections = cms.VInputTag(
32  'ticlTrackstersCLUE3DHigh',
33  'ticlTrackstersPassthrough'
34  ),
35  regressionAndPid = cms.bool(True)
36 )
37 ticlCandidate = _ticlCandidateProducer.clone()
38 mtdSoA = _mtdSoAProducer.clone()
39 
40 pfTICL = _pfTICLProducer.clone()
41 ticl_v5.toModify(pfTICL, ticlCandidateSrc = cms.InputTag('ticlCandidate'), isTICLv5 = cms.bool(True), useTimingAverage=True)
42 
43 ticlPFTask = cms.Task(pfTICL)
44 
45 ticlIterationsTask = cms.Task(
46  ticlCLUE3DHighStepTask
47 )
48 
49 ticl_v5.toModify(ticlIterationsTask , func=lambda x : x.add(ticlPassthroughStepTask))
50 ''' For future separate iterations
51 ,ticlCLUE3DEMStepTask,
52 ,ticlCLUE3DHADStepTask
53  '''
54 
55 ''' For future separate iterations
56 ticl_v5.toReplaceWith(ticlIterationsTask, ticlIterationsTask.copyAndExclude([ticlCLUE3DHighStepTask]))
57 '''
58 
59 from Configuration.ProcessModifiers.fastJetTICL_cff import fastJetTICL
60 fastJetTICL.toModify(ticlIterationsTask, func=lambda x : x.add(ticlFastJetStepTask))
61 
62 ticlIterLabels = ["CLUE3DHigh"]
63 ''' For future separate iterations
64 "CLUE3DEM", "CLUE3DHAD",
65 '''
66 
67 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
68 ticlTracksterLinksTask = cms.Task(ticlTracksterLinks, ticlSuperclusteringTask)
69 
70 
71 mergeTICLTask = cms.Task(ticlLayerTileTask
72  ,ticlIterationsTask
73  ,ticlTracksterMergeTask
74 )
75 ticl_v5.toReplaceWith(mergeTICLTask, mergeTICLTask.copyAndExclude([ticlTracksterMergeTask]))
76 ticl_v5.toModify(mergeTICLTask, func=lambda x : x.add(ticlTracksterLinksTask))
77 
78 ticlIterLabelsMerge = ticlIterLabels + ["Merge"]
79 
80 mtdSoATask = cms.Task(mtdSoA)
81 ticlCandidateTask = cms.Task(ticlCandidate)
82 
83 iterTICLTask = cms.Task(mergeTICLTask,
84  ticlPFTask)
85 ticl_v5.toModify(iterTICLTask, func=lambda x : x.add(mtdSoATask, ticlCandidateTask))
86 
87 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
88  detector = 'HFNose'
89 )
90 
91 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
92 
93 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
94  ,ticlHFNoseTrkEMStepTask
95  ,ticlHFNoseEMStepTask
96  ,ticlHFNoseTrkStepTask
97  ,ticlHFNoseHADStepTask
98  ,ticlHFNoseMIPStepTask
99 )