Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JBuild.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to determine L1 time offsets.
11#
12# ------------------------------------------------------------------------------------------
13
14
15if [ -z $JPP_DIR ]; then
16 echo "Variable JPP_DIR undefined."
17 exit
18fi
19
20
21source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24set_variable DEBUG 2
25set_variable WORKDIR ${TMPDIR:-/tmp}/
26set_variable INPUT_FILE $JPP_DATA/trigger_efficiency+background.root
27set_variable OUTPUT_FILE $WORKDIR/build.root
28set_variable DETECTOR $JPP_DATA/km3net_reference.detx
29set_variable HISTOGRAM 1
30set_variable: FORMAT GRAPHICS_FORMAT gif
31set_variable+ BATCH GRAPHICS_BATCH -B
32
33if do_usage $*; then
34 usage "$script [detector file [input file [output file]]]"
35fi
36
37case $# in
38 3) set_variable OUTPUT_FILE $3;&
39 2) set_variable INPUT_FILE $2;&
40 1) set_variable DETECTOR $1;;
41esac
42
43
44if (( 1 )); then
45
46 print_variable DETECTOR INPUT_FILE OUTPUT_FILE
47 check_input_file $DETECTOR $INPUT_FILE
48
49 $JPP_DIR/examples/JTrigger/JBuild \
50 -a $DETECTOR \
51 -f $INPUT_FILE \
52 -o $OUTPUT_FILE \
53 -@ L2Min=3 \
54 -@ ctMin=0.0 \
55 -d $DEBUG
56
57fi
58
59
60if (( 1 )); then
61
62 JPlot1D \
63 -f ${OUTPUT_FILE}:L0 \
64 -f ${OUTPUT_FILE}:L1 \
65 -f ${OUTPUT_FILE}:L2 \
66 -> "number of hits" \
67 -\^ "number of events [a.u.]" \
68 -y "0.5 1e3" -Y -T "" \
69 -L TR \
70 -o build.$FORMAT $BATCH
71
72fi