Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7566)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7567)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2006/03/04 Daniela Dorner
+
+   * callisto.cc: 
+     - changed return values to improve the failure handling in the db
+
+
+
  2006/03/03 Thomas Bretz
 
Index: trunk/MagicSoft/Mars/callisto.cc
===================================================================
--- trunk/MagicSoft/Mars/callisto.cc	(revision 7566)
+++ trunk/MagicSoft/Mars/callisto.cc	(revision 7567)
@@ -261,5 +261,5 @@
     {
         gLog << err << "Sorry, sequence file '" << kSequence << "' doesn't exist." << endl;
-        return 2;
+        return 3;
     }
 
@@ -267,5 +267,5 @@
     {
         gLog << err << "Sorry, config file '" << kConfig << "' doesn't exist." << endl;
-        return 2;
+        return 4;
     }
 
@@ -287,5 +287,5 @@
     {
         gLog << err << "Sequence read but not valid!" << endl << endl;
-        return 2;
+        return 5;
     }
 
@@ -371,5 +371,5 @@
         {
             gLog << err << "Calculation of pedestal failed." << endl << endl;
-            return 2;
+            return 6;
         }
 
@@ -408,5 +408,5 @@
         {
             gLog << err << "Calculation of pedestal resolution failed." << endl << endl;
-            return 2;
+            return 7;
         }
 
@@ -438,5 +438,5 @@
         {
             gLog << err << "Calculation of calibration failed." << endl << endl;
-            return 2;
+            return 8;
         }
 
@@ -466,5 +466,5 @@
             {
                 gLog << err << "Calibration of calibration failed." << endl << endl;
-                return 2;
+                return 9;
             }
 
@@ -506,5 +506,5 @@
         {
             gLog << err << "Calculation of fundamental pedestal failed." << endl << endl;
-            return 2;
+            return 10;
         }
 
@@ -550,4 +550,17 @@
 
             gLog << err << "Calculation of pedestal from extrtactor (random) failed." << endl << endl;
+
+            //error coding for the automatic analysis (to be filled into the database)
+            switch (rc)
+            {
+            case 0:
+                return 11;
+            case -1:
+                return 12;
+            case -2:
+                return 13;
+            case -3:
+                return 14;
+            }
             return 2;
         }
@@ -586,5 +599,5 @@
         {
             gLog << err << "Calculation of pedestal from extractor failed." << endl << endl;
-            return 2;
+            return 15;
         }
 
@@ -613,5 +626,5 @@
         // Where to search for calibration files
         if (!job4.Process(job1.GetPedestalCam(), job3.GetPedestalCam(), job2.GetPedestalCam()))
-            return 2;
+            return 16;
 
         if (kDebugEnv>0)
