Jpp 20.0.0-rc.6
the software that should make you happy
Loading...
Searching...
No Matches
upper-limit.sh
Go to the documentation of this file.
1#!/bin/env zsh
2#
3# \author mdejong
4#
5version=1.0
6script=${0##*/}
7
8source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
9
10set_variable: SNR ASTRONOMY_SNR 0.0
11set_variable: M_SIZE ASTRONOMY_M_SIZE 10000
12set_variable: BOOST ASTRONOMY_BOOST 1.0
13set_variable: DEBUG ASTRONOMY_DEBUG 1
14set_variable: FORMAT GRAPHICS_FORMAT gif
15set_variable+ BATCH GRAPHICS_BATCH -B
16
17if do_usage $*; then
18 usage "$script <signal histogram> <background histogram> <number of tests>"\
19 "\nThe histograms correspond to \"<file name>:<histogram name>\"."
20fi
21
22if (( $# != 3 )); then
23 fatal "Wrong number of arguments."
24fi
25
26set_variable HS $argv[1]
27set_variable HB $argv[2]
28let "NUMBER_OF_TESTS = $argv[3]"
29
30# pseudo experiments
31
32if (( $NUMBER_OF_TESTS > 0 )); then
33
34 timer_start
35
36 $JPP_DIR/examples/JAstronomy/JPseudoExperimentUpperLimit \
37 -o benchmark.root \
38 -E "$HS $HB" \
39 -n $NUMBER_OF_TESTS \
40 -B $BOOST \
41 -M $M_SIZE \
42 -R $SNR \
43 -x "500 -1.0e2 +2.0e1" \
44 -S 0 \
45 -d $DEBUG #>& pseudo-experiment-limit.log &
46
47 timer_stop
48 timer_print
49fi