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 # 'RunPythiaInNPSim.rb'
0004 # Derek Anderson
0005 # 12.11.2023
0006 #
0007 # Run Pythia8 events (hepmc files) through DDSim.
0008 # -----------------------------------------------------------------------------
0009 
0010 # i/o parameters
0011 in_hepmc = "pythia8NCDIS_18x275minQ100xAngleM0025hiDiv1_withBeamEffects_nLines2000K.hepmc"
0012 out_file = "forNewGeoTest.nevt5000.epicmain_onlychcal.py8nc18x275minq100xangleM0025hidiv1.d11m12y2023.edm4hep.root"
0013 
0014 # simulation parameters
0015 compact = "$DETECTOR_PATH/epic_hcal_gdml.xml"
0016 numevts = 5000
0017 
0018 # run npsim
0019 exec("npsim --compactFile #{compact} --numberOfEvents #{numevts} --inputFiles #{in_hepmc} --outputFile #{out_file}")
0020 
0021 # end -------------------------------------------------------------------------