Changeset 11862 for trunk/Mars/datacenter/scripts
- Timestamp:
- 08/09/11 16:52:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/runsimtel
r9541 r11862 38 38 set -C 39 39 40 simdir= /home/dorner/cta_mc40 simdir=$mcpath/software/simtel 41 41 42 42 export CORSIKA_PATH=$simdir/corsika-6735/run/ … … 58 58 echo "SEED "$run" 0 0 " 59 59 echo "SEED "$run" 0 0 " 60 # Observation level 61 echo "OBSLEV "$obslev".E2" 60 62 # output directory 61 63 echo "DIRECT "$outpath"/ " 62 inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part63 64 cat $inputcardpart 64 65 } … … 72 73 if [ ${diskusage[3]} -lt 90000000 ] 73 74 then 74 printprocesslog "WARN less than 90 GB left on /state/ctaon node $prodhost "75 printprocesslog "WARN less than 90 GB left on $mcpath on node $prodhost " 75 76 finish 76 77 else 77 printprocesslog "INFO still ${diskusage[3]} left on /state/ctaon node $prodhost "78 printprocesslog "INFO still ${diskusage[3]} left on $mcpath on node $prodhost " 78 79 fi 79 80 … … 94 95 query="SELECT fNumEvents FROM MCRunData where fMCRunNumber="$run 95 96 numevts=`sendquery` 97 98 # get observation level for the script to be begun for sim_telarray 99 query="SELECT fObsLevel FROM MCRunData WHERE fMCRunNumber="$run 100 obslev=`sendquery` 101 # export $OBSLEVEL for the script sim_telarray/cta-ultra2_run.sh or sim_telarray/cta-ultra2-moon_run.sh 102 export OBSLEVEL=$obslev 103 104 # get moon condition for the script to be begun for sim_telarray 105 query="SELECT fMoonConditionKEY FROM MCRunData where fMCRunNumber="$run 106 mooncase=`sendquery` 107 # export $moon for the script sim_telarray/multi/multi_cta-ultra3.cfg 108 case $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 ;; 116 esac 117 118 # for MC for 5at5 119 if [ "$obslev" == "5000" ] 120 then 121 export moon="-5at5" 122 inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part_5at5 123 else 124 inputcardpart=$setuppath/INPUTS_CTA_ULTRA3_${primparticle}_part 125 fi 126 96 127 97 128 # path and logs
Note:
See TracChangeset
for help on using the changeset viewer.