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   input_action = digi.input_action('DigiParallelActionSequence/READER')
0019   # ========================================================================================================
0020   digi.info('Created SIGNAL input')
0021   signal = input_action.adopt_action('DigiSequentialActionSequence/Signal')
0022   signal.adopt_action('DigiDDG4ROOT/SignalReader', mask=0x0, input=[digi.next_input()])
0023   set_ip = signal.adopt_action('DigiIPCreate/SignalIP')
0024   set_ip.offset_ip = [1, 2, 3]
0025   set_ip.sigma_ip = [.5, .5, 3.0]
0026   move_seq = signal.adopt_action('DigiContainerSequenceAction/MoveSignal',
0027                                  parallel=True, input_mask=0x0, input_segment='inputs')
0028   mover = digi.create_action('DigiIPMover/MoveIPSignal')
0029   mover.adopt_property(set_ip, "interaction_point", "interaction_point")
0030   conts = [c for c in digi.containers()]
0031   conts.append('MCParticles')
0032   move_seq.adopt_container_processor(mover, conts)
0033   # ========================================================================================================
0034   digi.run_checked(num_events=5, num_threads=7, parallel=3)
0035 
0036 
0037 if __name__ == '__main__':
0038   run()