6def CTPSimulationCfg(flags):
7 from AthenaCommon.Logging import logging
8 log = logging.getLogger("CTPMCSimulationCfg")
9 acc = ComponentAccumulator()
10 acc.addEventAlgo(CompFactory.LVL1CTP.CTPSimulation("CTPSimulation",
11 UseEDMxAOD = flags.Trigger.CTP.UseEDMxAOD,
12 DoL1Topo = flags.Trigger.L1.doTopo,
13 DoL1TopoLegacy = False,
14
15 DoL1CaloLegacy = flags.Trigger.enableL1CaloLegacy,
16
17 jFexJetInput = "",
18 jFexLJetInput = "",
19 gFexJetInput = "",
20 gFexMETNCInput = "",
21 gFexMETRhoInput = "",
22 gFexMETJwoJInput = "",
23 eFexClusterInput = "",
24 eFexTauInput = "",
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
30 ))
31 log.info("Not all part of CTP simulation are enabled yet")
32
33 roib = CompFactory.ROIB.RoIBuilder("RoIBuilder",
34 DoCalo = flags.Trigger.enableL1CaloLegacy,
35 DoMuon = False)
36 acc.addEventAlgo(roib)
37 return acc