Jpp  18.2.1-ARCA-DF-PATCH
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)> [all_plots[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
16 
17 case $# in
22  3) set_variable OUT_FILE $3
25  *) fatal "Wrong number of arguments"
26 esac
27 
28 set_variable OUT_PATH `readlink -f $(dirname ${OUT_FILE})`
29 set_variable JRA_DIR ${JPP_DIR}/software/JRunAnalyzer
30 
31 if [ ! -d ${OUT_PATH} ]
32 then
33  mkdir -p ${OUT_PATH}
34 fi
35 
36 time ${JRA_DIR}/JRunAnalyzer \
37  -f $DAQ_FILE \
38  -a $DETECTOR_FILE \
39  -o $OUT_FILE \
40  -t $NUMBER_OF_TIMESLICES \
41  -s $NUMBER_OF_SUMMARYSLICES \
42  -n $NUMBER_OF_EVENTS \
43  -@ "p0 = $ALL_PLOTS;" \
44  --!
45 
46 CHECK_EXIT_CODE
&set_variable NUMBER_OF_TIMESLICES
Definition: JRunAnalyzer.sh:20
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 set_variable ALL_PLOTS case set_variable NUMBER_OF_EVENTS
Definition: JRunAnalyzer.sh:18
version
Definition: JEditTuneHV.sh:5
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
&set_variable ALL_PLOTS
Definition: JRunAnalyzer.sh:21
Class dedicated to the analysis of KM3NeT runs.
Definition: JRunAnalyzer.hh:32
then
Definition: datalogs.sh:31
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
set_variable DETECTOR_FILE
Definition: JTuneHV.sh:43
&set_variable NUMBER_OF_SUMMARYSLICES
Definition: JRunAnalyzer.sh:19
const int n
Definition: JPolint.hh:786
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JCalibrateToT a
Definition: JTuneHV.sh:113
* usage
&set_variable OUT_FILE set_variable DETECTOR_FILE set_variable DAQ_FILE
Definition: JRunAnalyzer.sh:24
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
static JNullStream null
Null I/O stream.
Definition: JNullStream.hh:51
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 JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46