ATLAS Offline Software
BackgroundAlgsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from LArCellRec.LArCollisionTimeConfig import LArCollisionTimeCfg
6 
7 def BackgroundAlgsCfg(flags):
8 
9  result=ComponentAccumulator()
10 
11  result.merge(LArCollisionTimeCfg(flags))
12  from AthenaConfiguration.Enums import BeamType
13  if flags.Beam.Type is BeamType.Collisions:
14  from MuonCombinedConfig.MuonCombinedRecToolsConfig import MuonSegmentSelectionToolCfg
15  result.addEventAlgo(CompFactory.BeamBackgroundFiller(SegmentSelector = result.popToolsAndMerge(MuonSegmentSelectionToolCfg(flags))))
16  result.addEventAlgo(CompFactory.BcmCollisionTimeAlg())
17 
18  result.addEventAlgo(CompFactory.BackgroundWordFiller(IsMC=flags.Input.isMC))
19 
20  return result
21 
22 #No self-test __main__ here because these algos depend on many event data objects not stored in ESD, therefore they can't run stand-alone.
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonCombinedRecToolsConfig.MuonSegmentSelectionToolCfg
def MuonSegmentSelectionToolCfg(flags, name="MuonSegmentSelectionTool", **kwargs)
Definition: MuonCombinedRecToolsConfig.py:1041
BackgroundAlgsConfig.BackgroundAlgsCfg
def BackgroundAlgsCfg(flags)
Definition: BackgroundAlgsConfig.py:7
LArCollisionTimeConfig.LArCollisionTimeCfg
def LArCollisionTimeCfg(configFlags, cutIteration=False)
Definition: LArCollisionTimeConfig.py:8