Jpp
 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
35  *) fatal "wrong number of arguments!";;
36 esac
37 
38 set_variable BASENAME ${DETX%.detx}
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 
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
static const JPBS_t PMT(3, 4, 2, 3)
PBS of photo-multiplier tube (PMT)
then usage $script< data file >< detectorfile > fi case set_variable DETX
exit
Definition: JPizza.sh:36
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:79
do FILELISTINTER1
then echo
static const double C
Physics constants.
set_variable INTERDIR
* usage
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then $JPP_DIR software JCalibrate JCalibrateToT a
Definition: JTuneHV.sh:108
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 source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:36
version
Definition: JCalibratePMT.sh:7
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
Definition: JLegolas.sh:28
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
esac done
Definition: JAddHDE.sh:21
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62