Skip to content
Snippets Groups Projects
Commit 1b8664d1 authored by FaserMC's avatar FaserMC
Browse files

Add FLUKA crossing angle shift

parent b4bc1db7
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,11 @@ do
xangle=1
shift;; # This 'eats' the argument
--fshift)
echo "Applying FLUKA crossing-angle shift"
xangle=2
shift;;
-l | --log)
logdest="$2";
shift;
......@@ -184,9 +189,13 @@ cd "${file_stem}"
if [[ -z "$xangle" ]]; then
faser_simulate.py --skip "$skip_events" -n "$nevts" "$infile" "$outfile"
sim_code=$?
else
elif [[ $xangle == 1 ]]; then
faser_simulate.py --yangle -0.000160 --yshift 12.0 --skip "$skip_events" -n "$nevts" "$infile" "$outfile"
sim_code=$?
else
echo "Applying double crossing-angle shift for FLUKA!"
faser_simulate.py --yangle -0.000310 --yshift 12.0 --skip "$skip_events" -n "$nevts" "$infile" "$outfile"
sim_code=$?
fi
echo "Return code: $sim_code"
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment