CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
11 from RecoHGCal.TICL.ticlLayerTileProducer_cfi import ticlLayerTileProducer
12 from RecoHGCal.TICL.pfTICLProducer_cfi import pfTICLProducer as _pfTICLProducer
13 from RecoHGCal.TICL.trackstersMergeProducer_cfi import trackstersMergeProducer as _trackstersMergeProducer
14 
15 ticlLayerTileTask = cms.Task(ticlLayerTileProducer)
16 
17 ticlTrackstersMerge = _trackstersMergeProducer.clone()
18 ticlTracksterMergeTask = cms.Task(ticlTrackstersMerge)
19 
20 
21 pfTICL = _pfTICLProducer.clone()
22 ticlPFTask = cms.Task(pfTICL)
23 
24 ticlIterationsTask = cms.Task(
25  ticlTrkEMStepTask
26  ,ticlEMStepTask
27  ,ticlTrkStepTask
28  ,ticlHADStepTask
29 )
30 
31 from Configuration.ProcessModifiers.clue3D_cff import clue3D
32 clue3D.toModify(ticlIterationsTask, func=lambda x : x.add(ticlCLUE3DHighStepTask,ticlCLUE3DLowStepTask))
33 
34 ticlIterLabels = [_step.itername.value() for _iteration in ticlIterationsTask for _step in _iteration if (_step._TypedParameterizable__type == "TrackstersProducer")]
35 
36 iterTICLTask = cms.Task(ticlLayerTileTask
37  ,ticlIterationsTask
38  ,ticlTracksterMergeTask
39  ,ticlPFTask
40 )
41 ticlIterLabelsMerge = ticlIterLabels + ["Merge"]
42 
43 ticlLayerTileHFNose = ticlLayerTileProducer.clone(
44  detector = 'HFNose'
45 )
46 
47 ticlLayerTileHFNoseTask = cms.Task(ticlLayerTileHFNose)
48 
49 iterHFNoseTICLTask = cms.Task(ticlLayerTileHFNoseTask
50  ,ticlHFNoseTrkEMStepTask
51  ,ticlHFNoseEMStepTask
52  ,ticlHFNoseTrkStepTask
53  ,ticlHFNoseHADStepTask
54  ,ticlHFNoseMIPStepTask
55 )