Changeset 9543
- Timestamp:
- 02/05/10 14:52:18 (15 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9542 r9543 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2010/02/01 Daniela Dorner 22 23 * datacenter/scripts/fillmcdb: 24 - added observation level 25 26 * datacenter/scripts/sourcefile: 27 - added comment concerning $0 problem 28 - added 'ERROR' in processlog message of makedir 29 30 20 31 21 32 2010/02/04 Stefan Ruegamer -
trunk/MagicSoft/Mars/datacenter/scripts/fillmcdb
r9504 r9543 34 34 35 35 # number of runs to be inserted 36 #numruns=300 36 37 numruns=2700 37 38 # number of events per run … … 41 42 # 14 = proton 42 43 # 6 = muon 43 particlekey=144 #particlekey=1 44 45 particlekey=14 45 46 47 obslevel=3700 46 48 47 49 # … … 70 72 71 73 72 echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey" ."74 echo "Inserting "$numruns" runs with "$numevts" events each and particle number "$particlekey" and observation level "$obslevel" m." 73 75 echo "Next runs in DB from run number "${runs[0]}" to run number "${runs[1]}"." 74 76 if [ "$1" == "-n" ] … … 80 82 for i in `seq ${runs[0]} ${runs[1]}` 81 83 do 82 query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, f MCRunNumber=$i"84 query="INSERT MCRunData SET fNumEvents=$numevts, fParticleTypeKEY=$particlekey, fObsLevel=$obslevel, fMCRunNumber=$i" 83 85 echo $query 84 86 sendquery "$query" -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9504 r9543 44 44 fi 45 45 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 46 50 source `dirname $0`/setup.$AUTOMATIONSETUP 47 51 … … 59 63 if ! [ "$processlog" = "" ] 60 64 then 61 echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] could not make dir "$@ >> $processlog65 echo `date +%F\ %T`" "`whoami`"@"$HOSTNAME" "`basename $0`"["$$"] ERROR could not make dir "$@ >> $processlog 62 66 else 63 67 echo "could not make dir "$@
Note:
See TracChangeset
for help on using the changeset viewer.