7from AthenaConfiguration.ComponentFactory
import CompFactory
8from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 '''Method to configure the ReadTriggerDecision algorithm'''
13 acc = ComponentAccumulator()
19 from InDetTrackSelectionTool.InDetTrackSelectionToolConfig
import (
20 InDetTrackSelectionTool_Loose_Cfg)
21 trackSelectionTool = acc.popToolsAndMerge(InDetTrackSelectionTool_Loose_Cfg(flags))
25 acc.addEventAlgo(CompFactory.ReadxAOD(name =
"ReadxAOD",
27 TrackSelectionTool = trackSelectionTool,
28 TrackParticlesKey =
"InDetTrackParticles"))
32if __name__ ==
"__main__":
34 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
38 flags = initConfigFlags()
41 from AthenaConfiguration.TestDefaults
import defaultTestFiles
44 flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
47 flags.Exec.MaxEvents = 1000
52 cfg = MainServicesCfg(flags)
53 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
54 cfg.merge(PoolReadCfg(flags))
58 sys.exit(cfg.run().isFailure())