5 if links==
'signaldriven':
6 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_decentralized_signaldriven_0.txt' 7 elif links==
'pudriven':
8 links_mapping =
'L1Trigger/L1THGCal/data/links_mapping_decentralized_jun19_0.txt' 10 raise RuntimeError(
'Unknown links mapping "{}". Options are "signaldriven" or "pudriven".'.
format(links))
12 process.hgcalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp1')
13 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TCellsMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/triggercell_mapping_8inch_aligned_192_432_V9_1.txt")
14 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TWafersMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/wafer_mapping_V9_2.txt")
15 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_decentralized_jun19_0.txt")
16 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
17 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TCellNeighborsMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/triggercell_neighbor_mapping_8inch_aligned_192_432_0.txt")
18 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TCellsSciMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/triggercell_mapping_sci_2x2_12x12_V9_0.txt")
19 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TCellNeighborsSciMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/triggercell_neighbor_mapping_sci_2x2_12x12_V9_0.txt")
20 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorWafersPerModule = cms.uint32(1)
21 process.hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
22 elif implementation==2:
23 process.hgcalTriggerGeometryESProducer.TriggerGeometry.TriggerGeometryName = cms.string(
'HGCalTriggerGeometryV9Imp2')
24 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorTriggerCellSize = cms.uint32(2)
25 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorModuleSize = cms.uint32(6)
26 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TModulesMapping = cms.FileInPath(
"L1Trigger/L1THGCal/data/panel_mapping_V9_decentralized_jun19_0.txt")
27 process.hgcalTriggerGeometryESProducer.TriggerGeometry.L1TLinksMapping = cms.FileInPath(links_mapping)
28 process.hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedModules = cms.vuint32(0)
29 process.hgcalTriggerGeometryESProducer.TriggerGeometry.ScintillatorLinksPerModule = cms.uint32(2)
def custom_geometry_decentralized_V9(process, links='signaldriven', implementation=2)