Jpp - the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JAcoustics
hydrophone-t0:run.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
zmodload zsh/mathfunc
12
13
set_variable
:
DEBUG
ACOUSTICS_DEBUG 2
14
set_variable
:
WORKDIR
ACOUSTICS_WORKDIR ./
15
set_variable
: QUALITY_FACTOR ACOUSTICS_QUALITYFACTOR 0
16
17
if
do_usage $*;
then
18
usage
"$script <detector file> (input file)+ (toashort file)+"
\
19
"\nNote that the input files and toashort files should be one-to-one related."
20
fi
21
22
if
(( ${#} < 3 || ${#}%2 != 1 ));
then
23
fatal
"Wrong number of arguments."
24
fi
25
26
let
N
=
"(${#} - 1) / 2"
27
28
set_variable
DETECTOR
$argv
[1]
29
set_array
INPUT_FILES
$argv
[2,2+$N]
30
set_array TOASHORT_FILES $argv[-$N,-1]
31
32
eval `JPrintDetector -
a
$DETECTOR
-O IDENTIFIER`
33
eval `JPrintDetector -
a
$DETECTOR
-O SUMMARY`
34
35
source JAcoustics.sh $DETECTOR_ID
36
37
CHECK_EXIT_CODE
38
39
getModule
-
a
$DETECTOR
-L
"$STRINGS[1] 0"
>& /dev/
null
40
41
if
(( $? != 0 ));
then
42
43
JCookie.sh
44
45
JDetectorDB \
46
-
a
$DETECTOR
\
47
-
o
$DETECTOR
\
48
-W --!
49
fi
50
51
$JPP_DIR/examples/JAcoustics/JHydrophone \
52
-
a
$DETECTOR
\
53
-
f
"$INPUT_FILES[*]"
\
54
-i
"$TOASHORT_FILES[*]"
\
55
-
o
$WORKDIR
/hydrophone.root \
56
-
H
$WORKDIR
/hydrophone.txt \
57
-
T
$WORKDIR
/tripod.txt \
58
-V
$WORKDIR
/sound_velocity.txt \
59
-W
$WORKDIR
/waveform.txt \
60
-
Q
$QUALITY_FACTOR \
61
-
d
$DEBUG --!
Q
Q(UTCMax_s-UTCMin_s)-livetime_s
JPHYSICS::H
static const double H
Planck constant [eV s].
Definition:
JPhysics/JConstants.hh:28
exit
exit
Definition:
JPizza.sh:36
f
then JPizza f
Definition:
JPizza.sh:46
echo
then echo
Definition:
JDOMDAQDriver.sh:56
set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition:
JAcoustics.sh:20
T
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Definition:
JCalibrateHeight.sh:61
o
do $DIR JTransitTime o
Definition:
JTransitTime.sh:44
usage
* usage
Definition:
JLigier-local.sh:34
INPUT_FILES
set_array INPUT_FILES
Definition:
JCalibrateStrings.sh:26
$argv
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
Definition:
JDomino.sh:39
d
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition:
JMuonPath.sh:45
then
then
Definition:
examples/JDataFilter/JDataFilter.sh:87
a
then JCalibrateToT a
Definition:
JTuneHV.sh:116
$DETECTOR
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
Definition:
module-Z:fit.sh:116
DEBUG
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
Definition:
JCalibratePMT.sh:21
$WORKDIR
then display $WORKDIR
Definition:
plot-Domino.sh:127
WORKDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition:
JLegolas.sh:23
DETECTOR
set_variable DETECTOR
Definition:
JARCACalibrateMuon.sh:31
N
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition:
JMuonPostfit.sh:35
script
script
Definition:
JAcoustics.sh:2
null
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
Definition:
examples/JLogger/JLogger.sh:33
getModule
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number
Definition:
JBeaconSimulator.cc:928
Generated by
1.8.5