Jpp  17.2.1-pre0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Variables
archive-put-Detectors.sh File Reference

Go to the source code of this file.

Variables

 script
 
then usage $script< detector
identifier >[< archive >
< variant >] nAuxiliary script
to download official detectors
from wiki and noptionally
store corresponding JSON files
in given archive with given
variant fi case set_variable
VARIANT 
$argv [3]
 
*fatal Wrong number of
arguments esac set_variable
WIKI_HTML $WORKDIR wiki html
set_variable WIKI_TXT $WORKDIR
wiki txt 
if [["$DETID"=~"^[0-9]*[0-9]$"]]
 
then wget no check certificate user
 
do debug $__line__ echo
$__line__ read URL DETECTOR
RUNS 
RUNS
 
then wget no check certificate load cookies
 
do RUN1
 
 then
 
 RUN2 =99999999
 

Variable Documentation

script
Initial value:
=${0##*/}
source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
set_variable: DEBUG ARCHIVE_DEBUG 2
if do_usage $*
usr share Modules init zsh export TMPDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
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 fatal Timeout at user input fi set_variable SERVER JServerDB wget no check certificate q https
Definition: JCookie.sh:58
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62

Definition at line 2 of file archive-put-Detectors.sh.

& set_variable DETID $argv[1]

Definition at line 17 of file archive-put-Detectors.sh.

then if[["$ARCHIVE"!=""]]

Definition at line 19 of file archive-put-Detectors.sh.

then wget no check certificate user
Initial value:
--ask-password
-q
-O $WIKI_HTML
"$URL"
fi
xmllint --html $WIKI_HTML |
awk 'BEGIN { RS = "</tr>"; FS = "</td>" }
{
if ($1 ~ "https://km3netdbweb.in2p3.fr/detx/") {
URL = gensub(".*href *= *\"([^\"]+)\".*", "\\1", "", $1)
DETECTOR = gensub(".*(KM3NeT_.*\\.detx|TBD).*", "\\1", "", $1)
RUNS = gensub("(<td>|,|<br>|\n)", " ", "g", $2)
print gensub("\\&amp;", "\\&", "g", URL), DETECTOR, RUNS
}
}' > $WIKI_TXT
while read __line__
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
rm f XXX txt echo nlist all archive files that do have specific variants getArchive sh $ARCHIVE test km3net(mjg_2|mjg_1)" getFile.sh $ARCHIVE/test 100 101 km3net "(mjg_2|mjg_1)" XXX
do set_variable STRING_TXT awk

Definition at line 38 of file archive-put-Detectors.sh.

do echo Processing $INPUT_FILE JPrintDAQHeader f $INPUT_FILE read DETECTOR_ID RUN FRAME_INDEX UTC getUTC f $INPUT_FILE read A UTC RUNS
Initial value:
=(`echo $RUNS`)
notice "Processing $DETECTOR..."
if [[ "$DETECTOR" =~ "$DETID" ]]
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[*]

Definition at line 68 of file archive-put-Detectors.sh.

then wget no check certificate load cookies
Initial value:
=$HOME/.km3netdb_cookie
--secure-protocol=TLSv1_2
"$URL"
fi
for RANGE in $RUNS[*]
then fatal Detector file should be binary format fi eval JPrintDetector a $DETECTOR O IDENTIFIER typeset a INPUT_FILES for RANGE in $RUNS[*]
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 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
then fatal Invalid detector identifier $DETECTOR_ID fi set_variable RUNSETUPID typeset a RANGE RANGE[1]

Definition at line 78 of file archive-put-Detectors.sh.

RUN1
Initial value:
=${RANGE%%-*}
RUN2=${RANGE##*-}
if [[ "$RUN1" =~ "\.\." ]]
then fatal Invalid detector identifier $DETECTOR_ID fi set_variable RUNSETUPID typeset a RANGE RANGE[1]

Definition at line 86 of file archive-put-Detectors.sh.

then

Definition at line 89 of file archive-put-Detectors.sh.

RUN2 =99999999

Definition at line 90 of file archive-put-Detectors.sh.