Jpp  17.3.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
darkroomCalibration.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 test darkroom time calibration.
12 #
13 # ------------------------------------------------------------------------------------------
14 # all data related to interdom time calibration have to be set in the same directory
15 
16 
17 if [ -z $JPP_DIR ]; then
18  echo "Variable JPP_DIR undefined."
19  exit
20 fi
21 
22 source $JPP_DIR/setenv.sh $JPP_DIR
23 
25 
26 if do_usage $*; then
27  usage "$script <working directory> <detector file> <inter data directory> <refPMT>"
28 fi
29 
30 case $# in
31  4) set_variable PMT $4;
35  *) fatal "wrong number of arguments!";;
36 esac
37 
39 
40 if (( 1 )); then
41  cp ${WORKDIR}/${DETX} ${WORKDIR}/${BASENAME}_darkroomCalibration_pmt${PMT}.detx
42 fi
43 
45 for FILEPATH in $(ls ${WORKDIR}/${INTERDIR}/); do
46  FILELISTINTER1+=("${WORKDIR}/${INTERDIR}/${FILEPATH}")
47 done
48 set_variable FILELISTINTER2 ${FILELISTINTER1}
49 
50 if (( 1 )); then
51  JPulsar \
52  -d $DEBUG \
53  -f ${FILELISTINTER2} \
54  -a ${WORKDIR}/${BASENAME}_darkroomCalibration_pmt${PMT}.detx \
55  -! "-1 ${PMT}" \
56  -C JDAQTimesliceL0 \
57  -A
58 fi
59 
version
Definition: JEditTuneHV.sh:5
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
exit
Definition: JPizza.sh:36
do FILELISTINTER1
then echo
static const double C
Physics constants.
set_variable INTERDIR
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:116
set_variable DETX
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
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
then cp
esac set_variable BASENAME
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:46
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
esac done
Definition: JAddHDE.sh:21
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62