Jpp  18.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JCompareDynamics.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 script=${0##*/}
3 
4 if [ -z $JPP_DIR ]; then
5  echo "Variable JPP_DIR undefined."
6  exit
7 fi
8 
9 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
10 
11 set_variable: DEBUG DYNAMICS_DEBUG 2
12 set_variable: WORKDIR DYNAMICS_WORKDIR ./
13 set_variable TSTEP_S 600.0
14 set_variable DIR $JPP_DIR/examples/JDynamics/
15 set_variable: TIMESTAMP GRAPHICS_TIMESTAMP utc
16 set_variable: FORMAT GRAPHICS_FORMAT gif
17 
18 if do_usage $*; then
19  usage "$script <detector file> <calibration file 1> <calibration file 2>"
20  "\nCalibration files correspond to the output of JKatoomba[.sh]."
21 fi
22 
23 if (( $# < 3 )); then
24  fatal "Wrong number of arguments."
25 fi
26 
28 set_variable INPUT_FILE_1 $argv[2]
29 set_variable INPUT_FILE_2 $argv[3]
30 set_variable OUTPUT_FILE $WORKDIR/compare_dynamic_positions.root
31 
32 eval `JPrintDetector -a $DETECTOR -O SUMMARY`
33 
34 $DIR/JCompareDynamicPositions \
35  -a $DETECTOR \
36  -f "$INPUT_FILE_1" \
37  -F "$INPUT_FILE_2" \
38  -o $OUTPUT_FILE \
39  -T $TSTEP_S \
40  -d $DEBUG --!
41 
42 echo "Creating graphics output in directory $WORKDIR"
43 
44 JPlot1D \
45  -w 1200x600 \
46  -f $OUTPUT_FILE:H\.\*comparetx \
47  -\^ "#DeltaTx [mrad]" \
48  -N "X 505" \
49  -t "$TIMESTAMP" \
50  -L BR \
51  -T "" \
52  -o $WORKDIR/comparetx.$FORMAT -B
53 
54 JPlot1D \
55  -w 1200x600 \
56  -f $OUTPUT_FILE:K\.\*comparety \
57  -\^ "#DeltaTy [mrad]" \
58  -N "X 505" \
59  -t "$TIMESTAMP" \
60  -L TR \
61  -T "" \
62  -o $WORKDIR/comparety.$FORMAT -B
63 
64 JPlot1D \
65  -w 1200x600 \
66  -f $OUTPUT_FILE:M\.\*comparetx \
67  -\> "#DeltaTx [mrad]" \
68  -\^ "number of events [a.u.]" \
69  -N "X 505" \
70  -L BR \
71  -T "" \
72  -s 100110 \
73  -x "0 1" \
74  -o $WORKDIR/comparetx_hist.$FORMAT -B
75 
76 JPlot1D \
77  -w 1200x600 \
78  -f $OUTPUT_FILE:N\.\*comparety \
79  -\> "#DeltaTy [mrad]" \
80  -\^ "number of events [a.u.]" \
81  -N "X 505" \
82  -L BR \
83  -T "" \
84  -s 100110 \
85  -x "0 1" \
86  -o $WORKDIR/comparety_hist.$FORMAT -B
87 
88 #clean
89 rm compare_dynamic_positions.root
data_type w[N+1][M+1]
Definition: JPolint.hh:867
then usage $script< detector identifier >< startdate\"YYYY-MM-DDHH:MM:SS\"><finaldate\"YYYY-MM-DDHH:MM:SS\"><QA/QCfile> fi case set_variable QAQC_TXT $argv[4]
Definition: JDataMonitor.sh:24
static const uint32_t K[64]
Definition: crypt.cc:77
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
static const double H
Planck constant [eV s].
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:31
then fatal Wrong number of arguments fi DIR
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then rm
Definition: sftpput.zsh:30
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JCalibrateToT a
Definition: JTuneHV.sh:113
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
then awk F
* usage
&set_variable OUTPUT_FILE
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition: JMuonPostfit.sh:40
fi set_variable FILENAME $WORKDIR
Definition: datalogs.sh:34
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
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
set_variable DETECTOR
then echo
Definition: JQAQC.sh:90
static const char *const TIMESTAMP
Time stamp of earliest UTC time.
script
Definition: JAcoustics.sh:2
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62