Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-25 08:27:46

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 
0012 
0013 def run():
0014   import DigiTest
0015   digi = DigiTest.Test(geometry=None)
0016 
0017   input_seq = digi.input_action('DigiParallelActionSequence/Reader')
0018   # ========================================================================================================
0019   digi.info('Created SIGNAL input')
0020   signal = input_seq.adopt_action('DigiSequentialActionSequence/Signal')
0021   reader = signal.adopt_action('DigiDDG4ROOT/SignalReader', mask=0x0, input=[digi.next_input()])
0022   sequence = signal.adopt_action('DigiContainerSequenceAction/Counter',
0023                                  parallel=True, input_mask=0x0, input_segment='inputs')
0024   count = digi.create_action('DigiCellMultiplicityCounter/CellCounter')
0025   sequence.adopt_container_processor(count, digi.containers())
0026   digi.check_creation([reader, signal, sequence, count])
0027   # ========================================================================================================
0028   digi.run_checked(num_events=5, num_threads=7, parallel=3)
0029 
0030 
0031 if __name__ == '__main__':
0032   run()