Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-10 23:56:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from ..modules.hltFilteredLayerClustersCLUE3DHigh_cfi import *
0004 from ..modules.hltHgcalDigis_cfi import *
0005 from ..modules.hltHgcalLayerClustersEE_cfi import *
0006 from ..modules.hltHgcalLayerClustersHSci_cfi import *
0007 from ..modules.hltHgcalLayerClustersHSi_cfi import *
0008 from ..modules.hltMergeLayerClusters_cfi import *
0009 from ..modules.hltHGCalRecHit_cfi import *
0010 from ..modules.hltHGCalUncalibRecHit_cfi import *
0011 from ..modules.hltParticleFlowClusterHGCalFromTICLUnseeded_cfi import *
0012 from ..modules.hltParticleFlowRecHitHGC_cfi import *
0013 from ..modules.hltParticleFlowSuperClusterHGCalFromTICLUnseeded_cfi import *
0014 from ..modules.hltTiclLayerTileProducer_cfi import *
0015 from ..modules.hltTiclSeedingGlobal_cfi import *
0016 from ..modules.hltTiclTrackstersCLUE3DHigh_cfi import *
0017 from ..modules.hltHgcalSoARecHitsProducer_cfi import *
0018 from ..modules.hltHgcalSoARecHitsLayerClustersProducer_cfi import *
0019 from ..modules.hltHgcalSoALayerClustersProducer_cfi import *
0020 from ..modules.hltHgcalLayerClustersFromSoAProducer_cfi import *
0021 from ..modules.hltTiclTracksterLinks_cfi import *
0022 # Barrel layer clusters
0023 from ..modules.hltBarrelLayerClustersEB_cfi import *
0024 from ..modules.hltBarrelLayerClustersHB_cfi import *
0025 _HgcalLocalRecoUnseededSequence = cms.Sequence(hltHgcalDigis+hltHGCalUncalibRecHit+
0026                                                hltHGCalRecHit+hltParticleFlowRecHitHGC+
0027                                                hltHgcalLayerClustersEE+
0028                                                hltHgcalLayerClustersHSci+
0029                                                hltHgcalLayerClustersHSi+
0030                                                hltMergeLayerClusters)
0031 
0032 _HgcalTICLPatternRecognitionUnseededSequence = cms.Sequence(hltFilteredLayerClustersCLUE3DHigh+
0033                                                             hltTiclSeedingGlobal+hltTiclLayerTileProducer+
0034                                                             hltTiclTrackstersCLUE3DHigh)
0035 
0036 _SuperclusteringUnseededSequence = cms.Sequence(hltParticleFlowClusterHGCalFromTICLUnseeded+
0037                                                 hltParticleFlowSuperClusterHGCalFromTICLUnseeded)
0038 
0039 # The baseline sequence
0040 HLTHgcalTiclPFClusteringForEgammaUnseededSequence = cms.Sequence(_HgcalLocalRecoUnseededSequence + _HgcalTICLPatternRecognitionUnseededSequence + _SuperclusteringUnseededSequence)
0041 
0042 # Alpaka
0043 from Configuration.ProcessModifiers.alpaka_cff import alpaka
0044 alpaka.toReplaceWith(_HgcalLocalRecoUnseededSequence, 
0045                      cms.Sequence(
0046                                   hltHgcalDigis
0047                                   + hltHGCalUncalibRecHit
0048                                   + hltHGCalRecHit+hltParticleFlowRecHitHGC
0049                                   + hltHgcalSoARecHitsProducer
0050                                   + hltHgcalSoARecHitsLayerClustersProducer
0051                                   + hltHgcalSoALayerClustersProducer
0052                                   + hltHgCalLayerClustersFromSoAProducer
0053                                   + hltHgcalLayerClustersHSci
0054                                   + hltHgcalLayerClustersHSi
0055                                   + hltMergeLayerClusters
0056                      ) 
0057 )
0058 
0059 # Use EGammaSuperClusterProducer at HLT in ticl v5
0060 hltTiclTracksterLinksSuperclusteringDNNUnseeded = hltTiclTracksterLinks.clone(
0061     linkingPSet = cms.PSet(
0062         type=cms.string("SuperClusteringDNN"),
0063         algo_verbosity=cms.int32(0),
0064         onnxModelPath = cms.FileInPath("RecoHGCal/TICL/data/superclustering/supercls_v2p1.onnx"),
0065         nnWorkingPoint=cms.double(0.3),
0066     ),
0067     tracksters_collections = [cms.InputTag("hltTiclTrackstersCLUE3DHigh")], # to be changed to ticlTrackstersCLUE3DEM once separate CLUE3D iterations are introduced
0068 )
0069 
0070 hltTiclTracksterLinksSuperclusteringMustacheUnseeded = hltTiclTracksterLinks.clone(
0071     linkingPSet = cms.PSet(
0072         type=cms.string("SuperClusteringMustache"),
0073         algo_verbosity=cms.int32(0)
0074     ),
0075     tracksters_collections = [cms.InputTag("hltTiclTrackstersCLUE3DHigh")], # to be changed to ticlTrackstersCLUE3DEM once separate CLUE3D iterations are introduced
0076 )
0077 
0078 from RecoHGCal.TICL.ticlEGammaSuperClusterProducer_cfi import ticlEGammaSuperClusterProducer as _ticlEGammaSuperClusterProducer
0079 hltTiclEGammaSuperClusterProducerUnseeded = _ticlEGammaSuperClusterProducer.clone(
0080     ticlSuperClusters = "hltTiclTracksterLinksSuperclusteringDNNUnseeded",
0081     ticlTrackstersEM = "hltTiclTrackstersCLUE3DHigh",
0082     layerClusters = "hltMergeLayerClusters"
0083 )
0084 
0085 # DNN
0086 from Configuration.ProcessModifiers.ticl_superclustering_dnn_cff import ticl_superclustering_dnn
0087 ticl_superclustering_dnn.toReplaceWith(_SuperclusteringUnseededSequence, 
0088                                        cms.Sequence(
0089                                                     hltTiclTracksterLinksSuperclusteringDNNUnseeded
0090                                                     + hltTiclEGammaSuperClusterProducerUnseeded
0091                                        )
0092 )
0093 
0094 # Ticl mustache
0095 from Configuration.ProcessModifiers.ticl_superclustering_mustache_ticl_cff import ticl_superclustering_mustache_ticl
0096 ticl_superclustering_mustache_ticl.toReplaceWith(_SuperclusteringUnseededSequence, 
0097                                                  cms.Sequence(
0098                                                               hltTiclTracksterLinksSuperclusteringMustacheUnseeded
0099                                                               + hltTiclEGammaSuperClusterProducerUnseeded
0100                                                  )
0101 )
0102 ticl_superclustering_mustache_ticl.toModify(hltTiclEGammaSuperClusterProducerUnseeded, 
0103                                             ticlSuperClusters=cms.InputTag("hltTiclTracksterLinksSuperclusteringMustacheUnseeded"),
0104                                             ticlTrackstersEM=cms.InputTag("hltTiclTrackstersCLUE3DHigh"),
0105                                             layerClusters=cms.InputTag("hltMergeLayerClusters"),
0106                                             enableRegression=cms.bool(False)
0107 )
0108 
0109 _HgcalLocalRecoUnseededSequence_barrel = _HgcalLocalRecoUnseededSequence.copy()
0110 _HgcalLocalRecoUnseededSequence_barrel += hltBarrelLayerClustersEB
0111 _HgcalLocalRecoUnseededSequence_barrel += hltBarrelLayerClustersHB
0112 
0113 from Configuration.ProcessModifiers.ticl_barrel_cff import ticl_barrel
0114 ticl_barrel.toReplaceWith(_HgcalLocalRecoUnseededSequence, _HgcalLocalRecoUnseededSequence_barrel)
0115