Changeset 18321
- Timestamp:
- 08/31/15 01:31:37 (9 years ago)
- Location:
- trunk/DataCheck/Processing
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxCamHum.sh
r18253 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 46 40 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 47 41 48 #echo ${dates[@]}49 50 42 cd $mars 51 43 … … 59 51 continue 60 52 fi 61 #echo $auxdir" @ "`date`62 53 63 54 # check if aux files are available from that night … … 90 81 then 91 82 printprocesslog "WARN "$fschumfile" not found." 92 #echo "WARN "$fschumfile" not found."93 83 else 94 84 humnumerrors=`fverify $fschumfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` … … 130 120 fi 131 121 # assuming that at least TSTARTI and TSTOPI are consistent 132 #echo $rawfile133 #echo $tstarti134 #echo $tstopi135 #echo $tstartf136 #echo $tstopf137 122 if [ $tstarti -gt 30000 ] 138 123 then … … 169 154 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 170 155 171 #echo $query172 156 # send query to DB 173 157 sendquery >/dev/null -
trunk/DataCheck/Processing/FillAuxContTemp.sh
r17907 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 122 116 fi 123 117 # assuming that at least TSTARTI and TSTOPI are consistent 124 #echo $rawfile125 #echo $tstarti126 #echo $tstopi127 #echo $tstartf128 #echo $tstopf129 118 if [ $tstarti -gt 30000 ] 130 119 then … … 148 137 then 149 138 conttemps=( `root -q -b -l fact/processing/contemp.C\("\"$conttempfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 150 #echo " "${conttemps[@]}151 139 if [ "${conttemps[0]}" == "" ] 152 140 then -
trunk/DataCheck/Processing/FillAuxCtrDev.sh
r18253 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 121 115 fi 122 116 # assuming that at least TSTARTI and TSTOPI are consistent 123 #echo $rawfile124 #echo $tstarti125 #echo $tstopi126 #echo $tstartf127 #echo $tstopf128 117 if [ $tstarti -gt 30000 ] 129 118 then -
trunk/DataCheck/Processing/FillAuxCurrents.sh
r17907 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 174 168 fi 175 169 # assuming that at least TSTARTI and TSTOPI are consistent 176 #echo $rawfile177 #echo $tstarti178 #echo $tstopi179 #echo $tstartf180 #echo $tstopf181 170 if [ $tstarti -gt 30000 ] 182 171 then … … 198 187 if [ -e $calcurrentsfile ] && [ $calnumerrors -eq 0 ] 199 188 then 200 #root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) # | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'201 #currents=( `root -q -b -l fact/curavg.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` )202 189 currents=( `root -q -b -l fact/processing/currents.C\("\"$calcurrentsfile\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[-]?[0-9]+[.]?[0-9]*'` ) 203 190 if [ "${currents[0]}" == "" ] … … 277 264 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 278 265 279 #echo $query280 266 # send query to DB 281 267 sendquery >/dev/null -
trunk/DataCheck/Processing/FillAuxData.sh
r18135 r18321 2 2 3 3 # new version of the script to run on newdaq 4 # but can be also used at ISDC 4 5 5 6 # option whether to fill all row or only those where information is missing … … 28 29 if [ "$certaindate" != "" ] 29 30 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 31 getdates $certaindate 37 32 else … … 80 75 then 81 76 printprocesslog "WARN empty evaluation of statistic ("$@") for run "$date" "$file 82 #echo " ---> "$@ 83 fi 84 #echo "ev: "$evaluation 77 fi 85 78 min=`echo $evaluation | grep -E -o 'Min:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Min:\ //'` 86 79 max=`echo $evaluation | grep -E -o 'Max:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Max:\ //'` … … 88 81 mean=`echo $evaluation | grep -E -o 'Avg:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Avg:\ //'` 89 82 rms=`echo $evaluation | grep -E -o 'Rms:\ [-]?[0-9]+[.]?[0-9]*[e]?[-]?[0-9]+' | sed -e 's/Rms:\ //'` 90 #echo "eval: "$min" "$max" "$med" "$mean" "$rms91 83 } 92 84 … … 105 97 else 106 98 printprocesslog "INFO processing files in "$auxdir 107 #echo "INFO processing files in "$auxdir108 99 fi 109 100 … … 179 170 printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum` 180 171 echo `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1 181 echo `date`": processing file number "$runnumber"_"`printf %03d $filenum`172 #echo `date`": processing file number "$runnumber"_"`printf %03d $filenum` 182 173 183 174 # get information from rawfile … … 200 191 continue 201 192 fi 202 echo $runtype203 193 # assuming that at least TSTARTI and TSTOPI are consistent 204 #echo $rawfile205 #echo $tstarti206 #echo $tstopi207 #echo $tstartf208 #echo $tstopf209 194 if [ $tstarti -gt 30000 ] 210 195 then … … 219 204 tstop=`echo " $tstopi + $tstopf " | bc -l` 220 205 fi 221 #echo $tstart 222 #echo $tstop 206 # code for very old data 223 207 #if [ $runnumber -eq 20111123 ] 224 208 #then … … 317 301 fi 318 302 fi 319 echo $runstart $runstop320 303 #numevents=`$factpath/fitsdump -h -t Events $rawfile 2>/dev/null | grep Events | grep -E -o '[0-9]+'` 321 304 numevents=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep Events | grep -E -o '[0-9]+'` … … 420 403 # RA 421 404 evaluatestatistics "Ra" $trackingstats 422 #echo $min"_"$max"_"$423 405 if [ "$evaluation" != "" ] 424 406 then … … 623 605 # add where condition 624 606 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 625 echo $query626 607 627 608 # send query to DB -
trunk/DataCheck/Processing/FillAuxTemp.sh
r18253 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 86 80 then 87 81 printprocesslog "WARN "$magicweatherfile" not found." 88 #echo "WARN "$magicweatherfile" not found."89 82 else 90 83 weathernumerrors=`fverify $magicweatherfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` … … 99 92 then 100 93 printprocesslog "WARN "$fsctempfile" not found." 101 #echo "WARN "$fsctempfile" not found."102 94 else 103 95 tempnumerrors=`fverify $fsctempfile 2>/dev/null | grep -o '[0-9][ ]error(s)' | grep -E -o '[0-9]'` … … 139 131 fi 140 132 # assuming that at least TSTARTI and TSTOPI are consistent 141 #echo $rawfile142 #echo $tstarti143 #echo $tstopi144 #echo $tstartf145 #echo $tstopf146 133 if [ $tstarti -gt 30000 ] 147 134 then … … 156 143 tstop=`echo " $tstopi + $tstopf " | bc -l` 157 144 fi 158 #echo $rawfile" "$tstart" "$tstop159 145 160 146 # build query to update runinfo in DB -
trunk/DataCheck/Processing/FillAuxThresholds.sh
r17907 r18321 29 29 if [ "$certaindate" != "" ] 30 30 then 31 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`32 if [ "$checkstring" = "" ]33 then34 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"35 finish36 fi37 31 getdates $certaindate 38 32 else … … 46 40 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 47 41 48 #echo ${dates[@]}49 50 42 cd $mars 51 43 … … 97 89 98 90 thresholdfile2=$auxdir/$runnumber.FTM_CONTROL_STATIC_DATA.fits 99 #ls $thresholdfile2100 91 if ! [ -e $thresholdfile2 ] 101 92 then … … 134 125 fi 135 126 # assuming that at least TSTARTI and TSTOPI are consistent 136 #echo $rawfile137 #echo $tstarti138 #echo $tstopi139 #echo $tstartf140 #echo $tstopf141 127 if [ $tstarti -gt 30000 ] 142 128 then … … 159 145 then 160 146 thresholds1=( `root -q -b -l fact/processing/threshold.C\("\"$thresholdfile2\""\,$tstart\,$tstop\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 161 #root -q -b -l fact/threshold.C\("\"$thresholdfile2\""\,$tstart\,$tstop\) | grep "result"162 #echo ${thresholds1[@]}163 147 if [ "${thresholds1[0]}" == "" ] 164 148 then … … 196 180 then 197 181 thresholds2=( `root -q -b -l fact/processing/lastth.C\("\"$thresholdfile\""\,$tstart\) | grep "result" | grep -E -o '[0-9]+[.]?[0-9]*'` ) 198 #root -q -b -l fact/lastth.C\("\"$thresholdfile\""\,$tstart\) | grep "result"199 #echo ${thresholds2[@]}200 182 if [ "${thresholds2[0]}" == "" ] 201 183 then … … 218 200 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 219 201 220 #echo $query221 202 # send query to DB 222 203 sendquery >/dev/null -
trunk/DataCheck/Processing/FillDrsTemp.sh
r18253 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 46 40 echo `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1 47 41 48 #echo ${dates[@]}49 50 42 cd $mars 51 43 … … 59 51 continue 60 52 fi 61 #echo $auxdir" @ "`date`62 53 63 54 # check if aux files are available from that night … … 130 121 fi 131 122 # assuming that at least TSTARTI and TSTOPI are consistent 132 #echo $rawfile133 #echo $tstarti134 #echo $tstopi135 #echo $tstartf136 #echo $tstopf137 123 if [ $tstarti -gt 30000 ] 138 124 then … … 190 176 query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum 191 177 192 #echo $query193 178 # send query to DB 194 179 sendquery >/dev/null -
trunk/DataCheck/Processing/FillEffectiveOn.sh
r17907 r18321 28 28 if [ "$certaindate" != "" ] 29 29 then 30 checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`31 if [ "$checkstring" = "" ]32 then33 echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"34 finish35 fi36 30 getdates $certaindate 37 31 else … … 53 47 auxdir=$auxdata/$date 54 48 runnumber=`echo $date | sed -e 's/\///g'` 55 # echo $auxdir" @ "`date`56 49 57 50 # get file numbers from DB … … 117 110 fi 118 111 # assuming that at least TSTARTI and TSTOPI are consistent 119 #echo $rawfile120 #echo $tstarti121 #echo $tstopi122 #echo $tstartf123 #echo $tstopf124 112 if [ $tstarti -gt 30000 ] 125 113 then
Note:
See TracChangeset
for help on using the changeset viewer.