Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
getMechanics.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
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 <detector file>"\
16  "\nAuxiliary script to locally install file with mechanical parameters for dynamical calibrations."
17 fi
18 
19 if (( $# != 1 )); then
20  fatal "Wrong number of arguments."
21 fi
22 
24 
25 eval `JPrintDetector -a $DETECTOR -O IDENTIFIER` # detector identifier
26 let "RUN = 1" # arbitrary run number
27 set_variable TYPE mechanics # type
29 
30 if [[ ! -f ${TYPE}_${(l:8::0::0:)DETECTOR_ID}.txt ]]; then
31  getFile.sh $JPP_ARCHIVE $DETECTOR_ID $RUN $TYPE $VERSION ${TYPE}_${(l:8::0::0:)DETECTOR_ID}
32 fi
version
Definition: JEditTuneHV.sh:5
then usage $script< directory A >< directoryB > nIn each there should be a file detector datx and tripod txt
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O SUMMARY JPrintDAQHeader f $INPUT_FILE read A DAQ_HEADER set_variable DETECTOR_ID
Definition: JSquid.sh:28
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
exit
Definition: JPizza.sh:36
TFile * getFile(const std::string &file_name, const std::string &option="exist")
Get TFile pointer corresponding to give file name.
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
#define VERSION
Definition: elog-version.h:27
* usage
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then eval ls $DIR $ID $TYPE _
Definition: getArchive.sh:104
set_variable DETECTOR
do set_variable DETECTOR_TXT $WORKDIR detector
then echo
Definition: JQAQC.sh:90
script
Definition: JAcoustics.sh:2