Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 3965)
+++ trunk/MagicSoft/Mars/Changelog	(revision 3966)
@@ -19,4 +19,10 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2004/05/04: Raquel de los Reyes
+ 
+   * mbase/MRunIter.[h,cc]
+     - Added a flag and a set function to read .raw files. 
+       The default option is set to read .root files.
+
  2004/05/04: Javier Rico
  
@@ -24,5 +30,4 @@
      - when calibrating using kNONE, weight by the pixel area
 	
-
  2004/05/04: Thomas Bretz
  
Index: trunk/MagicSoft/Mars/mbase/MRunIter.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MRunIter.cc	(revision 3965)
+++ trunk/MagicSoft/Mars/mbase/MRunIter.cc	(revision 3966)
@@ -52,5 +52,5 @@
         p = ".";
 
-    MDirIter Next(p, Form("*_%05d_*_*.root", run), -1);
+    MDirIter Next(p, Form("*_%05d_*_%s", run,fIsRawFile?"*.raw":"*.root"), -1);
 
     const TString name(Next());
Index: trunk/MagicSoft/Mars/mbase/MRunIter.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MRunIter.h	(revision 3965)
+++ trunk/MagicSoft/Mars/mbase/MRunIter.h	(revision 3966)
@@ -15,4 +15,8 @@
     TString fPath;
     TArrayI fRuns;
+
+    Bool_t fIsRawFile;
+
+    void SetRawFile(Bool_t filetype) { fIsRawFile = filetype; }
 
     void AddRunNumber(UInt_t run)
@@ -39,5 +43,5 @@
 
 public:
-    MRunIter(const char *path=0) : fPath(path) { }
+    MRunIter(const char *path=0) : fPath(path), fIsRawFile(0) { }
 
     Int_t AddRun(UInt_t run, const char *path=0);
