ATLAS Offline Software
Loading...
Searching...
No Matches
BackgroundAlgsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from LArCellRec.LArCollisionTimeConfig import LArCollisionTimeCfg
6
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.