1 import FWCore.ParameterSet.Config
as cms
3 from RecoHGCal.TICL.tracksterLinksProducer_cfi
import tracksterLinksProducer
as _tracksterLinksProducer
4 from RecoHGCal.TICL.ticlEGammaSuperClusterProducer_cfi
import ticlEGammaSuperClusterProducer
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
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),
19 tracksters_collections = [cms.InputTag(
"ticlTrackstersCLUE3DHigh")],
22 ticlTracksterLinksSuperclusteringMustache = _tracksterLinksProducer.clone(
23 linkingPSet = cms.PSet(
24 type=cms.string(
"SuperClusteringMustache"),
25 algo_verbosity=cms.int32(0)
27 tracksters_collections = [cms.InputTag(
"ticlTrackstersCLUE3DHigh")],
31 ticlSuperclusteringTask = cms.Task()
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)
40 _mustache_ticl_task = cms.Task(ticlTracksterLinksSuperclusteringMustache)
41 ticl_superclustering_mustache_ticl.toReplaceWith(ticlSuperclusteringTask, _mustache_ticl_task)
42 ticl_superclustering_mustache_ticl.toModify(ticlEGammaSuperClusterProducer, ticlSuperClusters=cms.InputTag(
"ticlTracksterLinksSuperclusteringMustache"))
43 ticl_superclustering_mustache_ticl.toReplaceWith(particleFlowSuperClusterHGCal, ticlEGammaSuperClusterProducer)