Jpp  18.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
26 set_variable: FORMAT GRAPHICS_FORMAT gif
27 set_variable+ BATCH GRAPHICS_BATCH -B
28 
29 if do_usage $*; then
30  usage "$script <input file> [prescale]"
31 fi
32 
33 case $# in
36  *) fatal "Wrong number of arguments."
37 esac
38 
39 set_variable OUTPUT_FILE profile.root
40 
41 if (( 1 )); then
42 
43  $JPP_DIR/examples/JDAQ/JDAQProfile \
44  -f $INPUT_FILE \
45  -o $OUTPUT_FILE \
46  -P $PRESCALE \
47  -d $DEBUG --!
48 fi
49 
50 
51 if (( 1 )); then
52 
53  JPlot1D \
54  -w 1200x600 \
55  -f"${OUTPUT_FILE}:#N" \
56  -f"${OUTPUT_FILE}:#M" \
57  -f"${OUTPUT_FILE}:#L" \
58  -\> "time [100 ms]" \
59  -\^ "number of modules" \
60  -T "summary" \
61  -L BR \
62  -O HIST \
63  -o N.$FORMAT $BATCH
64 fi
65 
66 
67 if (( 1 )); then
68 
69  JPlot1D \
70  -w 1200x600 \
71  -f ${OUTPUT_FILE}:L0 \
72  -\> "time [100 ms]" \
73  -\^ "rate [kHz]" \
74  -T "L0 rate" \
75  -L BR \
76  -O HIST \
77  -o L0.$FORMAT $BATCH
78 fi
79 
80 if (( 1 )); then
81 
82  JPlot1D \
83  -w 1200x600 \
84  -f ${OUTPUT_FILE}:WR \
85  -\> "time [100 ms]" \
86  -\^ "probability" \
87  -T "WR status" \
88  -O HIST \
89  -o WR.$FORMAT $BATCH
90 fi
91 
92 if (( 1 )); then
93 
94  JPlot1D \
95  -w 1200x600 \
96  -f ${OUTPUT_FILE}:trigger \
97  -\> "time [100 ms]" \
98  -\^ "rate [Hz]" \
99  -T "Trigger rate" \
100  -O HIST \
101  -o trigger.$FORMAT $BATCH
102 fi
data_type w[N+1][M+1]
Definition: JPolint.hh:867
then usage $script< input file >[prescale] fi case set_variable PRESCALE
Definition: JDAQProfile.sh:34
version
Definition: JEditTuneHV.sh:5
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:31
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
do set_variable OUTPUT_DIRECTORY $WORKDIR T
* usage
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
&set_variable OUTPUT_FILE
set_variable INPUT_FILE
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable TRIPOD $argv[2] set_variable TX $argv[3] set_variable TY $argv[4] if[[!-f $DETECTOR]]
Definition: JFootprint.sh:28
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition: JMuonPostfit.sh:40
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
then echo
Definition: JQAQC.sh:90
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62
Q WR
Definition: JDataQuality.sh:60