Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9027)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9028)
@@ -18,4 +18,24 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2008/07/22 Thomas Bretz
+
+   * mbase/MTime.cc:
+     - do not check the return value of mktime (this would
+       fail for dates before 1970)
+
+   * mjobs/MJCalibrateSignal.cc, mjobs/MJStar.cc:
+     - distinguish between data-runs and mc-runs for the rate plot
+     - named the tasklist for pedestal and calib extraction
+
+   * mjobs/MJMerpp.cc:
+     - precheck the accessibility of all files if a sequence
+       is processed
+
+   * mjobs/MSequence.cc:
+     - the file number is three digits
+     - the Tag for data runs is DatRuns not DataRuns
+
+
 
  2008/07/21 Thomas Bretz
Index: /trunk/MagicSoft/Mars/mjobs/MJMerpp.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJMerpp.cc	(revision 9027)
+++ /trunk/MagicSoft/Mars/mjobs/MJMerpp.cc	(revision 9028)
@@ -240,4 +240,6 @@
         return 1;
 
+    // FIXME: Add a check whether the file has already been merpped!!!
+
     const Bool_t isreport = fPathIn.EndsWith(".rep");
     const Bool_t isdc     = fPathIn.EndsWith(".txt");
@@ -337,4 +339,18 @@
     const TString calpath = fPathOut;
 
+    // PreCheck: We don't wantto start merpp if we
+    // know that an error will occur
+    for (UInt_t i=0; i<num; i++)
+    {
+        const TString name1 = fHeaderRun==0 ? reppath : seq.GetFileName(i, MSequence::kReportDat, reppath);
+        const TString name2 = seq.GetFileName(i, MSequence::kCalibrated, calpath);
+
+        // Full qualified name could not be determined or file is not
+        // accessible. For excluded files "0" is returned.
+        if (name1.IsNull() || name2.IsNull())
+            return 6;
+    }
+
+    // Now we can safely start processing
     TString rc;
     for (UInt_t i=0; i<num; i++)
@@ -349,9 +365,4 @@
         const TString name1 = fHeaderRun==0 ? reppath : seq.GetFileName(i, MSequence::kReportDat, reppath);
         const TString name2 = seq.GetFileName(i, MSequence::kCalibrated, calpath);
-
-        // Full qualified name could not be determined
-        // or file is not accessible
-        if (name1.IsNull() || name2.IsNull())
-            return 6;
 
         // FIXME: check runcallisto
Index: /trunk/MagicSoft/Mars/mjobs/MJStar.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 9027)
+++ /trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 9028)
@@ -408,4 +408,10 @@
     tlist2.AddToList(&clean);
     tlist2.AddToList(&poscalc);
+
+    MFillH fillsp("MHSrcPosCam", "MSrcPosCam", "FillSrcPosCam");
+    fillsp.SetNameTab("Src");
+    tlist2.AddToList(&fillsp);
+
+
     tlist2.AddToList(&hcalc);
     tlist2.AddToList(&fsparks);
Index: /trunk/MagicSoft/Mars/mjobs/MSequence.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MSequence.cc	(revision 9027)
+++ /trunk/MagicSoft/Mars/mjobs/MSequence.cc	(revision 9028)
@@ -493,5 +493,5 @@
 
         if (tel>0)
-            n += Form(".%05d", file);
+            n += Form(".%03d", file);
     }
 
@@ -1387,9 +1387,9 @@
         // Should we add a check forbidding the same run in
         // Cal/Ped/Data? What about the Exclude?
-        /*str +=*/ PrintRuns(out, pre, "Runs:     ", fRuns,     fRunsSub);
-        str += PrintRuns(out, pre, "CalRuns:  ", fCalRuns,  fCalRunsSub);
-        str += PrintRuns(out, pre, "PedRuns:  ", fPedRuns,  fPedRunsSub);
-        str += PrintRuns(out, pre, "DataRuns: ", fDatRuns,  fDatRunsSub);
-        str += PrintRuns(out, pre, "Exclude:  ", fExclRuns, fExclRunsSub);
+        /*str +=*/ PrintRuns(out, pre, "Runs:    ", fRuns,     fRunsSub);
+        str += PrintRuns(out, pre, "CalRuns: ", fCalRuns,  fCalRunsSub);
+        str += PrintRuns(out, pre, "PedRuns: ", fPedRuns,  fPedRunsSub);
+        str += PrintRuns(out, pre, "DatRuns: ", fDatRuns,  fDatRunsSub);
+        str += PrintRuns(out, pre, "Exclude: ", fExclRuns, fExclRunsSub);
     }
 
