diff --git a/DDDigi/python/DDDigi.py b/DDDigi/python/DDDigi.py index 2ef3316c5886f82adad2ea7d0942480cecd8b62f..544fda473682ef143f1e92a76b7de999c126b438 100644 --- a/DDDigi/python/DDDigi.py +++ b/DDDigi/python/DDDigi.py @@ -169,6 +169,7 @@ def Action(kernel, nam, parallel=False): return obj # --------------------------------------------------------------------------- + def EventAction(kernel, nam, parallel=False): obj = Interface.createEventAction(kernel, str(nam)) obj.parallel = parallel @@ -215,9 +216,8 @@ _import_class('digi', 'DigiKernel') _import_class('digi', 'DigiContext') _import_class('digi', 'DigiAction') -# --------------------------------------------------------------------------- - +# --------------------------------------------------------------------------- def _get(self, name): # import traceback a = Interface.toAction(self) diff --git a/examples/DDDigi/scripts/TestFramework.py b/examples/DDDigi/scripts/TestFramework.py index 411830b0abef414728c091839f915b88423cb49e..78fc46a747eba91410e89a928baebea05e6c9635 100644 --- a/examples/DDDigi/scripts/TestFramework.py +++ b/examples/DDDigi/scripts/TestFramework.py @@ -18,7 +18,7 @@ def make_input(kernel): input_2 = DDDigi.TestAction(kernel, 'input_02', 200) input_3 = DDDigi.TestAction(kernel, 'input_03', 150) input_4 = DDDigi.TestAction(kernel, 'input_04', 60) - seq = kernel.inputAction() + seq = kernel.inputAction() seq.adopt(input_1) seq.adopt(input_2) seq.adopt(input_3) @@ -27,12 +27,12 @@ def make_input(kernel): def make_subdetector(kernel, name): - action_1 = DDDigi.TestAction(kernel, name+'_deposits', 150) - action_2 = DDDigi.TestAction(kernel, name+'_rndmNoise', 100) - action_3 = DDDigi.TestAction(kernel, name+'_deadChan', 100) - action_4 = DDDigi.TestAction(kernel, name+'_noiseChan', 50) - action_5 = DDDigi.TestAction(kernel, name+'_merge', 200) - seq = DDDigi.ActionSequence(kernel, 'DigiActionSequence/'+name+'_sequence', True) + action_1 = DDDigi.TestAction(kernel, name + '_deposits', 150) + action_2 = DDDigi.TestAction(kernel, name + '_rndmNoise', 100) + action_3 = DDDigi.TestAction(kernel, name + '_deadChan', 100) + action_4 = DDDigi.TestAction(kernel, name + '_noiseChan', 50) + action_5 = DDDigi.TestAction(kernel, name + '_merge', 200) + seq = DDDigi.ActionSequence(kernel, 'DigiActionSequence/' + name + '_sequence', True) seq.adopt(action_1) seq.adopt(action_2) seq.adopt(action_3)