Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
archive-get-calibration.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 ARCHIVE_DEBUG 2
12 set_variable: WORKDIR ARCHIVE_WORKDIR ${TMPDIR:-/tmp}/
13 
14 if do_usage $*; then
15  usage "$script <archive> <detector identifier> [version]"\
16  "\nAuxiliary script to retrieve pre-calibration results from archive."
17 fi
18 
19 if (( $# != 2 )) && (( $# != 3 )); then
20  fatal "Wrong number of arguments."
21 fi
22 
23 set_variable ARCHIVE $argv[1]
26 
27 source JAcousticsToolkit.sh
28 
29 RUN=1
30 
31 if [[ ! -f $ACOUSTICS_DETECTOR ]]; then
32  archive-get-Detector.sh $ARCHIVE $ID $RUN detector $ACOUSTICS_DETECTOR $VERSION
33 fi
34 
35 eval `JPrintDetector -a $ACOUSTICS_DETECTOR -O IDENTIFIER`
36 
37 if (( $DETECTOR_ID != $ID )); then
38  fatal "Inconsistent detector identifiers $DETECTOR_ID != $ID"
39 fi
40 
41 for KEY in $ACOUSTICS_AUXS[*]; do
42  if [[ ! -f $KEY.txt ]]; then
43  getFile.sh $ARCHIVE $ID $RUN $KEY $VERSION $KEY
44  fi
45 done
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:34
then fatal Invalid path $argv[1] fi setopt extendedglob typeset Z8 ID function archive()
Definition: getArchive.sh:42
TFile * getFile(const std::string &file_name, const std::string &option="exist")
Get TFile pointer corresponding to give file name.
then JCalibrateToT a
Definition: JTuneHV.sh:107
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
&set_variable VERSION
Definition: getLs.sh:21
then rm i $OUTPUT_FILE fi let RUN
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
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 ls $DIR $ID
Definition: getArchive.sh:89
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition: JDrawPDF.sh:45
then fatal The output file must have the wildcard in the e g root fi 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:48
then JHobbit a $DETECTOR f
do set_variable DETECTOR_TXT $WORKDIR detector
then echo
Definition: JQAQC.sh:92
then getFile sh $ARCHIVE $DETECTOR_ID $RUN positions $VERSION
Definition: JSpark.sh:47
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
then echo Monitoring data echo Detector
Definition: JSlewingK40.sh:97
esac done
Definition: JAddHDE.sh:21
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62