Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
compass_D0ARCA006.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2
3# --------------------------------------------------------------------------------------------
4#
5# Steering script for the compass calibration procedure of the D0ARCA006 (75) detector.
6#
7# --------------------------------------------------------------------------------------------
8
9if [ -z $JPP_DIR ]; then
10 echo "Variable JPP_DIR undefined."
11 exit
12fi
13
14source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
15
16set_variable WORKDIR ${TMPDIR:-/tmp}/
17set_array RUNS 9690-9701
18
19if do_usage $*; then
20 usage "$script <detector file>"
21fi
22
23if (( $# != 1 )); then
24 fatal "Wrong number of arguments."
25fi
26
27set_variable DETECTOR $1
28
29if [[ ! -f $DETECTOR ]]; then
30 fatal "Missing pre-calibrated D0ORCA007 input detector file"
31fi
32
33JEditDetector -a $DETECTOR -o detector.datx
34
35rm -f $WORKDIR/compass-*.root
36
37JCompass.sh detector.datx $RUNS[*] $WORKDIR/compass-\[before\].root
38
39JConvertDetectorFormat -a detector.datx -o ${TMPDIR:-/tmp}/detector.datx
40
41JCompass.sh ${TMPDIR:-/tmp}/detector.datx $RUNS[*] $WORKDIR/compass-\[after\].root
42
43set_variable GRAPHICS_BATCH
44
45$JPP_DIR/examples/JCompass/plot-compass.sh $DETECTOR $WORKDIR/compass-\[before\].root $WORKDIR/compass-\[after\].root
46