- Timestamp:
- 03/02/14 13:41:25 (11 years ago)
- Location:
- trunk/DataCheck/Processing
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxContTemp.sh
r17577 r17597 46 46 auxdir=$auxdata/$date 47 47 runnumber=`echo $date | sed -e 's/\///g'` 48 # the container temperature was not available before this date 48 49 if [ $runnumber -lt 20130413 ] 49 50 then 51 printprocesslog "INFO container temperature was not available before 20130413 " 52 continue 53 fi 54 55 # get file numbers from DB 56 # but only for not-corrupted files 57 query="SELECT fRunID from RunInfo WHERE fNight="$runnumber" AND fFitsFileErrors=0 " 58 if [ "$doupdate" = "no" ] 59 then 60 query=$query" AND ISNULL(fContainerTempMean) " 61 fi 62 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 63 filenumbers=( `sendquery $query` ) 64 # proceed only if there are files available 65 if [ ${#filenumbers} -eq 0 ] 66 then 67 printprocesslog "INFO No files found in the DB for night "$date 50 68 continue 51 69 fi … … 60 78 fi 61 79 62 # get file numbers from DB63 # but only for not-corrupted files64 query="SELECT fRunID from RunInfo WHERE fNight="$runnumber" AND fFitsFileErrors=0 "65 if [ "$doupdate" = "no" ]66 then67 query=$query" AND ISNULL(fContainerTempMean) "68 fi69 70 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query71 filenumbers=( `sendquery $query` )72 if [ ${#filenumbers} -eq 0 ]73 then74 printprocesslog "INFO No files found in the DB for night "$date75 continue76 fi77 78 80 # get daily fits files 79 81 conttempfile=$auxdir/$runnumber.TEMPERATURE_DATA.fits … … 81 83 then 82 84 printprocesslog "WARN "$conttempfile" not found." 83 echo "WARN "$conttempfile" not found."84 85 continue 85 86 else -
trunk/DataCheck/Processing/FillAuxCtrDev.sh
r17578 r17597 67 67 query=$query" AND ISNULL(fCtrlDevMean) " 68 68 fi 69 70 69 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 71 70 filenumbers=( `sendquery $query` ) 71 # proceed only if there are files available 72 72 if [ ${#filenumbers} -eq 0 ] 73 73 then -
trunk/DataCheck/Processing/FillAuxCurrents.sh
r17596 r17597 52 52 #fi 53 53 54 # check if aux files are available from that night55 if ! [ -d $auxdir ]56 then57 printprocesslog "INFO no data available in "$auxdir58 continue59 else60 printprocesslog "INFO processing files in "$auxdir61 fi62 63 rawdir=$rawdata/$date64 # check if raw files are available from that night65 if ! [ -d $rawdir ]66 then67 logtext="INFO"68 else69 logtext="WARN"70 fi71 72 biasvoltagefile=$auxdir/$runnumber.BIAS_CONTROL_VOLTAGE.fits73 if ! [ -e $biasvoltagefile ]74 then75 printprocesslog $logtext" "$biasvoltagefile" not found."76 continue77 else78 biasnumerrors=`fverify $biasvoltagefile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`79 if [ $biasnumerrors -gt 0 ]80 then81 printprocesslog "WARN for $biasvoltagefile fverify returned "$biasnumerrors" error(s)."82 fi83 fi84 85 biascurrentfile=$auxdir/$runnumber.BIAS_CONTROL_CURRENT.fits86 if ! [ -e $biascurrentfile ]87 then88 printprocesslog $logtext" "$biascurrentfile" not found."89 continue90 else91 biascurrnumerrors=`fverify $biascurrentfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`92 if [ $biascurrnumerrors -gt 0 ]93 then94 printprocesslog "WARN for $biascurrentfile fverify returned "$biascurrnumerrors" error(s)."95 fi96 fi97 98 # this file is needed for the calibration of the currents99 feedbackcalfile=$auxdir/$runnumber.FEEDBACK_CALIBRATION.fits100 if ! [ -e $feedbackcalfile ]101 then102 printprocesslog $logtext" "$feedbackcalfile" not found."103 continue104 else105 feedbacknumerrors=`fverify $feedbackcalfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`106 if [ $feedbacknumerrors -gt 0 ]107 then108 printprocesslog "WARN for $feedbackcalfile fverify returned "$feedbacknumerrors" error(s)."109 fi110 fi111 112 calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits113 if ! [ -e $calcurrentsfile ]114 then115 calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits116 if ! [ -e $calcurrentsfile ]117 then118 printprocesslog "INFO run calibrate.C for night "$runnumber >> $logfile 2>&1119 root -q -b -l fact/processing/calibrate.C\($runnumber\)120 fi121 fi122 printprocesslog "INFO using calibrated currents from file "$calcurrentsfile123 124 #calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits125 #calcurrentsfile=/scratch_nfs/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits126 #calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits127 if ! [ -e $calcurrentsfile ]128 then129 printprocesslog $logtext" "$calcurrentsfile" not found."130 continue131 else132 calnumerrors=`fverify $calcurrentsfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`133 if [ $calnumerrors -gt 0 ]134 then135 printprocesslog "WARN for $calcurrentsfile fverify returned "$calnumerrors" error(s)."136 fi137 fi138 139 140 54 # get file numbers from DB 141 55 # but only for not-corrupted files … … 145 59 query=$query" AND ISNULL(fCurrentsMedMean) " 146 60 fi 147 148 61 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 149 62 filenumbers=( `sendquery $query` ) 63 # proceed only if there are files available 150 64 if [ ${#filenumbers} -eq 0 ] 151 65 then … … 154 68 fi 155 69 70 # check if aux files are available from that night 71 if ! [ -d $auxdir ] 72 then 73 printprocesslog "INFO no data available in "$auxdir 74 continue 75 else 76 printprocesslog "INFO processing files in "$auxdir 77 fi 78 79 biasvoltagefile=$auxdir/$runnumber.BIAS_CONTROL_VOLTAGE.fits 80 if ! [ -e $biasvoltagefile ] 81 then 82 printprocesslog "WARN "$biasvoltagefile" not found." 83 continue 84 else 85 biasnumerrors=`fverify $biasvoltagefile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 86 if [ $biasnumerrors -gt 0 ] 87 then 88 printprocesslog "WARN for $biasvoltagefile fverify returned "$biasnumerrors" error(s)." 89 fi 90 fi 91 92 biascurrentfile=$auxdir/$runnumber.BIAS_CONTROL_CURRENT.fits 93 if ! [ -e $biascurrentfile ] 94 then 95 printprocesslog "WARN "$biascurrentfile" not found." 96 continue 97 else 98 biascurrnumerrors=`fverify $biascurrentfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 99 if [ $biascurrnumerrors -gt 0 ] 100 then 101 printprocesslog "WARN for $biascurrentfile fverify returned "$biascurrnumerrors" error(s)." 102 fi 103 fi 104 105 # this file is needed for the calibration of the currents 106 feedbackcalfile=$auxdir/$runnumber.FEEDBACK_CALIBRATION.fits 107 if ! [ -e $feedbackcalfile ] 108 then 109 printprocesslog "WARN "$feedbackcalfile" not found." 110 continue 111 else 112 feedbacknumerrors=`fverify $feedbackcalfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 113 if [ $feedbacknumerrors -gt 0 ] 114 then 115 printprocesslog "WARN for $feedbackcalfile fverify returned "$feedbacknumerrors" error(s)." 116 fi 117 fi 118 119 calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits 120 if ! [ -e $calcurrentsfile ] 121 then 122 calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits 123 if ! [ -e $calcurrentsfile ] 124 then 125 printprocesslog "INFO run calibrate.C for night "$runnumber >> $logfile 2>&1 126 root -q -b -l fact/processing/calibrate.C\($runnumber\) 127 fi 128 fi 129 printprocesslog "INFO using calibrated currents from file "$calcurrentsfile 130 131 #calcurrentsfile=$auxdir/$runnumber.FEEDBACK_CALIBRATED_CURRENTS.fits 132 #calcurrentsfile=/scratch_nfs/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits 133 #calcurrentsfile=/gpfs/scratch/fact/calibrated_currents/$runnumber.CALIBRATED_CURRENTS.fits 134 if ! [ -e $calcurrentsfile ] 135 then 136 printprocesslog "WARN "$calcurrentsfile" not found." 137 continue 138 else 139 calnumerrors=`fverify $calcurrentsfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 140 if [ $calnumerrors -gt 0 ] 141 then 142 printprocesslog "WARN for $calcurrentsfile fverify returned "$calnumerrors" error(s)." 143 fi 144 fi 145 156 146 # fill auxiliary information for files 157 147 for filenum in ${filenumbers[@]} -
trunk/DataCheck/Processing/FillAuxData.sh
r17583 r17597 116 116 runnumber=`echo $date | sed -e 's/\///g'` 117 117 118 # check if aux files are available from that night119 if ! [ -d $auxdir ]120 then121 printprocesslog "INFO no data available in "$auxdir122 continue123 else124 printprocesslog "INFO processing files in "$auxdir125 fi126 127 118 # get file numbers from DB 128 119 # but only for not-corrupted files … … 135 126 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 136 127 filenumbers=( `sendquery $query` ) 128 # proceed only if there are files available 137 129 if [ ${#filenumbers} -eq 0 ] 138 130 then 139 131 printprocesslog "INFO No files found in the DB for night "$date 140 132 continue 133 fi 134 135 # check if aux files are available from that night 136 if ! [ -d $auxdir ] 137 then 138 printprocesslog "INFO no data available in "$auxdir 139 continue 140 else 141 printprocesslog "INFO processing files in "$auxdir 141 142 fi 142 143 -
trunk/DataCheck/Processing/FillAuxTemp.sh
r17582 r17597 67 67 query=$query" AND ISNULL(fCameraTempMean) " 68 68 fi 69 70 69 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 71 70 filenumbers=( `sendquery $query` ) 71 # proceed only if there are files available 72 72 if [ ${#filenumbers} -eq 0 ] 73 73 then -
trunk/DataCheck/Processing/FillAuxThresholds.sh
r17596 r17597 50 50 runnumber=`echo $date | sed -e 's/\///g'` 51 51 52 # check if aux files are available from that night53 if ! [ -d $auxdir ]54 then55 printprocesslog "INFO no data available in "$auxdir56 continue57 else58 printprocesslog "INFO processing files in "$auxdir59 fi60 61 rawdir=$rawdata/$date62 # check if raw files are available from that night63 if ! [ -d $rawdir ]64 then65 logtext="INFO"66 else67 logtext="WARN"68 fi69 70 thresholdfile=$auxdir/$runnumber.RATE_CONTROL_THRESHOLD.fits71 printprocesslog "INFO processing "$thresholdfile72 echo "INFO processing "$thresholdfile >> $logfile 2>&173 if ! [ -e $thresholdfile ]74 then75 printprocesslog $logtext" "$thresholdfile" not found."76 continue77 else78 threshnumerrors=`fverify $thresholdfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`79 if [ $threshnumerrors -gt 0 ]80 then81 printprocesslog "WARN for $thresholdfile fverify returned "$threshnumerrors" error(s)."82 fi83 fi84 85 thresholdfile2=$auxdir/$runnumber.FTM_CONTROL_STATIC_DATA.fits86 #ls $thresholdfile287 if ! [ -e $thresholdfile2 ]88 then89 printprocesslog $logtext" "$thresholdfile2" not found."90 continue91 else92 threshnumerrors2=`fverify $thresholdfile2 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'`93 if [ $threshnumerrors2 -gt 0 ]94 then95 printprocesslog "WARN for $thresholdfile2 fverify returned "$threshnumerrors2" error(s)."96 fi97 fi98 99 100 101 52 # get file numbers from DB 102 53 # but only for not-corrupted files … … 106 57 query=$query" AND ISNULL(fThresholdMedMean) AND ISNULL(fThresholdMinSet) " 107 58 fi 108 109 59 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 110 60 filenumbers=( `sendquery $query` ) 61 # proceed only if there are files available 111 62 if [ ${#filenumbers} -eq 0 ] 112 63 then 113 64 printprocesslog "INFO No files found in the DB for night "$date 114 65 continue 66 fi 67 68 # check if aux files are available from that night 69 if ! [ -d $auxdir ] 70 then 71 printprocesslog "INFO no data available in "$auxdir 72 continue 73 else 74 printprocesslog "INFO processing files in "$auxdir 75 fi 76 77 thresholdfile=$auxdir/$runnumber.RATE_CONTROL_THRESHOLD.fits 78 printprocesslog "INFO processing "$thresholdfile 79 echo "INFO processing "$thresholdfile >> $logfile 2>&1 80 if ! [ -e $thresholdfile ] 81 then 82 printprocesslog "WARN "$thresholdfile" not found." 83 continue 84 else 85 threshnumerrors=`fverify $thresholdfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 86 if [ $threshnumerrors -gt 0 ] 87 then 88 printprocesslog "WARN for $thresholdfile fverify returned "$threshnumerrors" error(s)." 89 fi 90 fi 91 92 thresholdfile2=$auxdir/$runnumber.FTM_CONTROL_STATIC_DATA.fits 93 #ls $thresholdfile2 94 if ! [ -e $thresholdfile2 ] 95 then 96 printprocesslog "WARN "$thresholdfile2" not found." 97 continue 98 else 99 threshnumerrors2=`fverify $thresholdfile2 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` 100 if [ $threshnumerrors2 -gt 0 ] 101 then 102 printprocesslog "WARN for $thresholdfile2 fverify returned "$threshnumerrors2" error(s)." 103 fi 115 104 fi 116 105 -
trunk/DataCheck/Processing/FillDrsTemp.sh
r17579 r17597 71 71 query=$query" AND ISNULL(fCameraTempMean) " 72 72 fi 73 74 73 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 75 74 filenumbers=( `sendquery $query` ) 75 # proceed only if there are files available 76 76 if [ ${#filenumbers} -eq 0 ] 77 77 then -
trunk/DataCheck/Processing/FillEffectiveOn.sh
r17596 r17597 49 49 # echo $auxdir" @ "`date` 50 50 51 # get file numbers from DB 52 # but only for not-corrupted files 53 query="SELECT fRunID from RunInfo WHERE fNight="$runnumber" AND fFitsFileErrors=0 " 54 if [ "$doupdate" = "no" ] 55 then 56 query=$query" AND ISNULL(fEffectiveOn) " 57 fi 58 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 59 filenumbers=( `sendquery $query` ) 60 # proceed only if there are files available 61 if [ ${#filenumbers} -eq 0 ] 62 then 63 printprocesslog "INFO No files found in the DB for night "$date 64 continue 65 fi 66 51 67 # check if aux files are available from that night 52 68 if ! [ -d $auxdir ] … … 58 74 fi 59 75 60 rawdir=$rawdata/$date61 # check if raw files are available from that night62 if ! [ -d $rawdir ]63 then64 logtext="INFO"65 else66 logtext="WARN"67 fi68 69 76 ftmcontrolfile=$auxdir/$runnumber.FTM_CONTROL_TRIGGER_RATES.fits 70 77 if ! [ -e $ftmcontrolfile ] 71 78 then 72 printprocesslog $logtext""$ftmcontrolfile" not found."79 printprocesslog "WARN "$ftmcontrolfile" not found." 73 80 continue 74 81 else … … 78 85 printprocesslog "WARN for $ftmcontrolfile fverify returned "$ftmnumerrors" error(s)." 79 86 fi 80 fi81 82 # get file numbers from DB83 # but only for not-corrupted files84 query="SELECT fRunID from RunInfo WHERE fNight="$runnumber" AND fFitsFileErrors=0 "85 if [ "$doupdate" = "no" ]86 then87 query=$query" AND ISNULL(fEffectiveOn) "88 fi89 90 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query91 filenumbers=( `sendquery $query` )92 if [ ${#filenumbers} -eq 0 ]93 then94 printprocesslog "INFO No files found in the DB for night "$date95 continue96 87 fi 97 88 -
trunk/DataCheck/Processing/FillMoonInfo.sh
r17094 r17597 48 48 fi 49 49 printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query 50 # proceed only if there are files available 50 51 filenumbers=( `sendquery` ) 51 52 if [ ${#filenumbers} -eq 0 ] -
trunk/DataCheck/Processing/FillRatescans.sh
r17596 r17597 44 44 fi 45 45 46 rawdir=$rawdata/$date47 # check if raw files are available from that night48 if ! [ -d $rawdir ]49 then50 logtext="INFO"51 else52 logtext="WARN"53 fi54 55 46 ratescanfile=$auxdir/$runnumber.RATE_SCAN_DATA.fits 56 47 printprocesslog "INFO processing "$ratescanfile … … 58 49 if ! [ -e $ratescanfile ] 59 50 then 60 printprocesslog $logtext" "$ratescanfile" not found." 51 rawdir=$rawdata/$date 52 # check if raw files are available from that night 53 if ! [ -d $rawdir ] 54 then 55 printprocesslog "INFO "$ratescanfile" not found." 56 else 57 printprocesslog "WARN "$ratescanfile" not found." 58 fi 61 59 continue 62 60 else
Note:
See TracChangeset
for help on using the changeset viewer.