CMS 3D CMS Logo

superclustering_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoHGCal.TICL.tracksterLinksProducer_cfi import tracksterLinksProducer as _tracksterLinksProducer
4 from RecoHGCal.TICL.ticlEGammaSuperClusterProducer_cfi import ticlEGammaSuperClusterProducer
6 
7 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
8 from Configuration.ProcessModifiers.ticl_superclustering_dnn_cff import ticl_superclustering_dnn
9 from Configuration.ProcessModifiers.ticl_superclustering_mustache_pf_cff import ticl_superclustering_mustache_pf
10 from Configuration.ProcessModifiers.ticl_superclustering_mustache_ticl_cff import ticl_superclustering_mustache_ticl
11 
12 ticlTracksterLinksSuperclusteringDNN = _tracksterLinksProducer.clone(
13  linkingPSet = cms.PSet(
14  type=cms.string("SuperClusteringDNN"),
15  algo_verbosity=cms.int32(0),
16  onnxModelPath = cms.FileInPath("RecoHGCal/TICL/data/superclustering/supercls_v2p1.onnx"),
17  nnWorkingPoint=cms.double(0.3),
18  ),
19  tracksters_collections = [cms.InputTag("ticlTrackstersCLUE3DHigh")], # to be changed to ticlTrackstersCLUE3DEM once separate CLUE3D iterations are introduced
20 )
21 
22 ticlTracksterLinksSuperclusteringMustache = _tracksterLinksProducer.clone(
23  linkingPSet = cms.PSet(
24  type=cms.string("SuperClusteringMustache"),
25  algo_verbosity=cms.int32(0)
26  ),
27  tracksters_collections = [cms.InputTag("ticlTrackstersCLUE3DHigh")], # to be changed to ticlTrackstersCLUE3DEM once separate CLUE3D iterations are introduced
28 )
29 
30 
31 ticlSuperclusteringTask = cms.Task()
32 
33 # DNN
34 _dnn_task = cms.Task(ticlTracksterLinksSuperclusteringDNN)
35 ticl_superclustering_dnn.toReplaceWith(ticlSuperclusteringTask, _dnn_task)
36 ticl_superclustering_dnn.toModify(ticlEGammaSuperClusterProducer, ticlSuperClusters=cms.InputTag("ticlTracksterLinksSuperclusteringDNN"))
37 ticl_superclustering_dnn.toReplaceWith(particleFlowSuperClusterHGCal, ticlEGammaSuperClusterProducer)
38 
39 # Mustache-TICL
40 _mustache_ticl_task = cms.Task(ticlTracksterLinksSuperclusteringMustache)
41 ticl_superclustering_mustache_ticl.toReplaceWith(ticlSuperclusteringTask, _mustache_ticl_task)
42 ticl_superclustering_mustache_ticl.toModify(ticlEGammaSuperClusterProducer,
43  ticlSuperClusters=cms.InputTag("ticlTracksterLinksSuperclusteringMustache"),
44  enableRegression=cms.bool(False))
45 ticl_superclustering_mustache_ticl.toReplaceWith(particleFlowSuperClusterHGCal, ticlEGammaSuperClusterProducer)
46 
47 # Mustache-PF
48 # (no changes to make)