Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
badchannelMonitoring.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 list the bad channel and update the detx.
12 #
13 # ------------------------------------------------------------------------------------------
14 #
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 <data file> <detector file>"
28 fi
29 
30 case $# in
33  *) fatal "wrong number of arguments!";;
34 esac
35 
36 
37 if (( 1 )); then
38  JCalibrateToT \
39  -d $DEBUG \
40  -f ${DATA} \
41  -a ${DETX} \
42  -C JDAQTimesliceL1 \
43  -o ${DATA%.root}_calibrateToT.root
44 fi
45 
46 TMP1=${DATA#*_}
47 TMP2=${TMP1#*_}
48 RUNNB=${TMP2%.root}
49 if (( 1 )); then
50  JIntegrateToT \
51  -d $DEBUG \
52  -f ${DATA%.root}_calibrateToT.root \
53  -o ${DATA%.root}_integrateToT.txt \
54  -a ${DETX} \
55  -r ${RUNNB}
56 fi
57 
58 if (( 1 )); then
59  JFindBadChannels \
60  -d $DEBUG \
61  -a ${DETX} \
62  -f ${DATA%.root}_integrateToT.txt \
63  -t 0.5 \
64  -A
65 fi
66 
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
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
data_type r[M+1]
Definition: JPolint.hh:742
set_variable DATA
then echo
static const double C
Physics constants.
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
then JCalibrateToT a
Definition: JTuneHV.sh:108
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 CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:38
version
Definition: JCalibratePMT.sh:7
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62