Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JUTCProfile.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 UTC 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 
25 set_variable OUTPUT_FILE utc.root
26 
27 if do_usage $*; then
28  usage "$script <input file> [output file]"
29 fi
30 
31 case $# in
34 esac
35 
36 if (( 1 )); then
37 
38  check_input_file $INPUT_FILE
39 
40  $JPP_DIR/examples/JDAQ/JUTCProfile \
41  -f $INPUT_FILE \
42  -o $OUTPUT_FILE \
43  -d $DEBUG
44 
45 fi
46 
47 if (( 1 )); then
48 
49  JPlot1D \
50  -f ${OUTPUT_FILE}:UTC \
51  -T "UTC" \
52  -\> "100 ms" \
53  -\^ "time [ns]" \
54  -w 500x500 \
55  -o UTC.gif \
56  -L TR
57 
58 fi
59 
60 if (( 1 )); then
61 
62  JPlot1D \
63  -f ${OUTPUT_FILE}:dt \
64  -T "UTC" \
65  -\> "#Deltat [ns]" \
66  -\^ "number of events [a.u.]" \
67  -w 500x500 \
68  -o utc.gif \
69  -L TR
70 
71 fi
data_type w[N+1][M+1]
Definition: JPolint.hh:741
set_variable INPUT_FILE
exit
Definition: JPizza.sh:36
then JPizza f
Definition: JPizza.sh:46
then echo
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:20
do set_variable OUTPUT_DIRECTORY $WORKDIR T
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
then JFileTuna f $INPUT_FILE
Definition: file-Tuna.sh:66
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
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 source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:38
version
Definition: JCalibratePMT.sh:7