Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JRandomL1.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# Example script to run evaluate purity of L1/L2 coincidences.
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 $JPP_DATA
26set_variable DETECTOR $WORKDIR/km3net_reference.detx
27set_variable OUTPUT_FILE randomL1.root
28set_variable TMAX_NS 20.0
29set_variable BACKGROUND_HZ 5e3 500 50 5 0.5
30
31if do_usage $*; then
32 usage "$script [detector file]"
33fi
34
35case $# in
36 1) set_variable DETECTOR $1;;
37esac
38
39if (( 1 )); then
40
41 check_input_file $DETECTOR
42
43 $JPP_DIR/examples/JTrigger/JRandomL1 \
44 -o $OUTPUT_FILE \
45 -T $TMAX_NS \
46 -B "$BACKGROUND_HZ" \
47 -n 1000 \
48 -d $DEBUG
49
50fi
51
52
53if (( 1 )); then
54
55 JPlot1D \
56 -f ${OUTPUT_FILE}:hn \
57 -y "0 1.1" \
58 -\^ "Efficiency" \
59 -> "number of hits"
60
61fi
62
63if (( 1 )); then
64
65 JPlot1D \
66 -f ${OUTPUT_FILE}:hc \
67 -y "0 1.1" \
68 -\^ "Efficiency" \
69 -> "cos \theta"
70
71fi
72
73if (( 1 )); then
74
75 JPlot1D \
76 -f ${OUTPUT_FILE}:ht \
77 -y "0 1.1" \
78 -\^ "Efficiency" \
79 -> "#Deltat [ns]"
80
81fi