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

modified: dis.sh

	modified:   gen.sh
parent 2c249b81
No related branches found
No related tags found
No related merge requests found
...@@ -46,12 +46,6 @@ export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root" ...@@ -46,12 +46,6 @@ export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root"
## TODO remove this ## TODO remove this
#bash util/build_detector.sh #bash util/build_detector.sh
g++ dis/src/pythia_dis.cc -o pythia_dis \
-I/usr/local/include \
-O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC \
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpythia8 -ldl \
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lHepMC3
## ============================================================================= ## =============================================================================
## Step 2: Run the simulation ## Step 2: Run the simulation
......
...@@ -35,7 +35,18 @@ JUGGLER_FILE_NAME_TAG="dis" ...@@ -35,7 +35,18 @@ JUGGLER_FILE_NAME_TAG="dis"
## ============================================================================= ## =============================================================================
## Step 1: Dummy event generator ## Step 1: Dummy event generator
## TODO better file name that encodes the actual configuration we're running ## TODO better file name that encodes the actual configuration we're running
root -b -q "dis/generator/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \".local/${JUGGLER_FILE_NAME_TAG}.hepmc\")"
g++ dis/src/pythia_dis.cc -o pythia_dis \
-I/usr/local/include \
-O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC \
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lpythia8 -ldl \
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lHepMC3
if [[ "$?" -ne "0" ]] ; then
echo "ERROR compiling pythia"
exit 1
fi
./pythia_dis
if [[ "$?" -ne "0" ]] ; then if [[ "$?" -ne "0" ]] ; then
echo "ERROR running script" echo "ERROR running script"
exit 1 exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment