Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 4176)
+++ trunk/MagicSoft/Mars/Changelog	(revision 4178)
@@ -18,4 +18,12 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2004/05/25: Raquel de los Reyes
+
+   * mjobs/MJCalibration.cc
+     - uncommented the line to read .raw files.
+   * mraw/MRawFileRead.cc
+     - changed the PreProcess and Process functions to allow the analysis
+       of .raw files.
 
  2004/05/25: Markus Gaug
Index: trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJCalibration.cc	(revision 4176)
+++ trunk/MagicSoft/Mars/mjobs/MJCalibration.cc	(revision 4178)
@@ -926,6 +926,6 @@
   if (fDataCheck)
   {
-//     rawread.AddFiles(*fRuns); 
-     tlist.AddToList(&rawread);
+    rawread.AddFiles(*fRuns); 
+    tlist.AddToList(&rawread);
   }
   else
Index: trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawFileRead.cc	(revision 4176)
+++ trunk/MagicSoft/Mars/mraw/MRawFileRead.cc	(revision 4178)
@@ -278,6 +278,10 @@
     // Now open next (first) file
     //
-    if (!Rewind())
-        return kFALSE;
+//      if (!Rewind())
+//          return kFALSE;
+
+
+    fNumFile=0;
+    fNumEvents=0; 
 
     return kTRUE;
@@ -296,19 +300,22 @@
     while (1)
     {
-        //
-        // skip events if requested
-        //
-        if (fInterleave>1 && GetNumExecutions()%fInterleave>0 && fIn->peek()!=EOF)
+        if (fIn)
         {
-            SkipEvent(*fIn);
-            return kCONTINUE;
+            //
+            // skip events if requested
+            //
+            if (fInterleave>1 && GetNumExecutions()%fInterleave>0 && fIn->peek()!=EOF)
+            {
+                SkipEvent(*fIn);
+                return kCONTINUE;
+            }
+
+            //
+            // Read a single event from file
+            //
+            const Bool_t rc = ReadEvent(*fIn);
+            if (rc!=kFALSE)
+                return rc;
         }
-
-        //
-        // Read a single event from file
-        //
-        const Bool_t rc = ReadEvent(*fIn);
-        if (rc!=kFALSE)
-            return rc;
 
         //
@@ -318,5 +325,5 @@
             return kFALSE;
     }
-    return kTRUE;
+    return kTRUE; 
 }
 
