Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:54

0001 # ==========================================================================
0002 #  AIDA Detector description implementation
0003 # --------------------------------------------------------------------------
0004 # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 # All rights reserved.
0006 #
0007 # For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 #
0010 # ==========================================================================
0011 from __future__ import absolute_import
0012 
0013 
0014 def run():
0015   import DigiTest
0016   digi = DigiTest.Test(geometry=None)
0017 
0018   # ========================================================================================================
0019   input_action = digi.input_action('DigiSequentialActionSequence/READER')
0020   input_action.adopt_action('DigiDDG4ROOT/SignalReader', mask=0x0, input=[digi.next_input()])
0021   # ========================================================================================================
0022   event = digi.event_action('DigiSequentialActionSequence/EventAction')
0023   event.adopt_action('DigiStoreDump/DumpInput')
0024   proc = event.adopt_action('DigiContainerCombine/Combine',
0025                             parallel=True,
0026                             input_masks=[0x0],
0027                             input_segment='inputs',
0028                             output_mask=0xFEED,
0029                             output_segment='deposits',
0030                             erase_combined=False)
0031   event.adopt_action('DigiStoreDump/DumpCombine')
0032   proc = event.adopt_action('DigiContainerSequenceAction/ADCsequence',
0033                             parallel=True,
0034                             input_mask=0xFEED,
0035                             input_segment='deposits',
0036                             output_mask=0xBABE,
0037                             output_segment='output')
0038   count = digi.create_action('DigiSimpleADCResponse/ADCCreate')
0039   proc.adopt_container_processor(count, digi.containers())
0040   event.adopt_action('DigiContainerDrop/DropCombine',
0041                      parallel=True,
0042                      input_masks=[0xFEED],
0043                      input_segment='deposits')
0044   event.adopt_action('DigiStoreDump/DumpOutput')
0045   digi.info('Created event.dump')
0046 
0047   # ========================================================================================================
0048   digi.run_checked(num_events=5, num_threads=10, parallel=3)
0049 
0050 
0051 if __name__ == '__main__':
0052   run()