Newer
Older
#!/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\")"
cd topside && ls -l
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\")"