ATLAS Offline Software
SolenoidalIntersectorConfig.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 SolenoidalIntersectorCfg(flags, name='SolenoidalIntersector', **kwargs):
8  result = ComponentAccumulator()
9 
10  cls = CompFactory.Trk.SolenoidParametrizationCondAlg # TrkExSolenoidalIntersector
11  condalg = cls (name='SolenoidParametrizationCondAlg', AtlasFieldCacheCondObj = 'fieldCondObj',
12  WriteKey = 'SolenoidParametrization')
13  result.addCondAlgo (condalg)
14 
15  kwargs.setdefault ('SolenoidParameterizationKey', 'SolenoidParametrization')
16  cls = CompFactory.Trk.SolenoidalIntersector # TrkExSolenoidalIntersector
17  tool = cls (name, **kwargs)
18  result.setPrivateTools (tool)
19  return result
20 
21 
22 if __name__ == "__main__":
23  from AthenaConfiguration.AllConfigFlags import initConfigFlags
24  flags = initConfigFlags()
25 
26  acc = SolenoidalIntersectorCfg (flags)
27  print ('private tools:', acc.popPrivateTools())
28  acc.printConfig (summariseProps=True)
29  acc.wasMerged()
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.SolenoidalIntersectorConfig.SolenoidalIntersectorCfg
def SolenoidalIntersectorCfg(flags, name='SolenoidalIntersector', **kwargs)
Definition: SolenoidalIntersectorConfig.py:7