1 import FWCore.ParameterSet.Config
as cms
4 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp3')
5 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
7 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.JsonMappingFile = cms.FileInPath(
"L1Trigger/L1THGCal/data/hgcal_trigger_link_mapping_120links_v1.json")
9 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.JsonMappingFile = cms.FileInPath(
"L1Trigger/L1THGCal/data/hgcal_trigger_link_mapping_72links_v2.json")
11 raise RuntimeError(
'{} Stage 1 input links is not supported. Supported options are 72 or 120 links'.
format(stage1links))
15 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp2')
16 if links==
'signaldriven':
17 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_V11_decentralized_signaldriven_0.txt' 18 elif links==
'pudriven':
19 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_V11_decentralized_march20_0.txt' 21 raise RuntimeError(
'Unknown links mapping "{}". Options are "signaldriven" or "pudriven".'.
format(links))
22 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
23 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorModuleSize = cms.uint32(6)
24 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_V11_decentralized_march20_2.txt")
25 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
26 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
27 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorLinksPerModule = cms.uint32(2)
32 if links==
'signaldriven':
33 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_decentralized_signaldriven_0.txt' 34 elif links==
'pudriven':
35 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_decentralized_jun19_0.txt' 37 raise RuntimeError(
'Unknown links mapping "{}". Options are "signaldriven" or "pudriven".'.
format(links))
38 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp2')
39 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
40 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorModuleSize = cms.uint32(6)
41 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_V9_decentralized_jun19_0.txt")
42 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
43 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
44 process.l1tHGCalTriggerGeometryESProducer.TriggerGeometry.ScintillatorLinksPerModule = cms.uint32(2)
def custom_geometry_V11_Imp3(process, stage1links=120)
def custom_geometry_V10(process, links='signaldriven')
def custom_geometry_V11_Imp2(process, links='signaldriven')