Jpp 21.0.0-rc.1-88-g0130508c4
the software that should make you happy
Loading...
Searching...
No Matches
JChargeIntegral.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3# \author evancampenhout
4#
5version=1.0
6script=${0##*/}
7
8# ------------------------------------------------------------------------------------------
9#
10# Utility script to plot cumulative charge probability distribution from JDETECTOR::JPMTDefaultSignalProcessor.
11#
12# ------------------------------------------------------------------------------------------
13
14if [ -z $JPP_DIR ]; then
15 echo "Variable JPP_DIR undefined."
16 exit
17fi
18
19
20source $JPP_DIR/setenv.sh $JPP_DIR
21
22
23set_variable DEBUG 3
24set_variable WORKDIR ${TMPDIR:-/tmp}
25
26
27if do_usage $*; then
28 usage "$script"
29fi
30
31for NPE in 1.0 2.0 5.0 10.0; do
32
33 $JPP_DIR/examples/JDetector/JChargeIntegral \
34 -o $WORKDIR/chargeIntegral\[${NPE}\].root \
35 -N $NPE \
36 -d $DEBUG
37
38done
39
40set_array HISTOGRAMS `ls $WORKDIR/chargeIntegral\[*\].root`
41
42JPlot1D \
43 -f${^HISTOGRAMS}:h0 \
44 -> "Charge [npe]" \
45 -\^ "Cumulative distribution" \
46 -T "" \
47 -L TR