ATLAS Offline Software
Loading...
Searching...
No Matches
SolenoidalIntersectorConfig.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 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
22if __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()
SolenoidalIntersectorCfg(flags, name='SolenoidalIntersector', **kwargs)