Jpp
19.0.0
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
software
JTimeslice
JRandomTimesliceWriterRunByRun.sh
Go to the documentation of this file.
1
#!/bin/zsh
2
#
3
# \author mdejong
4
#
5
script
=${0##*/}
6
7
# ------------------------------------------------------------------------------------------
8
#
9
# Example script to run JRandomTimesliceWriter.
10
#
11
# ------------------------------------------------------------------------------------------
12
13
if
[ -
z
$JPP_DIR ];
then
14
echo
"Variable JPP_DIR undefined."
15
exit
16
fi
17
18
source $JPP_DIR/setenv.sh $JPP_DIR
19
20
set_variable
:
DEBUG
TIMESLICE_DEBUG 1
21
set_variable
:
WORKDIR
TIMESLICE_WORKDIR ./
22
set_variable
: BACKGROUND_HZ TIMESLICE_BACKGROUND_HZ `
getK40Rates
`
23
set_variable
: SEED TIMESLICE_SEED 0
24
set_variable
: NUMBER_OF_SLICES TIMESLICE_SLICES 10
25
set_variable
: RECYCLING TIMESLICE_RECYCLING
"0 0"
26
set_variable
: FACTOR TIMESLICE_FACTOR 1.0
27
set_variable: SAMPLER TIMESLICE_SAMPLER
"1 1000"
28
29
if
do_usage $*;
then
30
usage
"$script <detector file> <output file> <DAQ file> <PMT parameters file>"
\
31
"\nAuxiliary script to produce random time slice data."
32
fi
33
34
if
(( $# == 4 ));
then
35
set_variable
DETECTOR
$1
36
set_variable
OUTPUT_FILE
$2
37
set_variable
DAQ_FILE
$3
38
set_variable
PMT_FILE
$4
39
else
40
fatal
"Wrong number of arguments."
41
fi
42
43
JPrintTree -
f
$DAQ_FILE -@
"type = JDAQSummaryslice"
-
k
number_of_entries |
read
N
44
45
set_variable
RUNBYRUN
"file=$DAQ_FILE; sampler=${SAMPLER%% *} $(($N / 2))"
46
47
JRandomTimesliceWriter \
48
-
a
${
DETECTOR
} \
49
-
o
${
OUTPUT_FILE
} \
50
-
n
${NUMBER_OF_SLICES} \
51
-
P
${
PMT_FILE
} \
52
-
P
"QE=${FACTOR}"
\
53
-S ${SEED} \
54
-B
"$BACKGROUND_HZ"
\
55
-
N
"$RECYCLING"
\
56
-
r
"${RUNBYRUN}"
\
57
-
d
${
DEBUG
} \
58
--!
k
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
Definition:
hydrophone-phi:fit.sh:35
JCOMPAREHISTOGRAMS::read
std::istream & read(std::istream &in, JTestSummary &summary, const char delimiter= ' ')
Read test summary.
Definition:
JTestSummary.hh:222
PMT_FILE
then usage $script[detector file[output file[trigger file[PMT parameters file]]]] fi case set_variable PMT_FILE
Definition:
JEventProcessor.sh:39
exit
exit
Definition:
JPizza.sh:36
JTOOLS::r
data_type r[M+1]
Definition:
JPolint.hh:868
script
script
Definition:
archive-get-calibration.sh:2
then
then
Definition:
datalogs.sh:34
o
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
Definition:
software/JDetector/compare-detector.sh:31
JTOOLS::n
const int n
Definition:
JPolint.hh:786
a
then JCalibrateToT a
Definition:
JTuneHV.sh:107
ANTARES::getK40Rates
const JK40Rates & getK40Rates()
Get K40 rates.
Definition:
Antares.hh:27
set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition:
archive-get-calibration.sh:14
WORKDIR
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
* usage
Definition:
JLigier-local.sh:34
OUTPUT_FILE
&set_variable OUTPUT_FILE
Definition:
JARCACalibrateMuon.sh:29
DAQ_FILE
&set_variable OUT_FILE set_variable DETECTOR_FILE set_variable DAQ_FILE
Definition:
JRunAnalyzer.sh:24
fi
fi
Definition:
JEvtReweightMupageParameterScan.sh:258
d
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition:
JMuonStart.sh:47
z
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition:
JDrawPDF.sh:45
N
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition:
JMuonPostfit.sh:40
f
then JHobbit a $DETECTOR f
Definition:
software/JCalibrate/JHobbit.sh:42
DETECTOR
set_variable DETECTOR
Definition:
JARCACalibrateMuon.sh:31
echo
then echo
Definition:
JQAQC.sh:92
P
then $DIR JPlotNPE PDG P
Definition:
JPlotNPE-PDG.sh:62
DEBUG
#define DEBUG(A)
Message macros.
Definition:
JMessage.hh:62
Generated by
1.8.5