Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:30:55

0001 #!/usr/bin/env ruby
0002 # -----------------------------------------------------------------------------
0003 # 'RunNPSim.rb'
0004 # Derek Anderson
0005 # 10.30.2023
0006 #
0007 # Run a certain number events in npsim based on
0008 # specified steering and compact files.
0009 # -----------------------------------------------------------------------------
0010 
0011 # output file
0012 out_file = "test_ruby_script.edm4hep.root"
0013 
0014 # simulation parameters
0015 numevts = 1000
0016 steerer = "../steering/steering.forTowerVsTileCalibCheck_e10th45pim.py"
0017 compact = "$DETECTOR_PATH/epic_imaging.xml"
0018 
0019 # run ddsim
0020 exec("npsim --steeringFile #{steerer} --compactFile #{compact} -G -N #{numevts} --outputFile #{out_file}")
0021 
0022 # end -------------------------------------------------------------------------