Ignore:
Timestamp:
08/09/11 16:52:20 (13 years ago)
Author:
Daniela Dorner
Message:
added observation level and moon 
File:
1 edited

Legend:

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

    r9541 r11862  
    3838set -C
    3939
    40 simdir=/home/dorner/cta_mc
     40simdir=$mcpath/software/simtel
    4141
    4242export CORSIKA_PATH=$simdir/corsika-6735/run/
     
    5858   echo "SEED "$run" 0 0 "
    5959   echo "SEED "$run" 0 0 "
     60   # Observation level
     61   echo "OBSLEV "$obslev".E2"
    6062   # output directory
    6163   echo "DIRECT "$outpath"/ "
    62    inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part
    6364   cat $inputcardpart
    6465}
     
    7273if [ ${diskusage[3]} -lt 90000000 ]
    7374then
    74    printprocesslog "WARN less than 90 GB left on /state/cta on node $prodhost "
     75   printprocesslog "WARN less than 90 GB left on $mcpath on node $prodhost "
    7576   finish
    7677else
    77    printprocesslog "INFO still ${diskusage[3]} left on /state/cta on node $prodhost "
     78   printprocesslog "INFO still ${diskusage[3]} left on $mcpath on node $prodhost "
    7879fi
    7980
     
    9495query="SELECT fNumEvents FROM MCRunData where fMCRunNumber="$run
    9596numevts=`sendquery`
     97
     98# get observation level for the script to be begun for sim_telarray
     99query="SELECT fObsLevel FROM MCRunData WHERE fMCRunNumber="$run
     100obslev=`sendquery`
     101# export $OBSLEVEL for the script sim_telarray/cta-ultra2_run.sh or sim_telarray/cta-ultra2-moon_run.sh
     102export OBSLEVEL=$obslev
     103
     104# get moon condition for the script to be begun for sim_telarray
     105query="SELECT fMoonConditionKEY FROM MCRunData where fMCRunNumber="$run
     106mooncase=`sendquery`
     107# export $moon for the script sim_telarray/multi/multi_cta-ultra3.cfg
     108case $mooncase in
     109   0)   export moon=''
     110        ;;
     111   1)   export moon="-moon"
     112        ;;
     113   *)   printprocesslog "ERROR $program failed to retrieve the moon condition"
     114        finish
     115        ;;
     116esac
     117
     118# for MC for 5at5
     119if [ "$obslev" == "5000" ]
     120then
     121   export moon="-5at5"
     122   inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part_5at5
     123else
     124   inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part
     125fi
     126
    96127
    97128# path and logs
Note: See TracChangeset for help on using the changeset viewer.