Jpp 19.3.0-rc.5
the software that should make you happy
Loading...
Searching...
No Matches
JNs.sh
Go to the documentation of this file.
1#!/bin/env zsh
2script=${0##*/}
3
4source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
5
6set_variable: DEBUG MATH_DEBUG 2
7set_variable: PRECISION MATH_PRECISION 1.0e-2
8set_variable WORKDIR ${TMPDIR:-/tmp}/
9
10if do_usage $*; then
11 usage "$script"
12fi
13
14SIGMAS=(3.0 5.0)
15
16for SIGMA in $SIGMAS[*]; do
17
18 set_variable OUTPUT_FILE $WORKDIR/poisson\[$SIGMA\].root
19
20 $JPP_DIR/examples/JMath/JNs \
21 -o $OUTPUT_FILE \
22 -s $SIGMA \
23 -p $PRECISION \
24 -d $DEBUG
25done
26
27JPlot1D \
28 -f$WORKDIR/poisson\[${^SIGMAS}\].root:\.\* \
29 -> "background" \
30 -\^ "signal" \
31 -XX \
32 -y "0.5 1.0e2" \
33 -Y \
34 -G XY \
35 -g 2 \
36 -O "][" \
37 -T "" \
38 -L TL \
39 -o poisson.gif
40
41rm -f $WORKDIR/poisson\[${^SIGMAS}\].root