3 """Define methods to configure TrkExUnitTest"""
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
11 Trk__PositionMomentumWriter = CompFactory.Trk.PositionMomentumWriter
12 posMomWriter = Trk__PositionMomentumWriter(name, **kwargs)
13 result.addPublicTool(posMomWriter)
15 return result, posMomWriter
18 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
19 from AthenaConfiguration.ComponentFactory
import CompFactory
24 histSvc = CompFactory.THistSvc(Output = [
"val DATAFILE='ExtrapolationEngineTest.root' TYPE='ROOT' OPT='RECREATE'"])
25 result.addService( histSvc )
27 from TrkConfig.AtlasExtrapolationEngineConfig
import AtlasExtrapolationEngineCfg
29 extrapolationEngine = extrapAcc.getPrimary()
30 result.merge(extrapAcc)
31 kwargs[
"ExtrapolationEngine"] = extrapolationEngine
34 result.merge(posMomAcc)
35 kwargs.setdefault(
'PositionMomentumWriter', posMomWriter)
37 Trk__ExtrapolationEngineTest = CompFactory.Trk.ExtrapolationEngineTest
38 extrapolationTest = Trk__ExtrapolationEngineTest(name, **kwargs)
39 result.addEventAlgo(extrapolationTest)