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 # 'RunNPSimOnHepMC.rb'
0004 # Derek Anderson
0005 # 02.22.2024
0006 #
0007 # Run a certain number events from a HepMC file
0008 # in npsim with a specific compact file.
0009 # -----------------------------------------------------------------------------
0010 
0011 # output file
0012 out_file = "forBHCalMultiPartSim.e10h11pipXpim.edm4hep.root"
0013 
0014 # simulation parameters
0015 numevts = 10000
0016 compact = "$DETECTOR_PATH/epic_bhcal.xml"
0017 hepmc   = "forBHCalMultiPartSim.e10h11pipXpim.hepmc"
0018 
0019 # run npsim
0020 exec("npsim -I #{hepmc} -N #{numevts} --compactFile #{compact} --outputFile #{out_file}")
0021 
0022 # end -------------------------------------------------------------------------