2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
7 result.addService(CompFactory.Trk.PropResultRootWriterSvc(name, **kwargs))
13 if "Extrapolator" not in kwargs:
14 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
15 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
18 if "ExtrapolationTool" not in kwargs:
19 from ActsConfig.ActsGeometryConfig
import ActsExtrapolationToolCfg
20 kwargs.setdefault(
"ExtrapolationTool", result.popToolsAndMerge(
23 result.addEventAlgo(CompFactory.Trk.ExtrapolatorComparisonTest(name, **kwargs))
26 if __name__==
"__main__":
27 from AthenaCommon.Logging
import log
29 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
30 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
31 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
37 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/mc20_13TeV.361107.PowhegPythia8EvtGen_AZNLOCTEQ6L1_Zmumu.recon.AOD.e3601_s3681_r13167/AOD.27312826._000061.pool.root.1']
40 flags.Detector.GeometryBpipe =
True
41 flags.Detector.GeometryID =
True
42 flags.Detector.GeometryPixel =
True
43 flags.Detector.GeometrySCT =
True
44 flags.Detector.GeometryCalo =
False
45 flags.Detector.GeometryMuon =
False
47 flags.TrackingGeometry.MaterialSource =
"Input"
50 flags.Concurrency.NumThreads = 1
51 flags.Concurrency.NumConcurrentEvents = 1
53 log.debug(
'Lock config flags now.')
61 histSvc = CompFactory.THistSvc(Output = [
"ExtrapolationStudies DATAFILE='ExtrapolationStudies.root' OPT='RECREATE'"])
62 histSvc.OutputLevel=VERBOSE
63 cfg.addService( histSvc )
66 name=
"ATLASPropResultRootWriterSvc",
70 name=
"ACTSPropResultRootWriterSvc",
75 EventsPerExecute = 1000,
76 StartPerigeeMinPt = 10000,
77 StartPerigeeMaxPt = 10000,
78 ReferenceSurfaceRadius = [80],
79 ReferenceSurfaceHalfZ = [500],
80 ATLASPropResultRootWriter = cfg.getService(
"ATLASPropResultRootWriterSvc"),
81 ACTSPropResultRootWriter = cfg.getService(
"ACTSPropResultRootWriterSvc")))
86 f=
open(
"ExtrapolatorComparisonTestConfig.pkl",
"w")