ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CTP
python
CTPSimulationConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaConfiguration.Enums
import
BeamType
6
def
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
#Using same as Phase1L1Topo for now, but it should be changed in the future
29
DoL1CaloLegacy = flags.Trigger.enableL1CaloLegacy,
30
#TODO enable when input are also simulatedDetectors (and remove message)
31
DoZDC = flags.Trigger.doZDC,
32
DoTRT = flags.Trigger.doTRT,
33
ForceBunchGroupPattern =
False
if
flags.Beam.Type
is
BeamType.Cosmics
else
True
,
#to allow simulation of cosmics triggers in MC
34
**inputlocations
35
))
36
log.info(
"Not all part of CTP simulation are enabled yet"
)
37
#Still needed for HLTSeeding, see ATR-29954
38
roib = CompFactory.ROIB.RoIBuilder(
"RoIBuilder"
,
39
DoCalo = flags.Trigger.enableL1CaloLegacy,
40
DoMuon =
False
)
# not needed for L1MuonPhase1
41
acc.addEventAlgo(roib)
42
return
acc
python.CTPSimulationConfig.CTPSimulationCfg
CTPSimulationCfg(flags)
Definition
CTPSimulationConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0