Ignore:
Timestamp:
02/05/10 14:52:18 (15 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/fillmcdb

    r9504 r9543  
    3434
    3535# number of runs to be inserted
     36#numruns=300
    3637numruns=2700
    3738# number of events per run
     
    4142#  14 = proton
    4243#   6 = muon
    43 particlekey=1
     44#particlekey=1
    4445particlekey=14
    4546
     47obslevel=3700
    4648
    4749#
     
    7072
    7173
    72 echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey"."
     74echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey" and observation level "$obslevel" m."
    7375echo "Next runs in DB from run number "${runs[0]}" to run number "${runs[1]}"."
    7476if [ "$1" == "-n" ]
     
    8082for i in `seq ${runs[0]} ${runs[1]}`
    8183do
    82    query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, fMCRunNumber=$i"
     84   query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, fObsLevel=$obslevel, fMCRunNumber=$i"
    8385   echo $query
    8486   sendquery "$query"
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r9504 r9543  
    4444fi
    4545
     46# possible solution for $0 problem:
     47# ${BASH_SOURCE[0]}
     48# but has to be checked and tested more carefully
     49# should solve at least problem with login-shell and with source
    4650source `dirname $0`/setup.$AUTOMATIONSETUP
    4751
     
    5963         if ! [ "$processlog" = "" ]
    6064         then
    61             echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] could not make dir "$@ >> $processlog
     65            echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] ERROR could not make dir "$@ >> $processlog
    6266         else
    6367            echo "could not make dir "$@
Note: See TracChangeset for help on using the changeset viewer.