File indexing completed on 2026-05-15 07:41:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 set -euo pipefail
0019
0020 REPO=${REPO:-/workspaces/eic-opticks}
0021 BIN=${BIN:-$(dirname "$(realpath "$0")")/build/GPUMCTruth}
0022 GDML=${GDML:-$REPO/tests/geom/opticks_raindrop.gdml}
0023 MACRO=${MACRO:-$REPO/tests/run.mac}
0024 SEED=${SEED:-42}
0025 OUTDIR=${OUTDIR:-$(pwd)}
0026
0027 export USER=${USER:-fakeuser}
0028 export GEOM=${GEOM:-fakegeom}
0029 export OPTICKS_MC_TRUTH=1
0030 export OPTICKS_MC_TRUTH_BENCH=1
0031
0032 cd "$OUTDIR"
0033 rm -f opticks_hits_output.txt g4_hits_output.txt
0034
0035 "$BIN" -g "$GDML" -m "$MACRO" -s "$SEED"
0036
0037 echo
0038 echo "=== TrackID distribution in opticks_hits_output.txt ==="
0039 awk -F'TrackID=' 'NF>1 {print $2}' opticks_hits_output.txt | sort | uniq -c | sort -rn
0040 echo
0041 echo "First 3 hits:"
0042 head -3 opticks_hits_output.txt