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

modified: tracking/central_electrons.sh

parent 2a47dafc
No related branches found
No related tags found
1 merge request!28Added analysis script to the tracking job
This commit is part of merge request !28. Comments created here will be created in the context of that merge request.
......@@ -23,34 +23,34 @@ echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
## Build the detector constructors.
#git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
#mkdir ${JUGGLER_DETECTOR}/build
#pushd ${JUGGLER_DETECTOR}/build
#cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
#popd
git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
mkdir ${JUGGLER_DETECTOR}/build
pushd ${JUGGLER_DETECTOR}/build
cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
popd
## generate the input events
#root -b -q "tracking/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
#if [[ "$?" -ne "0" ]] ; then
# echo "ERROR running script"
# exit 1
#fi
root -b -q "tracking/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running script"
exit 1
fi
#
pushd ${JUGGLER_DETECTOR}
## run geant4 simulations
#npsim --runType batch \
# --part.minimalKineticEnergy 1000*GeV \
# -v WARNING \
# --numberOfEvents ${JUGGLER_N_EVENTS} \
# --compactFile ${JUGGLER_DETECTOR}.xml \
# --inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \
# --outputFile ${JUGGLER_SIM_FILE}
#if [[ "$?" -ne "0" ]] ; then
# echo "ERROR running script"
# exit 1
#fi
npsim --runType batch \
--part.minimalKineticEnergy 1000*GeV \
-v WARNING \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile ${JUGGLER_DETECTOR}.xml \
--inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \
--outputFile ${JUGGLER_SIM_FILE}
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running script"
exit 1
fi
# Need to figure out how to pass file name to juggler from the commandline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment