Jpp  15.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
software/JAcoustics/JKatoomba.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable: DEBUG ACOUSTICS_DEBUG 2
12 set_variable: WORKDIR ACOUSTICS_WORKDIR ./
13 set_variable: FIT ACOUSTICS_FIT 2
14 
15 if do_usage $*; then
16  usage "$script <detector file> (input file)+ <output file>"\
17  "\nAuxiliary script to process acoustic data for dynamic position calibration."\
18  "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
19 fi
20 
21 if (( $# < 3 )); then
22  fatal "Wrong number of arguments."
23 fi
24 
26 set_array INPUT_FILES $argv[2,-2]
27 set_variable OUTPUT_FILE $argv[-1]
28 
29 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
30 
31 source JAcoustics.sh $DETECTOR_ID
32 
33 CHECK_EXIT_CODE
34 
36 
37 JKatoomba \
38  -a $DETECTOR \
39  -f "$INPUT_FILES[*]" \
40  -o $OUTPUT_FILE \
41  -T $WORKDIR/tripod.txt \
42  -V $WORKDIR/sound_velocity.txt \
43  -M $WORKDIR/mechanics.txt \
44  -@ $WORKDIR/acoustics_fit_parameters.txt \
45  -! $WORKDIR/disable.txt \
46  -F $FIT \
47  -u \
48  -d $DEBUG --!
49 
50 timer_stop
51 timer_print
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used fi case set_variable RANGE $argv[3]
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
exit
Definition: JPizza.sh:36
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
then echo
then timer_start(JRandomTimesliceWriter-a ${DETECTOR}-o ${PIPE}-n ${NUMBER_OF_SLICES}-P ${PMT_FILE}-d ${DEBUG}-S ${SEED}-B"$BACKGROUND_HZ"-N"$RECYCLING"--!&&for((i=0;$i!=10;++i));do;echo 'EOF' > $PIPE;usleep 100000;done &&rm-f $PIPE)&JTimesliceReprocessor-a $
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
then awk F
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
do sput $STRING $FLOOR sget MODULE INPUT_FILES
Definition: JCanberra.sh:73
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then JCalibrateToT a
Definition: JTuneHV.sh:116
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then display $WORKDIR
Definition: plot-Domino.sh:128
set_variable DETECTOR
double u[N+1]
Definition: JPolint.hh:739
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null