Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JPMTStatus.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 #
4 # \author acreusot
5 #
6 version=1.0
7 script=${0##*/}
8 
9 # ------------------------------------------------------------------------------------------
10 #
11 # Utility script to set PMT status in detector file.
12 #
13 # ------------------------------------------------------------------------------------------
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 source $JPP_DIR/setenv.sh $JPP_DIR
21 
22 set_variable: DEBUG CALIBRATION_DEBUG 2
23 set_variable: DAQ_TIMESLICE CALIBRATION_TIMESLICE JDAQTimesliceL1
24 set_variable WORKDIR ${TMPDIR:-/tmp}/
25 
26 if do_usage $*; then
27  usage "$script <detector file> <input file>"
28 fi
29 
30 case $# in
33  *) fatal "Wrong number of arguments.";;
34 esac
35 
37 
38 if (( 1 )); then
39 
40  JCalibrateToT \
41  -a ${DETECTOR} \
42  -f ${INPUT_FILE} \
43  -o ${OUTPUT_FILE} \
44  -C ${DAQ_TIMESLICE} \
45  -d $DEBUG --!
46 fi
47 
48 if (( 1 )); then
49 
50  JPMTStatus \
51  -a ${DETECTOR} \
52  -f ${OUTPUT_FILE} \
53  -t 0.5 \
54  -A \
55  -d $DEBUG --!
56 fi
&set_variable DAQ_TIMESLICE
Definition: JLegolas.sh:32
version
Definition: JEditTuneHV.sh:5
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
usr share Modules init zsh export TMPDIR
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:31
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
static const double C
Physics constants.
then JCalibrateToT a
Definition: JTuneHV.sh:113
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
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
* usage
&set_variable OUTPUT_FILE
set_variable INPUT_FILE
fi set_variable FILENAME $WORKDIR
Definition: datalogs.sh:34
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
std::vector< JPMTStatus_t > JPMTStatus
PMT status.
static void monitor()
Definition: DataQueue.cc:32
set_variable DETECTOR
then echo
Definition: JQAQC.sh:96
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62