Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 8526)
+++ trunk/MagicSoft/Mars/Changelog	(revision 8527)
@@ -18,4 +18,32 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2007/05/18 Daniela Dorner
+
+   * datacenter/scripts/runcorsika:
+     - added (script to run corsika automatically)
+
+   * datacenter/scripts/runreflector:
+     - added (script to run reflector automatically)
+
+   * datacenter/scripts/runcamera:
+     - added (script to run camera automatically)
+
+   * datacenter/scripts/jobmanager:
+     - added possibility to start separate jobmanager for the MC 
+       processing by giving 'mc' as command line option
+
+   * datacenter/scripts/setup:
+     - added setting for MC production steps
+
+   * datacenter/scripts/sourcefile:
+     - added fail codes for MC production steps
+
+   * steps.rc:
+     - added settings for MC production steps
+     - removed timer table information (this was only neede by the 
+       macro getdolist.C in case of day-wise processing of data)
+
+
+
  2007/05/17 Thomas Bretz
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/jobmanager	(revision 8526)
+++ trunk/MagicSoft/Mars/datacenter/scripts/jobmanager	(revision 8527)
@@ -36,4 +36,20 @@
 echo "" >> $jmscriptlog 2>&1
 echo "starting jobmanager ("`date`")" >> $jmscriptlog 2>&1
+
+if [ "$1" == "" ]
+then
+   echo "running jobmanager for data" >> $jmscriptlog 2>&1
+   scripts=( ${datascripts[@]} )
+   scriptscolname=( ${datascriptscolname[@]} )
+elif [ "$1" = "mc" ]
+then
+   echo "running jobmanager for mc" >> $jmscriptlog 2>&1
+   scripts=( ${mcscripts[@]} )
+   scriptscolname=( ${mcscriptscolname[@]} )
+else
+   echo "$1 is awrong commandline option for jobmanager -> exit" >> $jmscriptlog 2>&1
+   printprocesslog "WARN $1 is wrong commandline option for jobmanager"
+   finish >> $jmscriptlog 2>&1
+fi
 
 prev=$max
Index: trunk/MagicSoft/Mars/datacenter/scripts/setup
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/setup	(revision 8526)
+++ trunk/MagicSoft/Mars/datacenter/scripts/setup	(revision 8527)
@@ -51,4 +51,6 @@
 mcrawpath=$mcpath/rawfiles
 mcsequpath=$mcpath/sequences
+reflectorversion="reflector 0.7"
+cameraversion="camera 0.75"
 
 webpath=/www/htdocs/datacenter
@@ -68,6 +70,6 @@
 #scripts=( "runcallisto" "runstar" "runganymed" "dodatacheck" ) 
 #scriptscolname=( "fCallisto" "fStar" "fGanymed" "fDataCheckDone" ) 
-scripts=( "runcallisto" "runstar" "runganymed" ) 
-scriptscolname=( "fCallisto" "fStar" "fGanymed" ) 
+datascripts=( "runcallisto" "runstar" "runganymed" ) 
+datascriptscolname=( "fCallisto" "fStar" "fGanymed" ) 
 
 #hour:            0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
@@ -90,2 +92,19 @@
 pnoswe=( ${pnocallistowe[@]} ${pnostarwe[@]} ${pnoganymedwe[@]} )
 
+# values for mc production
+mcscripts=( "runcorsika" "runreflector" "runcamera" ) 
+mcscriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" ) 
+
+#hour:            0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
+
+pnocorsika=(     12 12 12 12 12 12 12 10  9  8  7  7  7  7  7  7  7  7  7  8  9 10 12 12 )
+pnoreflector=(    8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8 )
+pnocamera=(       4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4 )
+
+pnocorsikawe=(   12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 )
+pnoreflectorwe=(  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8 )
+pnocamerawe=(     4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4 )
+
+pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} )
+pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} )
+
Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8526)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8527)
@@ -105,5 +105,8 @@
 Fganymed=21
 Ffillganymed=22
-
+#mc run process status
+Fcorsika=23
+Freflector=24
+Fcamera=25
 
 # setup for jobmanager:
Index: trunk/MagicSoft/Mars/steps.rc
===================================================================
--- trunk/MagicSoft/Mars/steps.rc	(revision 8526)
+++ trunk/MagicSoft/Mars/steps.rc	(revision 8527)
@@ -1,12 +1,9 @@
 #primaries:
 SequenceBuildStatus.Primary: fDate
-#SequenceBuildStatus.TimerTable: -
 RunProcessStatus.Primary: fRunNumber
-RunProcessStatus.TimerTable: RunData
 SequenceProcessStatus.Primary: fSequenceFirst
-SequenceProcessStatus.TimerTable: Sequences
 DataSetProcessStatus.Primary: fDataSetNumber
-#DataSetProcessStatus.TimerTable: -
-
+MCRunProcessStatus.Primary: fMCRunNumber
+MCSequenceProcessingStatus.Primary: fMCSequenceFirst
 
 #--------------------------------------------------------------------
@@ -211,2 +208,54 @@
 
 
+#--------------------------------------------------------------------
+
+
+#MCRunProcessStatus.fMCRunNumber: 
+MCRunProcessStatus.fMCRunNumber.Default: yes
+#MCRunProcessStatus.fMCRunNumber.Needs: -
+MCRunProcessStatus.fMCRunNumber.Influences: MCRunProcessStatus.fCameraInputCreated
+MCRunProcessStatus.fMCRunNumber.Reset: yes
+
+
+#MCRunProcessStatus.fCameraInputCreated: 
+MCRunProcessStatus.fCameraInputCreated.Default: no
+MCRunProcessStatus.fCameraInputCreated.Needs: MCRunProcessStatus.fMCRunNumber
+MCRunProcessStatus.fCameraInputCreated.Influences: MCRunProcessStatus.fReflectorInputCreated
+MCRunProcessStatus.fCameraInputCreated.Reset: yes 
+
+
+#MCRunProcessStatus.fReflectorInputCreated: 
+MCRunProcessStatus.fReflectorInputCreated.Default: no
+MCRunProcessStatus.fReflectorInputCreated.Needs: MCRunProcessStatus.fCameraInputCreated
+MCRunProcessStatus.fReflectorInputCreated.Influences: MCRunProcessStatus.fCorsikaInputCreated
+MCRunProcessStatus.fReflectorInputCreated.Reset: yes 
+
+
+#MCRunProcessStatus.fCorsikaInputCreated: 
+MCRunProcessStatus.fCorsikaInputCreated.Default: no
+MCRunProcessStatus.fCorsikaInputCreated.Needs: MCRunProcessStatus.fReflectorInputCreated
+MCRunProcessStatus.fCorsikaInputCreated.Influences: MCRunProcessStatus.fCorsikaFileAvail
+MCRunProcessStatus.fCorsikaInputCreated.Reset: yes 
+
+
+#MCRunProcessStatus.fCorsikaFileAvail: 
+MCRunProcessStatus.fCorsikaFileAvail.Default: no
+MCRunProcessStatus.fCorsikaFileAvail.Needs: MCRunProcessStatus.fCorsikaInputCreated
+MCRunProcessStatus.fCorsikaFileAvail.Influences: MCRunProcessStatus.fReflectorFileAvail MCRunProcessStatus.fCameraFileAvail
+MCRunProcessStatus.fCorsikaFileAvail.Reset: yes 
+
+
+#MCRunProcessStatus.fReflectorFileAvail: 
+MCRunProcessStatus.fReflectorFileAvail.Default: no
+MCRunProcessStatus.fReflectorFileAvail.Needs: MCRunProcessStatus.fCorsikaFileAvail
+MCRunProcessStatus.fReflectorFileAvail.Influences: MCRunProcessStatus.fCameraFileAvail
+MCRunProcessStatus.fReflectorFileAvail.Reset: yes 
+
+
+#MCRunProcessStatus.fCameraFileAvail: 
+MCRunProcessStatus.fCameraFileAvail.Default: no
+MCRunProcessStatus.fCameraFileAvail.Needs: MCRunProcessStatus.fReflectorFileFileAvail
+#MCRunProcessStatus.fCameraFileAvail.Influences: 
+MCRunProcessStatus.fCameraFileAvail.Reset: yes 
+
+
