4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from MuonConfig.MuonCondAlgConfig
import NswCalibDbAlgCfg
9 the_alg = CompFactory.NswPassivationTestAlg(alg_name, **kwargs)
10 result.addEventAlgo(the_alg, primary=
True)
14 if __name__ ==
"__main__":
15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from .MdtCablingTester
import SetupArgParser, setupServicesCfg
19 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"])
20 args = parser.parse_args()
24 flags.Concurrency.NumThreads = args.threads
25 flags.Concurrency.NumConcurrentEvents = args.threads
26 flags.Output.ESDFileName = args.output
27 flags.Input.Files = args.inputFile
31 msgService = cfg.getService(
'MessageSvc')
32 msgService.Format =
"S:%s E:%e % F%128W%S%7W%R%T %0W%M"
35 cfg.printConfig(withDetails=
True, summariseProps=
True)
39 with open(
"NSWPassivAlgTest.pkl",
"wb")
as f:
44 if not sc.isSuccess():
46 sys.exit(
"Execution failed")