Jpp
run_pulse_classification.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 
4 version=1.0
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Utility script to test JNanoBeacons/JOptimizeVoltage.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 #echo $*
14 WORKDIR=$PWD
15 
16 JNANODIR="/data/stu18q3km3/src/Jpp/trunk/examples/JNanobeacon"
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
19 
20 if ( do_usage $* ); then
21  usage "$script [edit the different options within]"
22 fi
23 
24 
25 #------------------------------------
26 # Input-Output definitions
27 #------------------------------------
28 
29 string=2
30 
31 analysis_level=0
32 
33 top_pmts=1
34 
35 bottom_pmts=4
36 
37 max_neighbors=2
38 
39 in_detx="/afs/in2p3.fr/home/r/rgracia/sps/KM3NeT/ORCA/Calibration/data/det/ORCA/KM3NeT_00000029_20170920.detx"
40 
41 runs=(2745 2746 2747 2748 2749 2750 2751 2752 2753)
42 
43 pulsedir="$WORKDIR/out/ORCA/JPulseFinder"
44 
45 cd "${JNANODIR}"
46 
47 for i in {1..$((${#runs[@]}))}
48 
49 do
50 
51  infile="$pulsedir/JPF_${runs[i]}.root"
52 
53  outfile="$pulsedir/Pulse_classification_${runs[i]}.root"
54 
55 
56  pulse_classification \
57  -a $in_detx \
58  -f $infile \
59  -s $string \
60  -o $outfile \
61  -l $analysis_level \
62  -n $max_neighbors \
63  -u $top_pmts \
64  -d $bottom_pmts
65 done