ATLAS Offline Software
Loading...
Searching...
No Matches
DataQualityToolsConfig.py
Go to the documentation of this file.
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3#
4
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaMonitoring.DQConfigFlags import DQDataType
8 from .DQTLumiMonAlg import DQTLumiMonAlgConfig
9 from .DQTBackgroundMon import DQTBackgroundMonAlgConfig
10 from .DQTDetSynchMonAlg import DQTDetSynchMonAlgConfig
11 from .DQTGlobalWZFinderAlg import DQTGlobalWZFinderAlgConfig
12
13 result = ComponentAccumulator()
14
15 # the following should not run in RAW to ESD, if we're in two-step
16 if flags.DQ.Environment != 'tier0Raw':
17 if flags.DQ.DataType is not DQDataType.Cosmics:
18 result.merge(DQTLumiMonAlgConfig(flags))
19 result.merge(DQTGlobalWZFinderAlgConfig(flags))
20
21 # only when input is RAW
22 if flags.DQ.Environment in ('online', 'tier0', 'tier0Raw'):
23 result.merge(DQTDetSynchMonAlgConfig(flags))
24 result.merge(DQTBackgroundMonAlgConfig(flags))
25
26 return result