Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JSignalL1.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 efficiency 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 INPUT_FILE $WORKDIR/sirene.root
28set_variable OUTPUT_FILE signalL1.root
29set_variable TMAX_NS 20.0
30
31if do_usage $*; then
32 usage "$script [detector file [input file]]"
33fi
34
35case $# in
36 2) set_variable INPUT_FILE $2;&
37 1) set_variable DETECTOR $1;;
38esac
39
40if (( 1 )); then
41
42 check_input_file $DETECTOR $INPUT_FILE
43
44 $JPP_DIR/examples/JTrigger/JSignalL1 \
45 -a $DETECTOR \
46 -f $INPUT_FILE \
47 -o $OUTPUT_FILE \
48 -T $TMAX_NS \
49 -d $DEBUG
50
51fi
52
53
54if (( 1 )); then
55
56 JPlot1D \
57 -f ${OUTPUT_FILE}:hn \
58 -y "0 1.1" \
59 -\^ "Efficiency" \
60 -> "number of hits"
61
62fi
63
64if (( 1 )); then
65
66 JPlot1D \
67 -f ${OUTPUT_FILE}:hc \
68 -y "0 1.1" \
69 -\^ "Efficiency" \
70 -> "cos \theta"
71
72fi
73
74if (( 1 )); then
75
76 JPlot1D \
77 -f ${OUTPUT_FILE}:ht \
78 -y "0 1.1" \
79 -\^ "Efficiency" \
80 -> "#Deltat [ns]"
81
82fi