Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JAcousticsDisable.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: NMIN ACOUSTICS_NMIN 150
14 set_variable: TMAX_US ACOUSTICS_TMAX_US 300
15 set_variable: QUANTILES ACOUSTICS_QUANTILES 0.01 0.99
16 
17 if do_usage $*; then
18  usage "$script <detector file> (input file)+ <disable file>"\
19  "\nAuxiliary script for disabling transmissions."\
20  "\nInput files correspond to the output of JAcousticsEventBuilder[.sh]."
21 fi
22 
23 if (( $# < 3 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
28 set_array INPUT_FILES $argv[2,-2]
29 set_variable DISABLE $argv[-1]
30 
31 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER`
32 
33 JAcoustics.sh $DETECTOR_ID
34 
35 CHECK_EXIT_CODE
36 
37 mv acoustics_fit_parameters.txt .acoustics_fit_parameters.txt
38 
39 cat>acoustics_fit_parameters.txt<<EOF
40 Nmin = 3;
41 Tmax_s = 600.0;
42 chi2perNDF = 100.0;
43 mestimator = 0;
44 option = 2;
45 sigma_s = 50.0e-6;
46 stdev = 10.0;
47 EOF
48 
49 set_variable DIR `mktemp -d $WORKDIR/XXXXXX`
50 
51 JKatoomba.sh $DETECTOR $INPUT_FILES[*] $DIR/katoomba.root
52 JCanberra.sh $DETECTOR $DIR/katoomba.root $DIR/canberra\[%\].root
53 
54 mv .acoustics_fit_parameters.txt acoustics_fit_parameters.txt
55 
56 echo "\n"
57 
58 JAcousticsDisable \
59  -f $DIR/canberra\*.root \
60  -o /dev/null \
61  -N $NMIN \
62  -T $TMAX_US \
63  -Q "$QUANTILES" \
64  -! $DISABLE \
65  -d $DEBUG --!
66 
67 JEditDisable \
68  -f $DISABLE \
69  -o $DISABLE \
70  -a $DETECTOR \
71  -q \
72  -d $DEBUG --!
73 
74 rm -rf $DIR
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
Q(UTCMax_s-UTCMin_s)-livetime_s
then JLigier sh continue fi cat
Definition: JDAQDriver.sh:51
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:34
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DETECTOR_ID set_array RUNS if do_usage *then usage $script< source directory > nThe source directory corresponds to a pre calibrated D0ARCA009 detector fi case set_variable DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then rm
Definition: sftpput.zsh:30
then JCalibrateToT a
Definition: JTuneHV.sh:107
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable WORKDIR if do_usage *then usage for INPUT_FILE in $INPUT_FILES[*]
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 JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonStart.sh:47
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition: JDrawPDF.sh:45
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition: JMuonPostfit.sh:40
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 JHobbit a $DETECTOR f
do sput $STRING $FLOOR sget MODULE INPUT_FILES
set_variable DETECTOR
then echo
Definition: JQAQC.sh:92
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62