Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-02-08 23:25:56

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
0004 
0005 CEE_LAYERS = 28
0006 TOTAL_LAYERS = 50
0007 
0008 CEE_LAYERS_V16 = 26
0009 TOTAL_LAYERS_V16 = 47 
0010 
0011 def disconnected_layers(ecal_layers):
0012     return [l for l in range(1,ecal_layers+1) if l%2==0]
0013 
0014 
0015 geometry = cms.PSet( TriggerGeometryName = cms.string('HGCalTriggerGeometryV9Imp2'),
0016                      L1TModulesMapping = cms.FileInPath("L1Trigger/L1THGCal/data/panel_mapping_V9_decentralized_jun19_0.txt"),
0017                      L1TLinksMapping = cms.FileInPath('L1Trigger/L1THGCal/data/links_mapping_decentralized_signaldriven_0.txt'),
0018                      ScintillatorTriggerCellSize = cms.uint32(2),
0019                      ScintillatorModuleSize = cms.uint32(6),
0020                      ScintillatorLinksPerModule = cms.uint32(2),
0021                      DisconnectedModules = cms.vuint32(0),
0022                      DisconnectedLayers = cms.vuint32(disconnected_layers(CEE_LAYERS))
0023                    )
0024 
0025 phase2_hgcalV16.toModify(geometry, 
0026                          DisconnectedLayers = cms.vuint32(disconnected_layers(CEE_LAYERS_V16))
0027                          )
0028 
0029 l1tHGCalTriggerGeometryESProducer = cms.ESProducer(
0030     'HGCalTriggerGeometryESProducer',
0031     TriggerGeometry = geometry
0032 )