2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if flags.BField.configuredSolenoidFieldScale>160/7730
and flags.BField.configuredSolenoidFieldScale<1:
9 kwargs.setdefault(
"UseSoleCurrent", flags.BField.configuredSolenoidFieldScale * 7730)
10 result.addService(CompFactory.StandardFieldSvc(name, **kwargs), primary=
True)
19 kwargs.setdefault(
"UseMagFieldSvc",
True)
20 result.addService(CompFactory.StandardFieldSvc(name, **kwargs), primary=
True)
26 from ForwardRegionProperties.ForwardRegionPropertiesConfig
import ForwardRegionPropertiesCfg
28 result.addService(CompFactory.MagField.ForwardRegionFieldSvc(name, **kwargs),
35 kwargs.setdefault(
"MagneticFieldSvc",
36 result.getPrimaryAndMerge(
41 MQXA_DataFile=
"MQXA_NOMINAL.dat")).name)
43 result.addService(fieldSvc, primary=
True)
49 kwargs.setdefault(
"MagneticFieldSvc",
50 result.getPrimaryAndMerge(
55 MQXA_DataFile=
"MQXA_NOMINAL.dat")).name)
57 result.addService(fieldSvc, primary=
True)
63 kwargs.setdefault(
"MagneticFieldSvc",
64 result.getPrimaryAndMerge(
69 MQXA_DataFile=
"MQXA_NOMINAL.dat")).name)
71 result.addService(fieldSvc, primary=
True)
77 kwargs.setdefault(
"MagneticFieldSvc",
78 result.getPrimaryAndMerge(
84 result.addService(fieldSvc, primary=
True)
90 kwargs.setdefault(
"MagneticFieldSvc",
91 result.getPrimaryAndMerge(
97 result.addService(fieldSvc, primary=
True)
103 kwargs.setdefault(
"MagneticFieldSvc",
104 result.getPrimaryAndMerge(
110 result.addService(fieldSvc, primary=
True)
116 kwargs.setdefault(
"MagneticFieldSvc",
117 result.getPrimaryAndMerge(
123 result.addService(fieldSvc, primary=
True)
129 kwargs.setdefault(
"MagneticFieldSvc",
130 result.getPrimaryAndMerge(
136 result.addService(fieldSvc, primary=
True)
142 kwargs.setdefault(
"MagneticFieldSvc",
143 result.getPrimaryAndMerge(
149 result.addService(fieldSvc, primary=
True)
155 kwargs.setdefault(
"MagneticFieldSvc",
156 result.getPrimaryAndMerge(
162 result.addService(fieldSvc, primary=
True)
169 kwargs.setdefault(
"MagneticFieldSvc",
170 result.getPrimaryAndMerge(
176 result.addService(fieldSvc, primary=
True)
182 kwargs.setdefault(
"MagneticFieldSvc",
183 result.getPrimaryAndMerge(
189 result.addService(fieldSvc, primary=
True)
195 kwargs.setdefault(
"MagneticFieldSvc",
196 result.getPrimaryAndMerge(
202 result.addService(fieldSvc, primary=
True)
208 kwargs.setdefault(
"MagneticFieldSvc",
209 result.getPrimaryAndMerge(
215 result.addService(fieldSvc, primary=
True)
221 kwargs.setdefault(
"MagneticFieldSvc",
222 result.getPrimaryAndMerge(
228 result.addService(fieldSvc, primary=
True)
234 kwargs.setdefault(
"MagneticFieldSvc",
235 result.getPrimaryAndMerge(
241 result.addService(fieldSvc, primary=
True)
247 kwargs.setdefault(
"MagneticFieldSvc",
248 result.getPrimaryAndMerge(
254 result.addService(fieldSvc, primary=
True)
260 kwargs.setdefault(
"MagneticFieldSvc",
261 result.getPrimaryAndMerge(
267 result.addService(fieldSvc, primary=
True)
273 kwargs.setdefault(
"MagneticFieldSvc",
274 result.getPrimaryAndMerge(
280 result.addService(fieldSvc, primary=
True)
286 kwargs.setdefault(
"MagneticFieldSvc",
287 result.getPrimaryAndMerge(
293 result.addService(fieldSvc, primary=
True)