Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
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
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 
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 \
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  -O COLZ \
78  -w 1200x600 \
79  -N "X 510" \
80  -N "Y 510" \
81  -T "Trigger"
82 
83 fi
84 
85 
86 if (( 1 )); then
87 
88  JPlot2D \
89  -f ${OUTPUT_FILE}:h3 \
90  -\> "string" \
91  -\< "floor" \
92  -O COLZ \
93  -w 1200x600 \
94  -N "X 510" \
95  -N "Y 510" \
96  -T "Snapshot"
97 
98 fi
data_type w[N+1][M+1]
Definition: JPolint.hh:741
set_variable INPUT_FILE
exit
Definition: JPizza.sh:36
then for HISTOGRAM in h0 h1
Definition: JMatrixNZ.sh:69
then JPizza f
Definition: JPizza.sh:46
then echo
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 $
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 JCalibrateToT a
Definition: JTuneHV.sh:116
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:23
set_variable DETECTOR
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
then usage $script[input file[working directory[option]]] nWhere option can be N
Definition: JMuonPostfit.sh:35
version
Definition: JCalibratePMT.sh:7