Changeset 9909 for trunk/Mars/datacenter
- Timestamp:
- 08/30/10 12:36:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/insertmc
r9898 r9909 37 37 # to really insert information set insert="yes" 38 38 insert="yes" 39 #insert=39 insert= 40 40 41 41 … … 44 44 # make sure that the information on the setup (i.e. table CeresSetup) 45 45 # has been inserted before 46 #cereskeys=( 2 3)47 cereskeys=( 1 )46 cereskeys=( 2 3 4 5 6 ) 47 #cereskeys=( 1 ) 48 48 49 49 … … 55 55 # protons: files 2000-2399 i.e. runs 633-750 56 56 # protons: files 3000-3099 i.e. runs 933-960 57 #runmin=42358 #runmax=96059 runmin=60 runmax=57 runmin=423 58 runmax=960 59 #runmin= 60 #runmax= 61 61 62 62 … … 190 190 echo "Do you really want to insert the following cereskey(s)?" 191 191 echo " run number range: "$runmin" - "$runmax 192 query="SELECT fRunNumber FROM CorsikaInfo WHERE fRunNumber BETWEEN "$runmin" AND "$runmax 192 query="SELECT fRunNumber FROM CorsikaInfo WHERE fRunNumber BETWEEN "$runmin" AND "$runmax" GROUP BY fRunNumber" 193 193 runs=( `sendquery` ) 194 194 echo " i.e. the following runs: "${runs[@]} … … 270 270 for cereskey in ${cereskeys[@]} 271 271 do 272 for (( i=1 ; i<=$numfile ; i++ )) 272 query="SELECT fFileNumber FROM CorsikaInfo WHERE fRunNumber="$drun 273 files=`sendquery` 274 for file in ${files[@]} 273 275 do 274 query="INSERT CeresInfo SET fSequenceNumber="$drun", fRunNumber="$drun", fFileNumber="$ i", fCeresSetupKEY="$cereskey", fRunTypeKEY=2"276 query="INSERT CeresInfo SET fSequenceNumber="$drun", fRunNumber="$drun", fFileNumber="$file", fCeresSetupKEY="$cereskey", fRunTypeKEY=2" 275 277 sendquery2 276 278 done
Note:
See TracChangeset
for help on using the changeset viewer.