Skip to content
Snippets Groups Projects
emcal_electrons.sh 757 B
Newer Older
  • Learn to ignore specific revisions
  • #!/bin/bash
    
    git clone https://eicweb.phy.anl.gov/EIC/datasets.git datasets
    ln -s datasets/data
    git clone https://eicweb.phy.anl.gov/EIC/detectors/topside.git
    mkdir topside/build && cd topside/build
    cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
    cd ../..
    ls -lrth
    root -b -q "datasets/emcal_electrons.cxx(1e4, \"emcal_uniform_electrons.hepmc\")"
    cd topside && ls -l
    npsim --runType batch --numberOfEvents 1000 --compactFile topside.xml --inputFiles ../emcal_uniform_electrons.hepmc --outputFile  ../sim_output/sim_emcal_electrons.root
    pwd
    /usr/local/bin/xenv --xml /usr/local/Juggler.xenv /usr/local/scripts/gaudirun.py ./options/example_crystal.py
    cd ..
    root -b -q "./scripts/makeplot.C(\"sim_output/sim_emcal_electrons_output.root\")"