6def CTPSimulationCfg(flags):
7 from AthenaCommon.Logging import logging
8 log = logging.getLogger("CTPMCSimulationCfg")
9 acc = ComponentAccumulator()
10 inputlocations = dict(
11 jFexJetInput = "",
12 jFexLJetInput = "",
13 gFexJetInput = "",
14 gFexMETNCInput = "",
15 gFexMETRhoInput = "",
16 gFexMETJwoJInput = "",
17 eFexClusterInput = "",
18 eFexTauInput = "",
19 TopoInput = "L1TopoToCTPLocation",
20 LegacyTopoInput = "L1TopoLegacyToCTPLocation",
21 )
22 if not flags.Trigger.enableL1MuonPhase1:
23 inputlocations["MuctpiInput"] = ""
24 acc.addEventAlgo(CompFactory.LVL1CTP.CTPSimulation("CTPSimulation",
25 UseEDMxAOD = flags.Trigger.CTP.UseEDMxAOD,
26 DoL1Topo = flags.Trigger.L1.doTopo,
27 DoL1TopoLegacy = False,
28
29 DoL1CaloLegacy = flags.Trigger.enableL1CaloLegacy,
30
31 DoZDC = flags.Trigger.doZDC,
32 DoTRT = flags.Trigger.doTRT,
33 ForceBunchGroupPattern = False if flags.Beam.Type is BeamType.Cosmics else True,
34 **inputlocations
35 ))
36 log.info("Not all part of CTP simulation are enabled yet")
37
38 roib = CompFactory.ROIB.RoIBuilder("RoIBuilder",
39 DoCalo = flags.Trigger.enableL1CaloLegacy,
40 DoMuon = False)
41 acc.addEventAlgo(roib)
42 return acc