Changeset 9221 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/14/09 15:49:18 (16 years ago)
Author:
hoehne
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9220 r9221  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2009/01/14 Daniel Hoehne-Moench
     22
     23   * datacenter/scripts/sourcefile:
     24     - extended errorcoding on mc run process status
     25
     26   * datacenter/scripts/runmccallisto, runmcstar:
     27     - deleted unnecessary lines, adapted to primary structure
     28
     29   * datacenter/macros/fillmcsignal.C, fillmccalib.C, fillmcstar.C:
     30     - added
     31
     32   * datacenter/scripts/fillmccallisto, fillmcstar:
     33     - added
     34
     35
    2036
    2137 2009/01/14 Thomas Bretz
  • trunk/MagicSoft/Mars/datacenter/scripts/runmccallisto

    r8967 r9221  
    1919#
    2020#   Author(s): Daniela Dorner  08/2004 <mailto:dorner@astro.uni-wuerzburg.de>
    21 #   Author(s): Daniel Hoehne   06/2008 <mailto:hoehne@astro.uni-wuerzburg.de>
     21#   Author(s): Daniel Hoehne-Moench  01/2009 <mailto:hoehne@astro.uni-wuerzburg.de>
    2222#
    23 #   Copyright: MAGIC Software Development, 2000-2008
     23#   Copyright: MAGIC Software Development, 2000-2009
    2424#
    2525#
     
    5555
    5656# get sequence #
    57 gettodo >> $scriptlog 2>&1
    58 sequence=$process
     57gettodo "1" >> $scriptlog 2>&1
     58sequence=${primaries[0]}
    5959
    6060# lock sequ for cal
     
    7373sequfile="$mcsequpath/$no/sequence$no2.txt"
    7474
    75 ## stage the needed files; to be removed as soon as the correct stub file size has been determined
    76 #echo "staging files:" >> $scriptlog 2>&1
    77 #day=`grep Night $sequfile | cut -c 18-27 | sed -e "s/-/\//g"`
    78 #runs=`grep Runs $sequfile | cut -d: -f2`
    79 #i=0
    80 #
    81 #for run in ${runs[@]}
    82 #do
    83 #   files[i]=19*_${run}_[PCD]_*_E.root
    84 #   echo ${mcpath}/rawfiles/${day}/${files[i]} >> $scriptlog 2>&1
    85 #   let i++
    86 #done
    87 #
    88 #ssh -nx phoenix "cd ${mcpath}/rawfiles/${day}; /opt/SUNWsamfs/bin/stage ${files[@]}"
    89 
    90 
    9175# define callisto.rc files
    9276callistorcnew=$setuppath/$program/callisto.rc
    93 callistorcmux=$setuppath/$program/callisto_mux_new.rc
     77callistorcmux=$setuppath/$program/callisto_mux.rc
    9478
    9579epoch=`grep Epoch $sequfile | cut -d: -f2 | grep Mux`
     
    11094fi
    11195
    112 # lock sequ for zipping
    113 #lockfile=$lockpath/calzip$sequence.txt
    114 # if lockfile is already existing, 1 is returned
    115 #if ! checklock return 1 >> $scriptlog 2>&1
    116 #then
    117    # reset lockfile name
    118 #   lockfile=$lockpath/lock-$table-$column-$sequence.txt
    119 #   finish >> $scriptlog 2>&1
    120 #fi
    121 
    12296primvar=$no2
    12397setstatus "start" >> $scriptlog 2>&1
     
    127101check1=$?
    128102
    129 # remove lockfile for zip and reset lockfile name
    130 #rm -v $lockfile >> $scriptlog 2>&1
    131 #lockfile=$lockpath/lock-$table-$column-$sequence.txt
    132 
    133103case $check1 in
    134104   0)   echo " check1=$check1 -> everything ok" >> $scriptlog 2>&1
    135105        printprocesslog "INFO $program finished successfully for mc sequence $sequence"
    136106        ;;
    137         # running merpp update if calibration worked
    138         # finding files, which have to be updated
    139 #        echo "finding files to be updated..." >> $scriptlog 2>&1
    140 #        calfiles=`find $outpath -name *_Y_* `
    141 #        if [ "$calfiles" = "" ]
    142 #        then
    143 #           echo " no files found -> continue with next sequence" >> $scriptlog 2>&1
    144 #           printprocesslog "ERROR no calfiles found"
    145 #        fi
    146 #        echo " files to be updated: "$calfiles >> $scriptlog 2>&1
    147 #       
    148 #        merpplogpath=$outpath"/merpplogs"
    149 #        makedir $merpplogpath >> $scriptlog 2>&1
    150 #       
    151 #        printprocesslog "INFO doing merppupdate for sequence $sequence"
    152 #        # updated calibrated data files with the information from the cc and caco files
    153 #        for calfile in ${calfiles[@]}
    154 #        do
    155 #           echo "calfile: "$calfile >> $scriptlog 2>&1
    156 #           # find cc and caco file
    157 #           # if file is missing continue with next sequence
    158 #           date=`date --date \`basename $calfile | cut -d_ -f1\` +%Y/%m/%d`
    159 #           ccpath=$subsystempath/cc/$date
    160 #           cacopath=$subsystempath/caco/$date
    161 #           runno=`echo $calfile | cut -d_ -f2 | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' `
    162 #           ccfile=`find $ccpath -name 20[0-2][0-9][01][0-9][0-3][0-9]_*${runno}_[PDCS]_*_S.rep`
    163 #           source=`echo $ccfile | cut -d_ -f4`
    164 #           cacofile=`find /magic/subsystemdata/caco/$date -name dc_20[0-2][0-9]_[01][0-9]_[0-3][0-9]_*${runno}_${source}.txt`
    165 #           if [ "$ccfile" = "" ]
    166 #           then
    167 #              echo "no ccfile found for run "$runno >> $scriptlog 2>&1
    168 #              printprocesslog "ERROR  ccfile $ccfile not found for $calfile"
    169 #              com=$Fnoccfile
    170 #              comadd=$runno
    171 #              check=0
    172 #              break
    173 #           fi
    174 #           if [ "$cacofile" = "" ]
    175 #           then
    176 #              echo "cacofile with no $runno not found" >> $scriptlog 2>&1
    177 #              echo "finding cacofile..." >> $scriptlog 2>&1
    178 #              for (( i = 0; i <= 10; i++ ))
    179 #              do
    180 #                 newrun=`echo $runno - $i | bc`
    181 #                 cacofile=`find $cacopath -name *$newrun*`
    182 #                 if [ "$cacofile" = "" ]
    183 #                 then
    184 #                    if [ $i -eq 9 ]
    185 #                    then
    186 #                       echo "no cacofile found for runno $newrun in $cacopath" >> $scriptlog 2>&1
    187 #                       printprocesslog "ERROR cacofile $cacofile not found for $calfile"
    188 #                       com=$Fnocacofile
    189 #                       comadd=$runno
    190 #                       check=0
    191 #                       break 2
    192 #                    fi
    193 #                    continue
    194 #                 else
    195 #                    echo "cacofile: "$cacofile >> $scriptlog 2>&1
    196 #                    break
    197 #                 fi
    198 #              done
    199 #           fi
    200 #           echo "./merpp -u --log=$merpplogpath/merppccupdate$runno.log --html=$merpplogpath/merppccupdate$runno.html --auto-time-stop --runfile=$runno $ccfile $calfile 2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
    201 #           ./merpp -u --log=$merpplogpath/merppccupdate$runno.log --html=$merpplogpath/merppccupdate$runno.html --auto-time-stop --runfile=$runno $ccfile $calfile 2>> $scriptlog> /dev/null
    202 #           check2=$?
    203 #           case $check2 in
    204 #              0)   echo " check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1
    205 #                   printprocesslog "INFO merppupdated $calfile sucessfully with $ccfile"
    206 #                   ;;
    207 #              *)   echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1
    208 #                   printprocesslog "ERROR merppccupdate with file $ccfile failed for $calfile"
    209 #                   com=$Fmerppcc
    210 #                   comadd=$runno
    211 #                   check=$check2
    212 #                   break ;;
    213 #           esac
    214 #           echo "./merpp -u --log=$merpplogpath/merppcacoupdate$runno.log --html=$merpplogpath/merppcacoupdate$runno.html --auto-time $cacofile $calfile 2>> $scriptlog> /dev/null" >> $scriptlog 2>&1
    215 #           ./merpp -u --log=$merpplogpath/merppcacoupdate$runno.log --html=$merpplogpath/merppcacoupdate$runno.html --auto-time $cacofile $calfile 2>> $scriptlog> /dev/null
    216 #           check3=$?
    217 #           case $check3 in
    218 #              0)   echo " check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1
    219 #                   printprocesslog "INFO merppupdated $calfile sucessfully with $cacofile"
    220 #                   ;;
    221 #              *)   echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1
    222 #                   printprocesslog "ERROR merppcacoupdate with file $cacofile failed for $calfile"
    223 #                   com=$Fmerppcaco
    224 #                   comadd=$runno
    225 #                   check=$check3
    226 #                   break ;;
    227 #           esac
    228 #        done
    229 #       printprocesslog "INFO finished merppupdate successfully for sequence $sequence"
    230 #        ;;
    231107   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    232108        printprocesslog "ERROR $program failed for mc sequence $sequence (return code $check1)"
  • trunk/MagicSoft/Mars/datacenter/scripts/runmcstar

    r8967 r9221  
    5656
    5757# get sequence #
    58 gettodo >> $scriptlog 2>&1
    59 sequence=$process
     58gettodo "1" >> $scriptlog 2>&1
     59sequence=${primaries[0]}
    6060
    6161# lock sequ
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r9183 r9221  
    126126Fganymed=21
    127127Ffillganymed=22
    128 #mc run process status
    129 Fcorsika=23
    130 Freflector=24
    131 Fcamera=25
    132128#again run process status
    133129FCompmux=26
    134130Fdowebplots=27
     131#again mc run process status
     132Fmccallisto=28
     133Ffillmccalib=29
     134Ffillmcsignal=30
     135Fmcstar=31
     136Ffillmcstar=32
    135137
    136138# setup for jobmanager:
Note: See TracChangeset for help on using the changeset viewer.