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
15 from RecoHGCal.TICL.trackstersMergeProducerV3_cfi import trackstersMergeProducerV3 as _trackstersMergeProducerV3
17 
18 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
19 
20 ticlTrackstersMerge = _trackstersMergeProducer.clone()
21 ticlTrackstersMergeV3 = _trackstersMergeProducerV3.clone()
22 
23 pfTICL = _pfTICLProducer.clone()
24 ticlPFTask = cms.Task(pfTICL)
25 
26 ticlIterationsTask = cms.Task(
27  ticlCLUE3DHighStepTask
28 )
29 
30 from Configuration.ProcessModifiers.clue3D_cff import clue3D
31 clue3D.toModify(ticlIterationsTask, func=lambda x : x.add(ticlCLUE3DHighStepTask,ticlCLUE3DLowStepTask))
32 
33 from Configuration.ProcessModifiers.fastJetTICL_cff import fastJetTICL
34 fastJetTICL.toModify(ticlIterationsTask, func=lambda x : x.add(ticlFastJetStepTask))
35 
36 from Configuration.ProcessModifiers.ticl_v3_cff import ticl_v3
37 ticl_v3.toModify(ticlIterationsTask, func=lambda x : x.add( ticlTrkEMStepTask
38  ,ticlEMStepTask
39  ,ticlTrkStepTask
40  ,ticlHADStepTask) )
41 ticlIterLabels = [_step.itername.value() for _iteration in ticlIterationsTask for _step in _iteration if (_step._TypedParameterizable__type == "TrackstersProducer")]
42 
43 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
44 ticlTracksterMergeTaskV3 = cms.Task(ticlTrackstersMergeV3)
45 
46 ticl_v3.toModify(pfTICL, ticlCandidateSrc = "ticlTrackstersMergeV3")
47 
48 mergeTICLTask = cms.Task(ticlLayerTileTask
49  ,ticlIterationsTask
50  ,ticlTracksterMergeTask
51 )
52 
53 ticl_v3.toModify(mergeTICLTask, func=lambda x : x.add(ticlTracksterMergeTaskV3))
54 ticlIterLabelsMerge = ticlIterLabels + ["Merge"]
55 
56 ticlIterLabelsMergeV3 = ticlIterLabels + ["MergeV3"]
57 ticl_v3.toModify(ticlIterLabelsMerge, func=lambda x : x.extend(ticlIterLabelsMergeV3))
58 
59 iterTICLTask = cms.Task(mergeTICLTask
60  ,ticlPFTask)
61 
62 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
63  detector = 'HFNose'
64 )
65 
66 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
67 
68 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
69  ,ticlHFNoseTrkEMStepTask
70  ,ticlHFNoseEMStepTask
71  ,ticlHFNoseTrkStepTask
72  ,ticlHFNoseHADStepTask
73  ,ticlHFNoseMIPStepTask
74 )