Changeset 7982 for trunk


Ignore:
Timestamp:
09/28/06 10:33:17 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7981 r7982  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2006/09/28 Daniela Dorner
     22
     23   * datacenter/scripts/checkfilesforsequenceavail,
     24     datacenter/scripts/runcallisto:
     25     - improved processlog
     26
     27   * datacenter/scripts/setup, datacenter/scripts/linkmc,
     28     datacenter/scripts/mcsequences,
     29     datacenter/scripts/processmcsequences:
     30     - moved mcpath to setup
     31     - updated mcpath
     32
     33
    2034
    2135 2006/09/28 Thomas Bretz
  • trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail

    r7954 r7982  
    9393           ;;
    9494      *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    95            printprocesslog "ERROR $program.C failed"
     95           printprocesslog "ERROR $program.C failed for sequence $sequence"
    9696           com=$Ffilesavail
    9797           check=$check1
  • trunk/MagicSoft/Mars/datacenter/scripts/linkmc

    r7967 r7982  
    3131#
    3232# original structure:
    33 # /montecarlo/camera/
     33# /magic/montecarlo/camera/
    3434#
    3535# new structure:
    36 # /montecarlo/rawfiles/YYYY/MM/DD/file.root
     36# /magic/montecarlo/rawfiles/YYYY/MM/DD/file.root
    3737# more explanation concerning the file structure can be found in the file
    38 # /montecarlo/rawfiles/README.txt
     38# /magic/montecarlo/rawfiles/README.txt
    3939#
    4040# First the data files are linked and then in each new directory also the
     
    5555checklock  >> $scriptlog 2>&1
    5656
    57 mccampath=/montecarlo/camera
    58 mcpath=/montecarlo/rawfiles
    59 next=$mcpath/.next #in .next the next runno is stored
    60 processed=$mcpath/.processed #in .processed the linked files are stored
    61 readme=$mcpath/README.txt #file in which the information about the modes is redirected to have always an updated explanation
     57mccampath=$mcpath/camera
     58next=$mcrawpath/.next #in .next the next runno is stored
     59processed=$mcrawpath/.processed #in .processed the linked files are stored
     60readme=$mcrawpath/README.txt #file in which the information about the modes is redirected to have always an updated explanation
    6261
    6362# check if file with next runnumber is available
     
    163162   project=${particle}${zbin}${wobblemode} #build project name
    164163   #create new filename
    165    newfile="$mcpath/19$zbin/$totalmode/$psf/19${zbin}${totalmode}${psf}_${no2}_D_${project}_E.root"
     164   newfile="$mcrawpath/19$zbin/$totalmode/$psf/19${zbin}${totalmode}${psf}_${no2}_D_${project}_E.root"
    166165   newdir=`dirname $newfile`
    167166   makedir $newdir >> $scriptlog 2>&1
     
    194193
    195194#get all directories in the linked structure
    196 dirs=`find $mcpath -type d`
     195dirs=`find $mcrawpath -type d`
    197196
    198197for dir in ${dirs[@]}
  • trunk/MagicSoft/Mars/datacenter/scripts/mcsequences

    r7968 r7982  
    4747checklock  >> $scriptlog 2>&1
    4848
    49 mcpath=/montecarlo/rawfiles
    50 mcsequpath=/montecarlo/sequences
    51 
    5249# find montecarlo directories, build one sequence per directory and write sequence file
    5350printprocesslog "INFO building one sequence per mcdirectory"
    54 dirs=`find $mcpath -type d`
     51dirs=`find $mcrawpath -type d`
    5552for dir in ${dirs[@]}
    5653do
  • trunk/MagicSoft/Mars/datacenter/scripts/processmcsequences

    r7944 r7982  
    4545checklock  >> $scriptlog 2>&1
    4646
    47 mcpath=/montecarlo/rawfiles
    48 mccalpath=/montecarlo/callisto
    49 mcimgpath=/montecarlo/star
    50 mcsequpath=/montecarlo/sequences
     47mccalpath=$mcpath/callisto
     48mcimgpath=$mcpath/star
    5149callistorc=$setuppath/callisto/callisto.rc
    5250
     
    8987   fi
    9088   # calibrate data
    91    echo "./callisto -mc -f -b -q --ind=$mcpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null" >> $scriptlog 2>&1
    92    ./callisto -mc -f -b -q --ind=$mcpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null
     89   echo "./callisto -mc -f -b -q --ind=$mcrawpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null" >> $scriptlog 2>&1
     90   ./callisto -mc -f -b -q --ind=$mcrawpath/$date --log=$caloutpath/callisto$sequno.log --html=$caloutpath/callisto$sequno.html --out=$caloutpath --config=$callistorcseq $sequfile 2>> $scriptlog > /dev/null
    9391   check1=$?
    9492   # if calibration worked -> run star for sequence
  • trunk/MagicSoft/Mars/datacenter/scripts/runcallisto

    r7944 r7982  
    187187          ;;
    188188   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    189         printprocesslog "ERROR $program failed for sequence $sequence"
     189        printprocesslog "ERROR $program failed for sequence $sequence (return code $check1)"
    190190        com=$Fcallisto
    191191        check=$check1
  • trunk/MagicSoft/Mars/datacenter/scripts/setup

    r7976 r7982  
    4848datasetpath=/magic/datasets
    4949
     50mcpath=/magic/montecarlo
     51mcrawpath=$mcpath/rawfiles
     52mcsequpath=$mcpath/sequences
    5053
    5154webpath=/www/htdocs/datacenter
Note: See TracChangeset for help on using the changeset viewer.