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