ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CTP
python
CTPSimulationConfigFlags.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.AthConfigFlags
import
AthConfigFlags
4
from
AthenaConfiguration.Enums
import
LHCPeriod
5
6
# For the case of the ZDC CI tests, we do not want to use xAOD::CTPResult and/or the CTP ROB
7
def
zdcOnly
(flags):
8
return
(
9
flags.Detector.GeometryZDC
and
10
not
flags.Detector.GeometryAFP
and
11
not
flags.Detector.GeometryALFA
and
12
not
flags.Detector.GeometryLucid
and
13
not
flags.Detector.GeometryMDT
and
14
not
flags.Detector.GeometryMM
and
15
not
flags.Detector.GeometryMuon
16
)
17
18
def
createTrigCTPConfigFlags
():
19
flags = AthConfigFlags()
20
21
flags.addFlag(
'Trigger.CTP.UseEDMxAOD'
,
lambda
flags:
True
if
(flags.GeoModel.Run >= LHCPeriod.Run3
and
not
flags.Trigger.doHLT
and
not
zdcOnly
(flags))
else
False
,
22
help=
'Use xAOD EDM (xAOD::CTPResult) instead of Run 2 EDM (ROIB::CTP_RDO)'
23
)
24
25
flags.addFlag(
'Trigger.CTP.UseRoibROB'
,
lambda
flags:
False
if
(flags.GeoModel.Run >= LHCPeriod.Run3
and
not
flags.Trigger.doHLT
and
not
zdcOnly
(flags))
else
True
,
26
help=
'Use ROIB ROB which includes only L1A bunch information, or CTP ROB with information about all bunches in the readout window (default window of +/-1 bunch around L1A bunch for Run 3).'
27
)
28
29
return
flags
30
31
32
if
__name__ ==
"__main__"
:
33
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
34
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
35
36
flags = initConfigFlags()
37
flags.Input.Files = defaultTestFiles.RAW_RUN2
38
39
flags.lock()
40
flags.dump(
"CTP|Trigger"
)
python.CTPSimulationConfigFlags.createTrigCTPConfigFlags
createTrigCTPConfigFlags()
Definition
CTPSimulationConfigFlags.py:18
python.CTPSimulationConfigFlags.zdcOnly
zdcOnly(flags)
Definition
CTPSimulationConfigFlags.py:7
Generated on
for ATLAS Offline Software by
1.17.0