ATLAS Offline Software
FilledBunchFilterToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaCommon.Logging import logging
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 from AthenaMonitoring.DQConfigFlags import DQDataType
8 
9 def FilledBunchFilterToolCfg(flags: AthConfigFlags):
10  fbft_local_logger = logging.getLogger('FilledBunchFilterToolCfg')
11  fbft_local_logger.debug('Configuring FilledBunchFilterTool')
12  result=ComponentAccumulator()
13 
14  if (flags.DQ.disableFilledBunchFilter
15  or flags.Input.isMC
16  or flags.DQ.DataType is not DQDataType.Collisions
17  or flags.Input.TriggerStream == 'CosmicCalo'):
18  fbft_local_logger.info('Filled bunch filter being configured to always return true')
19  result.setPrivateTools(CompFactory.DQDummyFilterTool())
20  return result
21  else:
22  fbft_local_logger.debug('Filled bunch filter being configured')
23  from LumiBlockComps.BunchCrossingCondAlgConfig import BunchCrossingCondAlgCfg
24  result.merge(BunchCrossingCondAlgCfg(flags))
25  result.setPrivateTools(CompFactory.DQFilledBunchFilterTool())
26  return result
python.FilledBunchFilterToolConfig.FilledBunchFilterToolCfg
def FilledBunchFilterToolCfg(AthConfigFlags flags)
Definition: FilledBunchFilterToolConfig.py:9
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.BunchCrossingCondAlgConfig.BunchCrossingCondAlgCfg
def BunchCrossingCondAlgCfg(flags)
Definition: BunchCrossingCondAlgConfig.py:8