Ignore:
Timestamp:
05/09/07 17:05:15 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/scripts
Files:
3 edited

Legend:

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

    r8230 r8482  
    151151for (( i=0 ; i < $par3num ; i++ ))
    152152do
    153   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
     153   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
    173173done
    174174
  • trunk/MagicSoft/Mars/scripts/makemovie

    r8473 r8482  
    2525# ========================================================================
    2626#
    27 #
    28 #
    2927##############################################################################
    3028#
     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.
    3140#
    3241##############################################################################
     
    4352NumEvents=500
    4453Threshold=3
    45 
    46 #MFEvtNumber.FileName: ganymed00001218.root
    47 #MFEvtNumber.Selector: ThetaSquared.fVal<0.04 && DataType.fVal>0.5
    48 #MMovieWrite.Filename: movie-00071431-off-all.mpg
    49 
    5054
    5155function usage()
     
    8387do
    8488   case $1 in
    85            --sequ)  shift
    86                     sequence=$1
    87                     ;;
    88             --out)  shift
    89                     outpath=$1
    90                     ;;
    91   --target-length)  shift
    92                     TargetLength=$1
    93                     ;;
    94      --num-events)  shift
    95                     NumEvents=$1
    96                     ;;
    97           -wobble)  wobble='yes'
    98                     ;;
    99               -mc)  mc='mc'
    100                     ;;
    101                -h)  usage
    102                     ;;
    103       *)      echo "unknown option $1 "
    104               usage
    105               exit
    106               ;;
     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                        ;;
    107111   esac
    108112   shift
     
    239243for (( i=1 ; i < 4 ; i++ ))
    240244do
    241   command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc "
    242   echo "submitting: "$command
    243   condor_run $command &
     245   command="./callisto $opts --config=$outpath2/callisto_$n8$mc-${names[$i]}.rc "
     246   echo "submitting: "$command
     247   condor_run $command &
    244248done
    245249
  • trunk/MagicSoft/Mars/scripts/processsequence

    r8231 r8482  
    2020#   Author(s): Daniela Dorner  10/2006 <mailto:dorner@astro.uni-wuerzburg.de>
    2121#
    22 #   Copyright: MAGIC Software Development, 2000-2006
     22#   Copyright: MAGIC Software Development, 2000-2007
    2323#
    2424#
     
    8080          echo ""
    8181          ;;
    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])
    8383          echo -n "ERROR@$HOSTNAME: $program returned $check - please check the logfile $logfile"
    8484          if [ "$program" == "callisto" ]
     
    229229      mkdir -pv $merpplogpath
    230230
     231      date=`date --date \`basename $calfile | cut -d_ -f1 +%Y/%m/%d\``
     232      ccpath=$subsystempath/cc/$date
     233      cacopath=$subsystempath/caco/$date
    231234      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`
    234238      echo "runno: "$runno
    235239      echo "ccfile: "$ccfile
     
    247251         do
    248252            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*`
    254254            if [ "$cacofile" = "" ]
    255255            then
Note: See TracChangeset for help on using the changeset viewer.