Skip to content
Snippets Groups Projects
Commit 4dd9753c authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

Running installed juggler library

- Trying to fix the running of juggler from an installed location
- xenv seems to be important here since `run` is just a simple wrapper
parent 55982b56
Branches
No related tags found
1 merge request!3Running installed juggler library
......@@ -60,6 +60,12 @@ ifile=0
cat <<EOF
default:
timeout: 12 hours 30 minutes
artifacts:
expire_in: 20 weeks
paths:
- results/
stages:
- benchmarks
EOF
......
......@@ -7,11 +7,16 @@ 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\")"
root -b -q "datasets/emcal_electrons.cxx(1e6, \"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
npsim --runType batch --numberOfEvents 100000 --compactFile topside.xml --inputFiles ../emcal_uniform_electrons.hepmc --outputFile sim_emcal_electrons.root
pwd
/usr/local/bin/xenv --xml /usr/local/Juggler.xenv /usr/local/scripts/gaudirun.py ./options/example_crystal.py
ls -lrth ../
xenv -x /usr/local/Juggler.xenv gaudirun.py options/example_crystal.py
cd ..
root -b -q "./scripts/makeplot.C(\"sim_output/sim_emcal_electrons_output.root\")"
ls -lrth
echo " directory: "
pwd
mkdir -p results
root -b -q "./scripts/makeplot.C(\"topside/sim_emcal_electrons_output.root\")"
......@@ -2,7 +2,7 @@
// Read reconstruction ROOT output file
// Plot variables
////////////////////////////////////////
int makeplot(const char* input_fname = "../sim_output/sim_emcal_electrons_output.root")
int makeplot(const char* input_fname = "sim_output/sim_emcal_electrons_output.root")
{
// Setting figures
gROOT->SetStyle("Plain");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment