File indexing completed on 2025-01-18 09:14:54
0001
0002
0003
0004
0005
0006
0007
0008
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.kernel().OutputLevel = DigiTest.INFO
0019 digi.load_geo(volume_manager=True)
0020
0021 event = DigiTest.test_setup_1(digi)
0022
0023 proc = event.adopt_action('DigiContainerSequenceAction/Smearing',
0024 parallel=False,
0025 input_mask=0xEEE5,
0026 input_segment='deposits')
0027 smear = digi.create_action('DigiDepositSmearTime/Smear',
0028 resolution_time=1e-6 * units.second)
0029 proc.adopt_container_processor(smear, digi.containers())
0030 event.adopt_action('DigiStoreDump/HeaderDump', OutputLevel=DigiTest.INFO)
0031
0032 digi.info('Starting digitization core')
0033 digi.run_checked(num_events=5, num_threads=10, parallel=5)
0034
0035
0036 if __name__ == '__main__':
0037 run()