Definition at line 12 of file test_CA.py.
◆ test_basic()
def python.tests.test_CA.Test.test_basic |
( |
|
self | ) |
|
Definition at line 13 of file test_CA.py.
18 cfg.addSequence(CompFactory.AthSequencer(
"MySeq"))
20 cfg.addEventAlgo( MyAlg(
"MyAlg1", eta = 2.5, pt = 42.),
21 sequenceName =
"MySeq" )
23 cfg.addEventAlgo( MyAlg(
"MyAlg2", eta = 5.1, pt = 20.*Units.GeV, filterPassed =
False),
24 sequenceName =
"MySeq" )
27 cfg.addEventAlgo( MyAlg(
"MyAlg3", eta = 4.9, pt = 15.*Units.GeV,
28 mytool = MyTool(
"MyTool", counter = 50, parent=
"MyAlg3")),
29 sequenceName =
"MySeq" )
31 cfg.addService( MySvc(), create=
True )
33 with open(
'test_CA.pkl',
'wb')
as f:
36 self.assertFalse(sc.isFailure())
◆ test_merge()
def python.tests.test_CA.Test.test_merge |
( |
|
self | ) |
|
Definition at line 38 of file test_CA.py.
41 cfg1.addEventAlgo( MyAlg(name=
'Alg1', px=1) )
42 cfg2.addEventAlgo( MyAlg(name=
'Alg2', px=2) )
◆ test_merge_fail()
def python.tests.test_CA.Test.test_merge_fail |
( |
|
self | ) |
|
Definition at line 45 of file test_CA.py.
45 def test_merge_fail(self):
48 cfg1.addEventAlgo( MyAlg(px=1) )
49 cfg2.addEventAlgo( MyAlg(px=2) )
50 with self.assertRaises(ValueError):
The documentation for this class was generated from the following file:
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')