Difference between revisions of "Running EIC Simulations"

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search
Line 15: Line 15:
 
#* <code>mkdir outForPythiaMode</code>
 
#* <code>mkdir outForPythiaMode</code>
 
#*!! Important note: Currently, your output file needs to be named outForPythiaMode otherwise it won't work. You can change your inputFiles folder name to whatever you want.
 
#*!! Important note: Currently, your output file needs to be named outForPythiaMode otherwise it won't work. You can change your inputFiles folder name to whatever you want.
# To get started, there are example files in $BEAGLESYS/Examples you can use and then use the information in the wiki link above to modify accordingly. To use them:
+
# To get started, there are example files in $BEAGLESYS/Examples you can use and then use the information in [https://wiki.bnl.gov/eic/index.php/BeAGLE#BeAGLE_input_control_card the BeAGLE Wiki] to modify accordingly. To use them:
 
#* <code>cp $BEAGLESYS/Example/eD* /path/to/beagle-user/inputFiles/.</code>
 
#* <code>cp $BEAGLESYS/Example/eD* /path/to/beagle-user/inputFiles/.</code>
 
#* <code>cp $BEAGLESYS/Example/eA* /path/to/beagle-user/.</code>
 
#* <code>cp $BEAGLESYS/Example/eA* /path/to/beagle-user/.</code>

Revision as of 14:03, 25 June 2020

BeAGLE

BeAGLE is currently the best electron-deuteron scattering generator for the EIC. In order to run BeAGLE, currently that can be done on the JLab ifarm computers. To set it up, do the following (Summarized from the BeAGLE Wiki):

  1. Create a directory where you want to store BeAGLE input and output files and name it something like beagle-user
  2. Input the following two lines and add them to your ~/.cshrc:
    • source /u/group/ldgeom/PACKAGES/BeAGLE/setup_BeAGLE
    • source /u/group/ldgeom/PACKAGES/setup.csh
  3. Copy the following into your beagle-user folder:
    • cp $BEAGLESYS/nuclear.bin /path/to/beagle-user/.
  4. At this point, BeAGLE should be able to run and you can test this by using:
    • $BEAGLESYS/BeAGLE
  5. In your beagle-user folder, create the following directories:
    • mkdir inputFiles
    • mkdir outForPythiaMode
    • !! Important note: Currently, your output file needs to be named outForPythiaMode otherwise it won't work. You can change your inputFiles folder name to whatever you want.
  6. To get started, there are example files in $BEAGLESYS/Examples you can use and then use the information in the BeAGLE Wiki to modify accordingly. To use them:
    • cp $BEAGLESYS/Example/eD* /path/to/beagle-user/inputFiles/.
    • cp $BEAGLESYS/Example/eA* /path/to/beagle-user/.
  7. Now you're ready to run BeAGLE! You can do this by:
    • $BEAGLESYS/BeAGLE < inputFiles/input.inp | tee log.txt
    1. For the example mentioned above, you can run it using:
    • $BEAGLESYS/BeAGLE < inputFiles/eD_18x135_Q2_1_10_y_0.01_0.95_test40k_Shd1_tau7_kt=ptfrag=0.32_shdfac=1.32.Jpsidiffnodecay.highpf.inp | tee log_1.txt