ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecBackground
RecBackgroundAlgs
python
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.
BackgroundAlgsConfig.BackgroundAlgsCfg
BackgroundAlgsCfg(flags)
Definition
BackgroundAlgsConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0