Skip to content
Snippets Groups Projects
beagle_generator.rst 2.01 KiB
Newer Older
  • Learn to ignore specific revisions
  • Dmitry Romanov's avatar
    Dmitry Romanov committed
    BeAGLE generator
    ================
    
    BeAGLE - Benchmark eA Generator for LEptoproduction
    
    The documentation on `eic.github.io <https://eic.github.io/software/beagle.html>`_
    
    Currently hosted at https://gitlab.in2p3.fr/BeAGLE/BeAGLE
    
    Contacts:
    
        Mark Baker mdbaker@bnl.gov
        Kong Tu zhoudunming@bnl.gov
    
    
    CVMFS use
    ---------
    
    Here my hero lays the quest. No mere mortal is capable of building BeAGLE on his system and not everyone is able to run it on farms. But if you are still dare to try, here are the steps: 
    
    
    .. code :: 
    
        # Everything in CSH, you are doomed with your bash, zsh and others
    
        setenv EICDIRECTORY /cvmfs/eic.opensciencegrid.org/x8664_sl7/MCEG/releases/env/EIC2021a/
        setenv BEAGLESYS $EICDIRECTORY/PACKAGES/BeAGLE
        setenv LHAPDF_DATA_PATH /cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current
        setenv LHAPDF_DATA_PATH ${LHAPDF_DATA_PATH}:${EICDIRECTORY}/share/LHAPDF/
        setenv LHAPATH /cvmfs/sft.cern.ch/lcg/external/lhapdfsets/5.9.1/share/PDFsets 
        setenv LHAPDF5 /cvmfs/sft.cern.ch/lcg/external/lhapdfsets/5.9.1/share/PDFsets 
        setenv LD_LIBRARY_PATH $EICDIRECTORY/gcc-8.3/lib:$LD_LIBRARY_PATH
        source /cvmfs/eic.opensciencegrid.org/gcc-8.3/opt/fun4all/core/gcc/8.3.0.1-0a5ad/x86_64-centos7/setup.csh
    
        # (nice idea would be to add this to a single file to source. But for hardcore knights of keyboard and console
        #  it is adviced not to do so, memorize the commands and type them in manually every time to feel the glory)
        
        # Now when you are equipped, let the quest begin: 
        mkdir My_Beagle_Quest      # We name it awkwardly, so it is inline with everything else
        cd My_Beagle_Quest
        mkdir outForPythiaMode
    
        cp $BEAGLESYS/nuclear.bin .
        cp $BEAGLESYS/Examples/eD_18x135_Q2_1_10_y_0.01_0.95_test40k_Shd1_tau7_kt=ptfrag=0.32_shdfac=1.32.Jpsidiffnodecay.highpf.inp example.inp
        cp $BEAGLESYS/Examples/eAt1dfJn .
        $BEAGLESYS/BeAGLE < example.inp
    
        #(!) Beware, example.inp has 1mil events to generate. You probably would like to decrease the number for the first run