Jpp 20.0.0
the software that should make you happy
Loading...
Searching...
No Matches
JTimeConverterRunByRun.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author mdejong
4#
5script=${0##*/}
6
7source $JPP_DIR/setenv.sh $JPP_DIR
8
9set_variable DEBUG 2
10set_variable: FORMAT GRAPHICS_FORMAT gif
11set_variable+ BATCH GRAPHICS_BATCH -B
12
13if do_usage $*; then
14 usage "$script [detector file] <input file>"
15fi
16
17if (( $# >= 1 && $# <= 2 )); then
18
19 set_variable INPUT_FILE $argv[-1]
20
21 DETECTOR=($argv[1,-2])
22else
23 fatal "Wrong number of arguments."
24fi
25
26$JPP_DIR/examples/JTrigger/JTimeConverterRunByRun \
27 -f $INPUT_FILE \
28 -a${^DETECTOR} \
29 -o histogram.root \
30 -d $DEBUG
31
32JPlot1D \
33 -f histogram.root:h0 \
34 -f histogram.root:h1 \
35 -> "#Deltat [s]" \
36 -\^ "number of events [a.u.]" \
37 -T "" \
38 -o time.$FORMAT $BATCH