3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from FPGATrackSimConfTools.FPGATrackSimDataPrepConfig
import FPGATrackSimReadInputCfg
10 alg = CompFactory.FPGATrackSimMapMakerAlg(
11 GeometryVersion=flags.GeoModel.AtlasVersion,
12 OutFileName=flags.OutFileName,
13 KeyString=flags.KeyString,
14 nSlices=flags.nSlices,
15 region=flags.Trigger.FPGATrackSim.region,
17 globalTrim=flags.globalTrim,
18 doSpacePoints=flags.Trigger.FPGATrackSim.spacePoints,
19 doInsideOut=flags.doInsideOut,
27 if __name__ ==
"__main__":
28 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
29 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
31 flags.addFlag(
"OutFileName",
"MMTest")
32 flags.addFlag(
"KeyString",
"strip,barrel,0")
33 flags.addFlag(
"nSlices", 6)
34 flags.addFlag(
"trim", 0.1)
35 flags.addFlag(
"globalTrim", 0)
36 flags.addFlag(
'doInsideOut',
False)
38 from AthenaCommon.Logging
import logging
39 log = logging.getLogger(__name__)
42 if not flags.Trigger.FPGATrackSim.wrapperFileName
and flags.Input.Files:
43 flags.Trigger.FPGATrackSim.wrapperFileName = flags.Input.Files
44 log.info(
"Taken wrapper input files from Input.Files(set via cmd line --filesInput option) property: %s",
str(flags.Trigger.FPGATrackSim.wrapperFileName))
48 acc.store(
open(
'FPGATrackSimMapMakerConfig.pkl',
'wb'))
51 from AthenaConfiguration.Utils
import setupLoggingLevels
54 statusCode = acc.run()
55 assert statusCode.isSuccess()
is True,
"Application execution did not succeed"