ATLAS Offline Software
Loading...
Searching...
No Matches
CTPSimulationConfigFlags.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4from 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
7def 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
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
32if __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")