Changeset 18394 for trunk


Ignore:
Timestamp:
12/29/15 20:56:38 (9 years ago)
Author:
Daniela Dorner
Message:
updated to use the variable certainate instead of editing the script, removed not needed lines
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/ReDoStar.sh

    r17900 r18394  
    44printprocesslog "INFO starting $0"
    55
    6 #root=/opt/root_svn/bin/thisroot.sh
    7 #source $root
     6# get date
     7checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     8if [ "$checkstring" = "" ] || [ "$certaindate" = "" ]
     9then
     10   echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     11   finish
     12else
     13   date=$certaindate
     14fi
    815
    9 anapath=/loc_data/analysis
    10 auxpath=/loc_data/aux
    11 
    12 printprocesslog "INFO get list of calibrated files"
    13 
    14 date="2014/05/24"
    15 #calfiles=( `find $anapath -type f -name '*_C.root' 2>/dev/null | grep -v failed_stuff | sort` )
     16printprocesslog "INFO get list of calibrated files for "$date
    1617calfiles=( `find $anapath/callisto/$date -type f -name '*_C.root' 2>/dev/null | sort` )
    1718if [ ${#calfiles[@]} -eq 0 ]
    1819then
    19    printprocesslog "INFO no calibrated files available "
     20   printprocesslog "INFO no calibrated files available for "$date
    2021   finish
    2122fi
    22 #starfiles=( `find $anapath -type f -name '*_I.root' 2>/dev/null | grep -v failed_stuff | sort` )
     23printprocesslog "INFO get list of star files"
    2324starfiles=( `find $anapath/star/$date -type f -name '*_I.root' 2>/dev/null | sort` )
    2425if [ ${#starfiles[@]} -eq 0 ]
Note: See TracChangeset for help on using the changeset viewer.