ATLAS Offline Software
Loading...
Searching...
No Matches
BeamSpotConditionsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6
7def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs):
8 """Configure the BeamSpotCondAlg."""
9 acc = ComponentAccumulator()
10
11 from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline,addFolders
12 if flags.Common.doExpressProcessing :
13 acc.merge(addFolders(flags, "/Indet/Onl/Beampos<key>/Indet/Beampos</key>","INDET_ONL",
14 className="AthenaAttributeList"))
15 else :
16 acc.merge(addFoldersSplitOnline(flags, "INDET","/Indet/Onl/Beampos",
17 "/Indet/Beampos", className="AthenaAttributeList",
18 extensible=flags.Trigger.doHLT and flags.Trigger.Online.isPartition))
19
20 BeamSpotCondAlg = CompFactory.BeamSpotCondAlg
21 acc.addCondAlgo(BeamSpotCondAlg(name, **kwargs))
22
23 return acc
BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs)