Jpp  15.0.3
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JAnglerFish.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 
3 version=1.0
4 script=${0##*/}
5 
6 
7 if [ -z $JPP_DIR ]; then
8  echo "Variable JPP_DIR undefined."
9  exit
10 fi
11 
12 source $JPP_DIR/setenv.sh $JPP_DIR
13 
14 if do_usage $*; then
15  usage "$script <daq file> <detector file> <multiplicity> <output directory>"
16 fi
17 
18 if (( $# < 3 )); then
19  fatal "Not enough arguments."
20 fi
21 
24 set_variable MULTIPLICITY $argv[3]
26 
27 set_variable OUTPUT_FILE ${OUTPUT_DIR}/$(basename $DAQ_FILE .root)_Spark.root
28 
29 ${JPP_DIR}/examples/JMonitor/JAnglerFish \
30  -f ${DAQ_FILE} \
31  -o ${OUTPUT_FILE} \
32  -a ${DETECTOR_FILE} \
33  -m ${MULTIPLICITY} \
34  --!
35 
36 JPlot1D \
37  -f "${OUTPUT_FILE}:MEvt" \
38  -\> "Multiplicity" \
39  -\^ "Counts" \
40  -T "$(basename $DAQ_FILE) Snapshot" \
41  -O "colz" \
42  -o "${OUTPUT_DIR}/$(basename $DAQ_FILE .root)_multiplicity_Evt.png" \
43  -B
44 
45 JPlot2D \
46  -f "${OUTPUT_FILE}:FEvt" \
47  -\> "String Number" \
48  -\< "Floor Number" \
49  -\^ "Counts" \
50  -T "$(basename $DAQ_FILE) Snapshot" \
51  -O "colz" \
52  -p 112 \
53  -o "${OUTPUT_DIR}/$(basename $DAQ_FILE .root)_candidates_Evt.png" \
54  -B
55 
56 JPlot1D \
57  -f "${OUTPUT_FILE}:ML0" \
58  -\> "Multiplicity" \
59  -\^ "Counts" \
60  -T "$(basename $DAQ_FILE) L0" \
61  -O "colz" \
62  -o "${OUTPUT_DIR}/$(basename $DAQ_FILE .root)_multiplicity_L0.png" \
63  -B
64 
65 JPlot2D \
66  -f "${OUTPUT_FILE}:FL0" \
67  -\> "String Number" \
68  -\< "Floor Number" \
69  -\^ "Counts" \
70  -T "$(basename $DAQ_FILE) L0" \
71  -O "colz" \
72  -p 112 \
73  -o "${OUTPUT_DIR}/$(basename $DAQ_FILE .root)_candidates_L0.png" \
74  -B
75 
76 set_variable OCCURENCES `JPrintResult -f ${OUTPUT_FILE}:FEvt -F "GetEntries"`
77 
78 if [[ $OCCURENCES != "" ]]; then
79  echo $RED "Number of pulse trains above threshold: " $OCCURENCES
80 fi
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn only modules within the given range of floors are used fi case set_variable RANGE $argv[3]
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
exit
Definition: JPizza.sh:36
set_variable DETECTOR_FILE
Definition: JTuneHV.sh:43
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
then awk F
* usage
then JConvertDetectorFormat a $DETECTOR[1] o
&set_variable DETECTOR_FILE set_variable DAQ_FILE
&set_variable OUTPUT_FILE
then JCalibrateToT a
Definition: JTuneHV.sh:116
version
Definition: JCalibratePMT.sh:7
&set_variable OUTPUT_DIR