ATLAS Offline Software
Loading...
Searching...
No Matches
python.CTPSimulationConfig Namespace Reference

Functions

 CTPSimulationCfg (flags)

Function Documentation

◆ CTPSimulationCfg()

python.CTPSimulationConfig.CTPSimulationCfg ( flags)

Definition at line 6 of file CTPSimulationConfig.py.

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 #Using same as Phase1L1Topo for now, but it should be changed in the future
15 DoL1CaloLegacy = flags.Trigger.enableL1CaloLegacy,
16 #TODO enable when input are also simulatedDetectors (and remove message)
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 #to allow simulation of cosmics triggers in MC
30 ))
31 log.info("Not all part of CTP simulation are enabled yet")
32 #Still needed for HLTSeeding, see ATR-29954
33 roib = CompFactory.ROIB.RoIBuilder("RoIBuilder",
34 DoCalo = flags.Trigger.enableL1CaloLegacy,
35 DoMuon = False) # not needed for L1MuonPhase1
36 acc.addEventAlgo(roib)
37 return acc