CMS 3D CMS Logo

l1tHGCalTriggerGeometryESProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
4 
5 CEE_LAYERS = 28
6 TOTAL_LAYERS = 50
7 
8 CEE_LAYERS_V16 = 26
9 TOTAL_LAYERS_V16 = 47
10 
11 def disconnected_layers(ecal_layers):
12  return [l for l in range(1,ecal_layers+1) if l%2==0]
13 
14 
15 geometry = cms.PSet( TriggerGeometryName = cms.string('HGCalTriggerGeometryV9Imp2'),
16  L1TModulesMapping = cms.FileInPath("L1Trigger/L1THGCal/data/panel_mapping_V9_decentralized_jun19_0.txt"),
17  L1TLinksMapping = cms.FileInPath('L1Trigger/L1THGCal/data/links_mapping_decentralized_signaldriven_0.txt'),
18  ScintillatorTriggerCellSize = cms.uint32(2),
19  ScintillatorModuleSize = cms.uint32(6),
20  ScintillatorLinksPerModule = cms.uint32(2),
21  DisconnectedModules = cms.vuint32(0),
22  DisconnectedLayers = cms.vuint32(disconnected_layers(CEE_LAYERS))
23  )
24 
25 phase2_hgcalV16.toModify(geometry,
26  DisconnectedLayers = cms.vuint32(disconnected_layers(CEE_LAYERS_V16))
27  )
28 
29 l1tHGCalTriggerGeometryESProducer = cms.ESProducer(
30  'HGCalTriggerGeometryESProducer',
31  TriggerGeometry = geometry
32 )