1 import FWCore.ParameterSet.Config
as cms
4 process.hgcalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp3')
5 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
7 process.hgcalTriggerGeometryESProducer.TriggerGeometry.JsonMappingFile = cms.FileInPath(
"L1Trigger/L1THGCal/data/hgcal_trigger_link_mapping_120links_v1.json")
9 process.hgcalTriggerGeometryESProducer.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.hgcalTriggerGeometryESProducer.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.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
23 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorModuleSize = cms.uint32(6)
24 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_V11_decentralized_march20_2.txt")
25 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
26 process.hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
27 process.hgcalTriggerGeometryESProducer.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.hgcalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp2')
39 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
40 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorModuleSize = cms.uint32(6)
41 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_V9_decentralized_jun19_0.txt")
42 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
43 process.hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
44 process.hgcalTriggerGeometryESProducer.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')