3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
7 from AthenaCommon.Logging
import logging
8 log = logging.getLogger(
"CTPMCSimulationCfg")
10 acc.addEventAlgo(CompFactory.LVL1CTP.CTPSimulation(
"CTPSimulation",
11 UseEDMxAOD = flags.Trigger.CTP.UseEDMxAOD,
12 DoL1Topo = flags.Trigger.L1.doTopo,
13 DoL1TopoLegacy =
False,
15 DoL1CaloLegacy = flags.Trigger.enableL1CaloLegacy,
22 gFexMETJwoJInput =
"",
23 eFexClusterInput =
"",
25 TopoInput =
"L1TopoToCTPLocation",
26 LegacyTopoInput =
"L1TopoLegacyToCTPLocation",
27 DoZDC = flags.Trigger.doZDC,
28 DoTRT = flags.Trigger.doTRT,
29 ForceBunchGroupPattern =
False if flags.Beam.Type
is BeamType.Cosmics
else True
31 log.info(
"Not all part of CTP simulation are enabled yet")
33 roib = CompFactory.ROIB.RoIBuilder(
"RoIBuilder",
34 DoCalo = flags.Trigger.enableL1CaloLegacy,
36 acc.addEventAlgo(roib)