Changeset 8482 for trunk/MagicSoft/Mars/scripts
- Timestamp:
- 05/09/07 17:05:15 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/scripts/dospectrum
r8230 r8482 151 151 for (( i=0 ; i < $par3num ; i++ )) 152 152 do 153 for (( j=0 ; j < $par1num ; j++ ))154 do155 # echo "i: $i - j: $j ------- par1: $val1 and par3: $val3"156 dir=$resultpath/set${val1}_${val3}157 if ! ls $dir >/dev/null 2>&1158 then159 mkdir -pv $dir160 fi161 # rcfile=$dir/ganymed_${val1}_${val3}_onoff.rc162 rcfile=$dir/`basename $ganymedrc`163 if ! ls $rcfile >/dev/null 2>&1164 then165 cat $ganymedrc | sed -e s/"${par1}"/" ${val1}"/ -e s/"${par3}"/" ${val3}"/ > $rcfile166 else167 echo "rcfile $rcfile already exists"168 fi169 val1=`echo $val1 + $par1step | bc`170 done171 val3=`echo $val3 + $par3step | bc`172 val1=$start1153 for (( j=0 ; j < $par1num ; j++ )) 154 do 155 # echo "i: $i - j: $j ------- par1: $val1 and par3: $val3" 156 dir=$resultpath/set${val1}_${val3} 157 if ! ls $dir >/dev/null 2>&1 158 then 159 mkdir -pv $dir 160 fi 161 # rcfile=$dir/ganymed_${val1}_${val3}_onoff.rc 162 rcfile=$dir/`basename $ganymedrc` 163 if ! ls $rcfile >/dev/null 2>&1 164 then 165 cat $ganymedrc | sed -e s/"${par1}"/" ${val1}"/ -e s/"${par3}"/" ${val3}"/ > $rcfile 166 else 167 echo "rcfile $rcfile already exists" 168 fi 169 val1=`echo $val1 + $par1step | bc` 170 done 171 val3=`echo $val3 + $par3step | bc` 172 val1=$start1 173 173 done 174 174 -
trunk/MagicSoft/Mars/scripts/makemovie
r8473 r8482 25 25 # ======================================================================== 26 26 # 27 #28 #29 27 ############################################################################## 30 28 # 29 # This script runs callisto with the -movie option and the corresponding 30 # rc files for a given sequence. 31 # The following movies are produced: 32 # - movieSequenceNumber[mc]-withoutcut.mpg (all events) 33 # - movieSequenceNumber[mc]-qualcut.mpg (events after quality cuts) 34 # - movieSequenceNumber[mc]-areacut.mpg (events after area cut) 35 # - movieSequenceNumber[mc]-thetacut.mpg (events after theta^2 cut) 36 # 37 # If no outpath is given, the movies are stored in the directory movies. 38 # 39 # The script has to be executed in the Mars directory. 31 40 # 32 41 ############################################################################## … … 43 52 NumEvents=500 44 53 Threshold=3 45 46 #MFEvtNumber.FileName: ganymed00001218.root47 #MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.548 #MMovieWrite.Filename: movie-00071431-off-all.mpg49 50 54 51 55 function usage() … … 83 87 do 84 88 case $1 in 85 --sequ) shift86 sequence=$187 ;;88 --out) shift89 outpath=$190 ;;91 --target-length) shift92 TargetLength=$193 ;;94 --num-events) shift95 NumEvents=$196 ;;97 -wobble) wobble='yes'98 ;;99 -mc) mc='mc'100 ;;101 -h) usage102 ;;103 *) echo "unknown option $1 "104 usage105 exit106 ;;89 --sequ) shift 90 sequence=$1 91 ;; 92 --out) shift 93 outpath=$1 94 ;; 95 --target-length) shift 96 TargetLength=$1 97 ;; 98 --num-events) shift 99 NumEvents=$1 100 ;; 101 -wobble) wobble='yes' 102 ;; 103 -mc) mc='mc' 104 ;; 105 -h) usage 106 ;; 107 *) echo "unknown option $1 " 108 usage 109 exit 110 ;; 107 111 esac 108 112 shift … … 239 243 for (( i=1 ; i < 4 ; i++ )) 240 244 do 241 command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc "242 echo "submitting: "$command243 condor_run $command &245 command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc " 246 echo "submitting: "$command 247 condor_run $command & 244 248 done 245 249 -
trunk/MagicSoft/Mars/scripts/processsequence
r8231 r8482 20 20 # Author(s): Daniela Dorner 10/2006 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 622 # Copyright: MAGIC Software Development, 2000-2007 23 23 # 24 24 # … … 80 80 echo "" 81 81 ;; 82 [1-9]|[0-9][0-9]|1[0-1][0-9]|12[0-7])82 [1-9]|[0-9][0-9]|1[0-1][0-9]|12[0-7]) 83 83 echo -n "ERROR@$HOSTNAME: $program returned $check - please check the logfile $logfile" 84 84 if [ "$program" == "callisto" ] … … 229 229 mkdir -pv $merpplogpath 230 230 231 date=`date --date \`basename $calfile | cut -d_ -f1 +%Y/%m/%d\`` 232 ccpath=$subsystempath/cc/$date 233 cacopath=$subsystempath/caco/$date 231 234 runno=`echo $calfile | cut -d_ -f2 | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' ` 232 ccfile=`find /magic/subsystemdata/cc/ -name 20[0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep` 233 cacofile=`find /magic/subsystemdata/caco/ -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_*.txt` 235 ccfile=`find $ccpath -name 20[0-2][0-9][01][0-9][0-3][0-9]_*${runno}_[PDCS]_*_S.rep` 236 source=`echo $ccfile | cut -d_ -f4` 237 cacofile=`find /magic/subsystemdata/caco/$date -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_${source}.txt` 234 238 echo "runno: "$runno 235 239 echo "ccfile: "$ccfile … … 247 251 do 248 252 newrun=`echo $runno - $i | bc` 249 # echo "$missingcacorun + $i = $newrun" 250 path=`dirname $ccfile` 251 path=`echo $path | sed -e 's/cc/caco/'` 252 echo "path: "$path 253 cacofile=`find $path -name *$newrun*` 253 cacofile=`find $cacopath -name *$newrun*` 254 254 if [ "$cacofile" = "" ] 255 255 then
Note:
See TracChangeset
for help on using the changeset viewer.