Changeset 8638 for trunk


Ignore:
Timestamp:
07/17/07 11:33:51 (17 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/scripts/dospectrum

    r8626 r8638  
    4646#
    4747# 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 the
    50 # variables $doganymed and $spondedones accordingly
     48# 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
    5151#
    5252# Remark: You have to submit the condor dag file from your Mars directory.
     
    7272# and your sponde.rc files
    7373rcpath=$path/resources
    74 ganymedrc=$rcpath/ganymed_onoff.rc
     74ganymedrc=$rcpath/ganymed_wobble_set5_final.rc
    7575# outpath for your spectrum results
    7676# a directory for each set of cuts will be created there and
    7777# the ganymed and sponde output will be stored in these directories
    78 specpath=/results/spectrumSet2
     78specpath=$path/results/spectrumSet5
    7979# name of your dataset
    8080# it has to be stored as dataset$dataset.txt in the directory
    8181# $path/datasets
    82 dataset="20060002"
     82dataset="20070001"
    8383# this is the name of the condor-dag file, which you have to submit
    8484# with condor_submit_dag from your Mars directory
    85 dagfile=$condorpath/set2spectrum.dag3
     85dagfile=$condorpath/spectrumSet5.dag
    8686# here you define whether ganymed still has to be done
    8787# if yes, set the variable $doganymed to "yes"
     
    9292# (numbers in the following array)
    9393# the sponde.root files will be named in the same way (sponde(num).root)
    94 spondes=( 1 2 )
     94spondes=(     1       2  3  4 12 13 14 15 )
    9595# in this array you define whether the sponde is already done
    96 spondedones=( "done" "" )
     96spondedones=( "done" "" "" "" "" "" "" "" )
    9797
    9898# this is the mc dataset, which has been created with the script
    99 # preparemc
    100 mcdataset=$path/mc/mcdataset2.txt
     99# preparemc, make sure to use the correct path
     100mcdataset=$path/mc/mcdataset-for-sponde.txt
    101101
    102102# values for par3
    103 par3step=0.005
    104 par3numminus=10
    105 par3num=13
     103par3step=0.01
     104par3numminus=9
     105par3num=11
    106106# values for par1
    107107par1step=0.005
     
    111111#
    112112# end of setup
     113#-----------------------------------------------------------------------------
    113114# beginning of script
    114115#
     
    121122   exit
    122123fi
    123 if ! [ -e $path$specpath ]
    124 then
    125    echo "Your output path $path$specpath does not exist."
     124if ! [ -e $specpath ]
     125then
     126   echo "Your output path $specpath does not exist."
    126127   exit
    127128fi
     
    167168   if [ "$doganymed" = "yes" ]
    168169   then
    169       echo "JOB  gany$name $condorpath/processds.submit"
     170      echo "JOB  ds"$dataset"gany"$name" "$condorpath"/processds.submit"
    170171   else
    171       echo "JOB  gany$name $condorpath/processds.submit DONE"
     172      echo "JOB  ds"$dataset"gany"$name" "$condorpath"/processds.submit DONE"
    172173   fi
    173    echo "VARS gany$name path=\"$path\""
    174    echo "VARS gany$name out=\"$dir\""
    175    echo "VARS gany$name ds=\"$dataset\""
    176    echo "VARS gany$name num=\"$dataset\""
    177    echo "VARS gany$name rc=\"$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\""
    178179   echo ""
    179180}
     
    182183function printspecdagentry()
    183184{
    184    sponderc=$rcpath/sponde$1.rc
     185   sponderc=$rcpath/sponde_wobble$1.rc
    185186   if [ "$2" = "done" ]
    186187   then
    187       echo "JOB  spec$1_$name $condorpath/processsponde.submit DONE"
     188      echo "JOB  ds"$dataset"spec"$1"_"$name" "$condorpath"/processsponde.submit DONE"
    188189   else
    189       echo "JOB  spec$1_$name $condorpath/processsponde.submit"
     190      echo "JOB  ds"$dataset"spec"$1"_"$name" "$condorpath"/processsponde.submit"
    190191   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"\""
    197198   echo ""
    198    echo "PARENT gany$name CHILD spec$1_$name "
     199   echo "PARENT ds"$dataset"gany"$name" CHILD ds"$dataset"spec"$1"_"$name
    199200   echo ""
    200201}
     
    211212   do
    212213      name=${val1}_${val3}
    213       dir=$specpath/ganyspec$name
    214       outpath=$path$dir
     214      outpath=$specpath/ganyspec$name
    215215      rcfile=$outpath/ganymed_${name}_onoff.rc
    216216      if ! [ -d $outpath ]
     
    239239echo "in total $count different sets of cuts are used"
    240240echo ""
    241 echo "you can submit it now with \"condor_submit_dag -f $dagfile\" from your Mars directory"
    242 echo ""
    243 
     241echo "you can submit it now with \"condor_submit_dag -f -maxidle 7 $dagfile\" from your Mars directory"
     242echo ""
     243
Note: See TracChangeset for help on using the changeset viewer.