ATLAS Offline Software
BeamSpotConditionsConfig.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.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs):
8  """Configure the BeamSpotCondAlg."""
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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.BeamSpotConditionsConfig.BeamSpotCondAlgCfg
def BeamSpotCondAlgCfg(flags, name="BeamSpotCondAlg", **kwargs)
Definition: BeamSpotConditionsConfig.py:7
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:153
BeamSpotCondAlg
Definition: BeamSpotCondAlg.h:18