Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-21 08:23:37

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   from dd4hep import units
0016   digi = DigiTest.Test(geometry=None)
0017   digi.kernel().OutputLevel = DigiTest.INFO
0018   digi.load_geo(volume_manager=True)
0019 
0020   event = DigiTest.test_setup_1(digi)
0021   # ========================================================================================================
0022   proc = event.adopt_action('DigiContainerSequenceAction/Smearing',
0023                             parallel=False,
0024                             input_mask=0xEEE5,
0025                             input_segment='deposits')
0026   smear = digi.create_action('DigiDepositSmearTime/Smear',
0027                              resolution_time=1e-6 * units.second)
0028   proc.adopt_container_processor(smear, digi.containers())
0029   event.adopt_action('DigiStoreDump/HeaderDump', OutputLevel=DigiTest.INFO)
0030   # ========================================================================================================
0031   digi.info('Starting digitization core')
0032   digi.run_checked(num_events=5, num_threads=10, parallel=5)
0033 
0034 
0035 if __name__ == '__main__':
0036   run()