From 982b65499b76600ede1e0e6f79c40fb832967c35 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Wed, 27 Nov 2019 09:46:04 +0100 Subject: [PATCH] DDDigi: Start implementing noise chains --- DDDigi/python/DDDigi.py | 4 ++-- examples/DDDigi/scripts/TestFramework.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DDDigi/python/DDDigi.py b/DDDigi/python/DDDigi.py index 2ef3316c5..544fda473 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 411830b0a..78fc46a74 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) -- GitLab