Skip to content

Commit

Permalink
DDDigi: Start implementing noise chains
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Nov 27, 2019
1 parent f3e8746 commit 982b654
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DDDigi/python/DDDigi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -215,9 +216,8 @@ def _adopt(self, action):
_import_class('digi', 'DigiContext')
_import_class('digi', 'DigiAction')

# ---------------------------------------------------------------------------


# ---------------------------------------------------------------------------
def _get(self, name):
# import traceback
a = Interface.toAction(self)
Expand Down
14 changes: 7 additions & 7 deletions examples/DDDigi/scripts/TestFramework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 982b654

Please sign in to comment.