3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from FPGATrackSimConfTools.FPGATrackSimAnalysisConfig
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,
26 if __name__ ==
"__main__":
27 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
28 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
30 flags.addFlag(
"OutFileName",
"MMTest")
31 flags.addFlag(
"KeyString",
"strip,barrel,0")
32 flags.addFlag(
"nSlices", 10)
33 flags.addFlag(
"trim", 0.1)
34 flags.addFlag(
"globalTrim", 0)
35 from AthenaCommon.Logging
import logging
36 log = logging.getLogger(__name__)
39 if not flags.Trigger.FPGATrackSim.wrapperFileName
and flags.Input.Files:
40 flags.Trigger.FPGATrackSim.wrapperFileName = flags.Input.Files
41 log.info(
"Taken wrapper input files from Input.Files(set via cmd line --filesInput option) property: %s",
str(flags.Trigger.FPGATrackSim.wrapperFileName))
45 acc.store(
open(
'FPGATrackSimMapMakerConfig.pkl',
'wb'))
48 from AthenaConfiguration.Utils
import setupLoggingLevels
51 statusCode = acc.run()
52 assert statusCode.isSuccess()
is True,
"Application execution did not succeed"