Index: trunk/Mars/datacenter/scripts/insertmc
===================================================================
--- trunk/Mars/datacenter/scripts/insertmc	(revision 10012)
+++ trunk/Mars/datacenter/scripts/insertmc	(revision 10013)
@@ -46,4 +46,5 @@
 cereskeys=( 7 ) 
 cereskeys=( 1 2 3 4 5 6 7 8 9 10 11 12 ) 
+cereskeys=( 8 9 10 11 12 ) 
 
 
@@ -69,7 +70,11 @@
 
 # number of events per file
-numevents=10000  # 250000
+numevents=35000  # Protons CSCAT=20
+#numevents=2000 # Gamma CSCAT=20
+
 # number of files per run
-numfile=1 # 10
+#numfile=1 #
+numfile=50 # Protons CSCAT=20
+#numfile=10 # Gamma CSCAT=20
 
 numreuse=1
@@ -93,8 +98,10 @@
 
 # energy (in GeV)
-emin=10  # 20
-emax=10  # 200000
-slope=-2.0 # for gammas, depends on source spectrum, or for test
-#slope=-2.78 # for protons and muons and irons
+emin=20  # 20
+emax=200000  # 200000
+#emin=100 # Gamma
+#emax=50000 # Gamma
+#slope=-2.7 # for gammas, depends on source spectrum, or for test
+slope=-2.78 # for protons and muons and irons
 
 # impact
@@ -184,5 +191,5 @@
    echo "  Energy:            "$emin" GeV - "$emax" GeV "
    echo "  Slope:             "$slope
-   echo "  Maximum Impact:    "$impactmax" m "
+   echo "  Maximum Impact:    "$impactmax" cm "
    echo "  Maximum View Cone: "$viewconemax" deg "
    echo "  Starting Altitude: "$startalt
@@ -213,4 +220,5 @@
 
 answer=`head -n 1`
+#answer=y
 echo "Your answer: "$answer
 
@@ -254,7 +262,7 @@
    done
 
-   query="INSERT CorsikaStatus SET fRunNumber="$prun", fFileNumber=1, fStartTime='1970-01-01 00:00:00', fStopTime='1970-01-01 00:00:00' "", fPriority="$prun
+   query="INSERT CorsikaStatus SET fRunNumber="$prun", fFileNumber=1, fStartTime='1970-01-01 00:00:00', fStopTime='1970-01-01 00:00:00', fAvailable='1970-01-01 00:00:00', fPriority="$prun
    sendquery2 
-   query="INSERT CorsikaStatus SET fRunNumber="$crun", fFileNumber=1, fStartTime='1970-01-01 00:00:00', fStopTime='1970-01-01 00:00:00' "", fPriority="$crun
+   query="INSERT CorsikaStatus SET fRunNumber="$crun", fFileNumber=1, fStartTime='1970-01-01 00:00:00', fStopTime='1970-01-01 00:00:00', fAvailable='1970-01-01 00:00:00', fPriority="$crun
    sendquery2 
 
