Skip to content
Snippets Groups Projects
emcal_electrons.sh 768 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(1e6, \"emcal_uniform_electrons.hepmc\")"
    
    npsim --runType batch --numberOfEvents 100000 --compactFile topside.xml --inputFiles ../emcal_uniform_electrons.hepmc --outputFile  sim_emcal_electrons.root
    
    ls -lrth ../
    xenv -x /usr/local/Juggler.xenv gaudirun.py options/example_crystal.py
    
    ls -lrth 
    echo " directory: " 
    pwd
    mkdir -p results
    root -b -q "./scripts/makeplot.C(\"topside/sim_emcal_electrons_output.root\")"