Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
compass_00000075.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 
3 # --------------------------------------------------------------------------------------------
4 #
5 # Steering script for the compass calibration procedure of the D0ARCA006 (75) detector.
6 #
7 # --------------------------------------------------------------------------------------------
8 
9 if [ -z $JPP_DIR ]; then
10  echo "Variable JPP_DIR undefined."
11  exit
12 fi
13 
14 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
15 
17 set_array RUNS 9690-9715
18 
19 if do_usage $*; then
20  usage "$script <detector file>"
21 fi
22 
23 if (( $# != 1 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
28 
29 rm -f $WORKDIR/compass-*.root
30 
31 JCompass.sh $DETECTOR $RUNS[*] $WORKDIR/compass-\[before\].root
32 
33 JConvertDetectorFormat -a $DETECTOR -o ${TMPDIR:-/tmp}/detector.datx
34 
35 JCompass.sh ${TMPDIR:-/tmp}/detector.datx $RUNS[*] $WORKDIR/compass-\[after\].root
36 
37 set_variable GRAPHICS_BATCH
38 
39 $JPP_DIR/examples/JCompass/plot-compass.sh $DETECTOR $WORKDIR/compass-\[before\].root $WORKDIR/compass-\[after\].root
then usage $script< option > nPossible plot
Definition: JMatrixNZ.sh:34
set_array RUNS
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
usr share Modules init zsh export TMPDIR
exit
Definition: JPizza.sh:36
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo
then fatal Detector file should be binary format fi eval JPrintDetector a $DETECTOR O IDENTIFIER typeset a INPUT_FILES for RANGE in $RUNS[*]
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:116
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
* usage
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 display $WORKDIR
Definition: plot-Domino.sh:128
set_variable DETECTOR
do set_variable DETECTOR_TXT $WORKDIR detector
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null