Jpp  15.0.1-rc.1-highQE
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)> [number_of_timeslices [number_of_summaryslices [number_of_events]]]"
10 fi
11 
12 set_variable NUMBER_OF_TIMESLICES 9223372036854775807
13 set_variable NUMBER_OF_SUMMARYSLICES 9223372036854775807
14 set_variable NUMBER_OF_EVENTS 9223372036854775807
15 
16 case $# in
20  3) set_variable OUT_FILE $3
23  *) fatal "Wrong number of arguments"
24 esac
25 
26 set_variable OUT_PATH `readlink -f $(dirname ${OUT_FILE})`
27 set_variable JRA_DIR ${JPP_DIR}/software/JRunAnalyzer
28 
29 if [ ! -d ${OUT_PATH} ]
30 then
31  mkdir -p ${OUT_PATH}
32 fi
33 
34 time ${JRA_DIR}/JRunAnalyzer \
35  -f $DAQ_FILE \
36  -a $DETECTOR_FILE \
37  -o $OUT_FILE \
38  -t $NUMBER_OF_TIMESLICES \
39  -s $NUMBER_OF_SUMMARYSLICES \
40  -n $NUMBER_OF_EVENTS \
41  --!
42 
43 CHECK_EXIT_CODE
&set_variable NUMBER_OF_TIMESLICES
Definition: JRunAnalyzer.sh:19
then JMuonPostfit f
set_variable DETECTOR_FILE
Definition: JTuneHV.sh:43
&set_variable NUMBER_OF_SUMMARYSLICES
Definition: JRunAnalyzer.sh:18
const int n
Definition: JPolint.hh:660
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
&set_variable DETECTOR_FILE set_variable DAQ_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then JCalibrateToT a
Definition: JTuneHV.sh:116
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:41
version
Definition: JCalibratePMT.sh:7
then usage $script< input_file >< detector_file >< output_file(.root)> fi set_variable NUMBER_OF_TIMESLICES set_variable NUMBER_OF_SUMMARYSLICES set_variable NUMBER_OF_EVENTS case set_variable NUMBER_OF_EVENTS
Definition: JRunAnalyzer.sh:17
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null