Jpp
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
examples
JDAQ
JDAQProfile.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 profiling.
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
define_variable
INPUT_FILE
26
set_variable
OUTPUT_FILE
profile.root
27
set_variable
PRESCALE 1
28
#set_variable PRESCALE 4000
29
30
if
( do_usage $* );
then
31
usage
"$script <input file> [output file]"
32
fi
33
34
case
$#
in
35
2)
set_variable
OUTPUT_FILE
$2;&
36
1)
set_variable
INPUT_FILE
$1;;
37
*) fatal
"Wrong number of arguments."
38
esac
39
40
if
(( 1 ));
then
41
42
check_input_file
$INPUT_FILE
43
44
timer_start
45
46
$JPP_DIR/examples/JDAQ/JDAQProfile \
47
-
f
$INPUT_FILE
\
48
-o $OUTPUT_FILE \
49
-
P
$PRESCALE \
50
-
d
$DEBUG --!
51
52
timer_stop
53
timer_print
54
55
fi
56
57
58
if
(( 1 ));
then
59
60
JPlot1D \
61
-
f
${
OUTPUT_FILE
}:
N
\
62
-
T
"${INPUT_FILE##*/}"
\
63
-x
"0 1000"
\
64
-\>
"100 ms"
\
65
-\^
"number of modules"
\
66
-
w
800x400 \
67
-o
N
.gif \ fi
68
69
70
if
(( 1 ));
then
71
72
JPlot1D \
73
-
f
${
OUTPUT_FILE
}:L0 \
74
-
T
"L0 rate"
\
75
-\>
"100 ms"
\
76
-\^
"rate [kHz]"
\
77
-
w
800x400 \
78
-o L0-
rate
.gif \
79
-L TR
80
81
fi
82
83
if
(( 1 ));
then
84
85
JPlot1D \
86
-
f
${
OUTPUT_FILE
}:WR \
87
-
T
"WR status"
\
88
-\>
"100 ms"
\
89
-\^
"number of frames"
\
90
-
w
800x400 \
91
-L TR
92
93
fi
94
95
if
(( 1 ));
then
96
97
JPlot1D \
98
-
f
${
OUTPUT_FILE
}:trigger \
99
-
T
"Trigger rate"
\
100
-\>
"100 ms"
\
101
-\^
"rate [Hz]"
\
102
-
w
800x400 \
103
-o trigger-
rate
.gif
104
105
fi
106
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
rate
then set_variable singlesRate set_variable doublesRate set_variable numberOfSlices echo Generating random background echo Singles rate
Definition:
software/JDataWriter/JDataWriter.sh:95
in
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition:
JSirene.sh:45
exit
exit
Definition:
JPizza.sh:36
INPUT_FILE
&set_variable INPUT_FILE
Definition:
JLegolas.sh:30
OUTPUT_FILE
do OUTPUT_FILE
Definition:
software/JDataWriter/JDataWriter.sh:97
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
T
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Definition:
JCalibrateHeight.sh:61
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
P
then $DIR JPlotNPE PDG P
Definition:
JPlotNPE-PDG.sh:60
DEBUG
#define DEBUG(A)
Message macros.
Definition:
JMessage.hh:62
Generated by
1.8.5