Skip to content
Snippets Groups Projects
Commit c677c652 authored by Jihee Kim's avatar Jihee Kim
Browse files

Added running geant4 simulation and juggler

parent 6cee82c1
Branches
No related tags found
1 merge request!12Resolve "Pion CI Workflow for EM Barrel"
......@@ -42,6 +42,31 @@ if [[ "$?" -ne "0" ]] ; then
exit 1
fi
# Run geant4 simulations
npsim --runType batch \
-v WARNING \
--part.minimalKineticEnergy 0.5*GeV \
--numberOfEvents ${JUGGLER_N_EVENTS} \
--compactFile topside/${JUGGLER_DETECTOR}.xml \
--inputFiles ${JUGGLER_FILE_NAME_TAG}.hepmc \
--outputFile sim_output/${JUGGLER_SIM_FILE}
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running npdet"
exit 1
fi
# Run Juggler
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \
gaudirun.py calorimeters/options/emcal_barrel_reco.py
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
exit 1
fi
# Directory for plots
mkdir -p results
# Move ROOT output file
mv ${JUGGLER_REC_FILE} sim_output/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment