Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JDAQ
JDAQHitRouter.sh
Go to the documentation of this file.
1
#!/bin/zsh
2
#
3
# \author mdejong
4
#
5
version
=1.0
6
script=${0##*/}
7
8
# ------------------------------------------------------------------------------------------
9
#
10
# Example script for JDAQHitRouter.
11
#
12
# ------------------------------------------------------------------------------------------
13
14
15
if
[ -z $JPP_DIR ];
then
16
echo
"Variable JPP_DIR undefined."
17
exit
18
fi
19
20
21
source $JPP_DIR/setenv.sh $JPP_DIR
22
23
24
set_variable
DEBUG
2
25
set_variable
WORKDIR
/
tmp
/
26
set_variable
DETECTOR
$JPP_DATA/km3net_reference.detx
27
set_variable
INPUT_FILE
$JPP_DATA/trigger_efficiency+background.root
28
set_variable
OUTPUT_FILE
histogram.root
29
30
if
( do_usage $* );
then
31
usage
"$script [detector [input file [output file]]]"
32
fi
33
34
case
$#
in
35
3)
set_variable
OUTPUT_FILE
$3;&
36
2)
set_variable
INPUT_FILE
$2;&
37
1)
set_variable
DETECTOR
$1;;
38
*) fatal
"Wrong number of arguments."
39
esac
40
41
42
if
(( 1 ));
then
43
44
print_variable
DETECTOR
INPUT_FILE
OUTPUT_FILE
45
check_input_file $DETECTOR
$INPUT_FILE
46
47
timer_start
48
49
$JPP_DIR/examples/JDAQ/JDAQHitRouter \
50
-
a
$DETECTOR \
51
-
f
$INPUT_FILE
\
52
-o $OUTPUT_FILE \
53
-
d
$DEBUG
54
55
timer_stop
56
timer_print
57
58
fi
59
60
61
if
(( 1 ));
then
62
63
JPlot1D \
64
-
f
${
OUTPUT_FILE
}:
h1
\
65
-\>
"#Deltat [#mus]"
\
66
-\^
"number of events [a.u.]"
67
68
fi
69
70
71
if
(( 1 ));
then
72
73
JPlot2D \
74
-
f
${
OUTPUT_FILE
}:h2 \
75
-\>
"string"
\
76
-\<
"floor"
\
77
-OCOLZ \
78
-
w
1200x600 \
79
-
N
"X 510"
\
80
-
N
"Y 510"
81
82
fi
JTOOLS::w
data_type w[N+1][M+1]
Definition:
JPolint.hh:708
JSYSTEM::set_variable
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
Definition:
JSystemToolkit.hh:404
DETECTOR
set_variable DETECTOR
Definition:
JLegolas.sh:31
in
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition:
JSirene.sh:45
exit
exit
Definition:
JPizza.sh:36
h1
then for HISTOGRAM in h0 h1
Definition:
JMatrixNZ.sh:69
INPUT_FILE
&set_variable INPUT_FILE
Definition:
JLegolas.sh:30
OUTPUT_FILE
do OUTPUT_FILE
Definition:
software/JDataWriter/JDataWriter.sh:97
a
fi JEventTimesliceWriter a
Definition:
JEventProcessor.sh:71
f
then JPizza f
Definition:
JPizza.sh:46
echo
then echo
Definition:
JDOMDAQDriver.sh:56
timer_start
then timer_start(JRandomTimesliceWriter-a ${DETECTOR}-o ${PIPE}-n ${NUMBER_OF_SLICES}-P ${PMT_FILE}-d ${DEBUG}-S ${SEED}-B"$BACKGROUND_HZ"-N"$RECYCLING"--!&&for((i=0;$i!=10;++i));do;echo 'EOF' > $PIPE;usleep 100000;done &&rm-f $PIPE)&JTimesliceReprocessor-a $
Definition:
JTimesliceReprocessor.sh:57
tmp
do montage tile geometry tmp
Definition:
plot-PMTParameters2D.sh:116
d
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition:
JPath.sh:52
usage
* usage
Definition:
JLigier-local.sh:33
$INPUT_FILE
then JFileTuna f $INPUT_FILE
Definition:
file-Tuna.sh:66
then
then
Definition:
examples/JDataFilter/JDataFilter.sh:87
N
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition:
JMuonPostfit.sh:37
version
version
Definition:
JCalibratePMT.sh:7
WORKDIR
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition:
JLegolas.sh:28
DEBUG
#define DEBUG(A)
Message macros.
Definition:
JMessage.hh:62
Generated by
1.8.5