Ignore:
Timestamp:
09/03/10 16:18:04 (14 years ago)
Author:
Daniela Dorner
Message:
fixed queries for change from file based to run based processing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/datacenter/scripts/runceres

    r9898 r9919  
    5555setupfile=$setuppath/$program/`printf %03d $cereskey`/ceres.rc
    5656
    57 query="SELECT fRunTypeKEY FROM CeresInfo WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey
     57query="SELECT fRunTypeKEY FROM CeresInfo WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey" GROUP BY fRunNumber"
    5858runkey=`sendquery`
    5959
     
    6161   2) printprocesslog "INFO run $run is a data run (key="$runkey")"
    6262      printprocesslog "INFO getting file numbers for run "$run
    63       query="SELECT CONCAT('"$mcpath"/corsika/', RIGHT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4),"
    64       query=$query" '"$mcpath"/corsika/', LEFT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4), '/cer000'"
     63      query="SELECT CONCAT('"$mcpath"/corsika/', LEFT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4),"
     64      query=$query" '/', RIGHT(LPAD(CeresInfo.fRunNumber, 8, '0'), 4), '/cer000', "
    6565      query=$query" RIGHT(LPAD(CeresInfo.fFileNumber, 6, '0'), 3)) from CeresInfo "
    6666      query=$query" WHERE fRunNumber="$run" AND fCeresSetupKEY="$cereskey
     
    9494      check1=$?
    9595      ;;
    96    *) printprocesslog "WARN not valid fRunTypeKEY ("$runkey")was queried from the DB."
    97       finish
     96   *) printprocesslog "WARN not valid fRunTypeKEY ("$runkey") was queried from the DB."
     97      check="no"
    9898      ;;
    9999esac
Note: See TracChangeset for help on using the changeset viewer.