Jpp
JRunAnalyzer.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 
3 version=1.0
4 script=${0##*/}
5 
6 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
7 
8 if ( do_usage $* ); then
9  usage "$script <input_file> <detector_file> <output_file(.root)>"
10 fi
11 
12 if (( $# < 3 )); then
13  fatal "Wrong number of arguments."
14 fi
15 
16 set_variable DAQ_FILE $1
17 
18 set_variable DETECTOR_FILE $2
19 
20 set_variable OUT_FILE $3
21 
22 set_variable OUT_PATH `readlink -f $(dirname ${OUT_FILE})`
23 
24 set_variable JRA_DIR ${JPP_DIR}/software/JRunAnalyzer
25 
26 if [ ! -d ${OUT_PATH} ]
27 then
28  mkdir -p ${OUT_PATH}
29 fi
30 
31 time ${JRA_DIR}/JRunAnalyzer \
32  -f $DAQ_FILE \
33  -a $DETECTOR_FILE \
34  -o $OUT_FILE \
35  --!
36 
37 CHECK_EXIT_CODE