7from AthenaConfiguration.ComponentFactory
import CompFactory
8from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 '''Method to configure the ReadTriggerDecision algorithm'''
13 acc = ComponentAccumulator()
19 from InDetConfig.InDetTrackSelectionToolConfig
import InDetTrackSelectionTool_Loose_Cfg
20 trackSelectionTool = acc.popToolsAndMerge(InDetTrackSelectionTool_Loose_Cfg(flags))
24 acc.addEventAlgo(CompFactory.ReadxAOD(name =
"ReadxAOD",
26 TrackSelectionTool = trackSelectionTool,
27 TrackParticlesKey =
"InDetTrackParticles"))
31if __name__ ==
"__main__":
33 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
34 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
37 flags = initConfigFlags()
40 from AthenaConfiguration.TestDefaults
import defaultTestFiles
43 flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
46 flags.Exec.MaxEvents = 1000
51 cfg = MainServicesCfg(flags)
52 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
53 cfg.merge(PoolReadCfg(flags))
57 sys.exit(cfg.run().isFailure())