Changeset 8638
- Timestamp:
- 07/17/07 11:33:51 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/scripts/dospectrum
r8626 r8638 46 46 # 47 47 # To start several spondes please set the arrays $spondes. 48 # It is also possible to start new spondes without rerunning 49 # ganymed and/or the other spondes. To do so, please set the50 # variables $doganymed and$spondedones accordingly48 # It is also possible to start new spondes without rerunning ganymed and/or 49 # the other spondes. To do so, please set the variables $doganymed and 50 # $spondedones accordingly 51 51 # 52 52 # Remark: You have to submit the condor dag file from your Mars directory. … … 72 72 # and your sponde.rc files 73 73 rcpath=$path/resources 74 ganymedrc=$rcpath/ganymed_ onoff.rc74 ganymedrc=$rcpath/ganymed_wobble_set5_final.rc 75 75 # outpath for your spectrum results 76 76 # a directory for each set of cuts will be created there and 77 77 # the ganymed and sponde output will be stored in these directories 78 specpath= /results/spectrumSet278 specpath=$path/results/spectrumSet5 79 79 # name of your dataset 80 80 # it has to be stored as dataset$dataset.txt in the directory 81 81 # $path/datasets 82 dataset="200 60002"82 dataset="20070001" 83 83 # this is the name of the condor-dag file, which you have to submit 84 84 # with condor_submit_dag from your Mars directory 85 dagfile=$condorpath/s et2spectrum.dag385 dagfile=$condorpath/spectrumSet5.dag 86 86 # here you define whether ganymed still has to be done 87 87 # if yes, set the variable $doganymed to "yes" … … 92 92 # (numbers in the following array) 93 93 # the sponde.root files will be named in the same way (sponde(num).root) 94 spondes=( 1 2)94 spondes=( 1 2 3 4 12 13 14 15 ) 95 95 # in this array you define whether the sponde is already done 96 spondedones=( "done" "" )96 spondedones=( "done" "" "" "" "" "" "" "" ) 97 97 98 98 # this is the mc dataset, which has been created with the script 99 # preparemc 100 mcdataset=$path/mc/mcdataset 2.txt99 # preparemc, make sure to use the correct path 100 mcdataset=$path/mc/mcdataset-for-sponde.txt 101 101 102 102 # values for par3 103 par3step=0.0 05104 par3numminus= 10105 par3num=1 3103 par3step=0.01 104 par3numminus=9 105 par3num=11 106 106 # values for par1 107 107 par1step=0.005 … … 111 111 # 112 112 # end of setup 113 #----------------------------------------------------------------------------- 113 114 # beginning of script 114 115 # … … 121 122 exit 122 123 fi 123 if ! [ -e $ path$specpath ]124 then 125 echo "Your output path $ path$specpath does not exist."124 if ! [ -e $specpath ] 125 then 126 echo "Your output path $specpath does not exist." 126 127 exit 127 128 fi … … 167 168 if [ "$doganymed" = "yes" ] 168 169 then 169 echo "JOB gany$name $condorpath/processds.submit"170 echo "JOB ds"$dataset"gany"$name" "$condorpath"/processds.submit" 170 171 else 171 echo "JOB gany$name $condorpath/processds.submit DONE"172 echo "JOB ds"$dataset"gany"$name" "$condorpath"/processds.submit DONE" 172 173 fi 173 echo "VARS gany$namepath=\"$path\""174 echo "VARS gany$nameout=\"$dir\""175 echo "VARS gany$nameds=\"$dataset\""176 echo "VARS gany$namenum=\"$dataset\""177 echo "VARS gany$namerc=\"$rcfile\""174 echo "VARS ds"$dataset"gany"$name" path=\"$path\"" 175 echo "VARS ds"$dataset"gany"$name" out=\"$dir\"" 176 echo "VARS ds"$dataset"gany"$name" ds=\"$dataset\"" 177 echo "VARS ds"$dataset"gany"$name" num=\"$dataset\"" 178 echo "VARS ds"$dataset"gany"$name" rc=\"$rcfile\"" 178 179 echo "" 179 180 } … … 182 183 function printspecdagentry() 183 184 { 184 sponderc=$rcpath/sponde $1.rc185 sponderc=$rcpath/sponde_wobble$1.rc 185 186 if [ "$2" = "done" ] 186 187 then 187 echo "JOB spec$1_$name $condorpath/processsponde.submit DONE"188 echo "JOB ds"$dataset"spec"$1"_"$name" "$condorpath"/processsponde.submit DONE" 188 189 else 189 echo "JOB spec$1_$name $condorpath/processsponde.submit"190 echo "JOB ds"$dataset"spec"$1"_"$name" "$condorpath"/processsponde.submit" 190 191 fi 191 echo "VARS spec$1_$name path=\"/home/dorner/final_analysis\""192 echo "VARS spec$1_$name out=\"$outpath\""193 echo "VARS spec$1_$name rc=\"$sponderc\""194 echo "VARS spec$1_$name spondenum=\"$1\""195 echo "VARS spec$1_$name mcds=\"$mcdataset\""196 echo "VARS spec$1_$name num=\"$dataset\""192 echo "VARS ds"$dataset"spec"$1"_"$name" path=\""$path"\"" 193 echo "VARS ds"$dataset"spec"$1"_"$name" out=\""$outpath"\"" 194 echo "VARS ds"$dataset"spec"$1"_"$name" rc=\""$sponderc"\"" 195 echo "VARS ds"$dataset"spec"$1"_"$name" spondenum=\""$1"\"" 196 echo "VARS ds"$dataset"spec"$1"_"$name" mcds=\""$mcdataset"\"" 197 echo "VARS ds"$dataset"spec"$1"_"$name" num=\""$dataset"\"" 197 198 echo "" 198 echo "PARENT gany$name CHILD spec$1_$name "199 echo "PARENT ds"$dataset"gany"$name" CHILD ds"$dataset"spec"$1"_"$name 199 200 echo "" 200 201 } … … 211 212 do 212 213 name=${val1}_${val3} 213 dir=$specpath/ganyspec$name 214 outpath=$path$dir 214 outpath=$specpath/ganyspec$name 215 215 rcfile=$outpath/ganymed_${name}_onoff.rc 216 216 if ! [ -d $outpath ] … … 239 239 echo "in total $count different sets of cuts are used" 240 240 echo "" 241 echo "you can submit it now with \"condor_submit_dag -f $dagfile\" from your Mars directory"242 echo "" 243 241 echo "you can submit it now with \"condor_submit_dag -f -maxidle 7 $dagfile\" from your Mars directory" 242 echo "" 243
Note:
See TracChangeset
for help on using the changeset viewer.