2 import AthenaCommon.AtlasUnixStandardJob
6 from AthenaCommon.AlgSequence
import AlgSequence, AthSequencer
9 from AthenaPython.tests.PyTestsLib
import MyAlg, MySvc, MyTool, MyNameAud
10 job += MyAlg(
"alg1", eta = 2.5 )
13 job += MyAlg( name=
"alg2", eta = 5.1, pt = 20.*Units.GeV )
14 job += MyAlg(
"alg3", eta = 5.1, pt = 20.*Units.GeV )
15 job.alg3 += MyTool(
"mytool", counter = 50, parent=
"alg3" )
17 job += MyAlg( eta = 5.2,
19 mytool = MyTool(
"mytool", counter = 30,
21 OutputLevel = Lvl.VERBOSE ),
24 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
27 from AthenaCommon.AppMgr
import theApp
30 theApp.CreateSvc += [ svcMgr.MySvc.getFullName() ]
31 theApp.AuditAlgorithms =
True
32 theApp.AuditServices =
True
33 theApp.AuditTools =
True
34 svcMgr.AuditorSvc += MyNameAud(name=
"MyNameAuditor", OutputLevel = Lvl.VERBOSE)
38 job.MySeq += MyAlg(
"seqalg1", filterPassed=
True )
39 job.MySeq += MyAlg(
"seqalg2", filterPassed=
False )
40 job.MySeq += MyAlg(
"seqalg3", filterPassed=
True )
45 job.MultSeq.SubSeq1 += MyAlg(
"sub1alg1")
46 job.MultSeq.SubSeq1 += MyAlg(
"sub1alg2",filterPassed=
False)
47 job.MultSeq.SubSeq1 += MyAlg(
"sub1alg3")
50 job.MultSeq.SubSeq2 += MyAlg(
"sub2alg1")
51 job.MultSeq.SubSeq2 += MyAlg(
"sub2alg2")
52 job.MultSeq.SubSeq2 += MyAlg(
"sub2alg3")