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   digi.load_geo()
0018   input_action = digi.input_action('DigiParallelActionSequence/READER')
0019   # ========================================================================
0020   digi.info('Created SIGNAL input')
0021   signal = input_action.adopt_action('DigiDDG4ROOT/SignalReader',
0022                                      mask=0x0,
0023                                      input=[digi.next_input()])
0024   digi.check_creation([signal])
0025   # ========================================================================
0026   event = digi.event_action('DigiSequentialActionSequence/EventAction')
0027   seq = event.adopt_action('DigiContainerSequenceAction/ResegmentSeq',
0028                            parallel=True,
0029                            input_mask=0x0, input_segment='inputs',
0030                            output_mask=0xFEED, output_segment='outputs')
0031   resegment = digi.create_action('DigiResegment/Resegment')
0032   resegment.detector = 'Minitel1'
0033   resegment.readout = 'NewMinitel1Hits'
0034   resegment.descriptor = """
0035   <readout name="NewMinitel1Hits">
0036     <segmentation type="CartesianGridXY" grid_size_x="20*mm" grid_size_y="20*mm"/>
0037     <id>system:6,side:2,module:8,x:28:-12,y:52:-12</id>
0038   </readout>
0039   """
0040   resegment.debug = False
0041   seq.adopt_container_processor(resegment, 'Minitel1Hits')
0042   event.adopt_action('DigiStoreDump/StoreDump')
0043 
0044   digi.info('Created event.dump')
0045   # ========================================================================
0046   digi.run_checked(num_events=5, num_threads=15, parallel=3)
0047 
0048 
0049 if __name__ == '__main__':
0050   run()