Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 2673)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 2674)
@@ -4,4 +4,15 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2003/12/15: Abelardo Moralejo
+
+   * mgeom/MGeomCam.h
+     - made the CalcPixRatio function public.
+
+   * manalysis/MGeomApply.cc
+     - call the CalcPixRatio of the MGeomCam object. Workaround to 
+       allow the analysis of some files from a beta version of camera 
+       0.7 in which the array containing pixel ratios was not 
+       initialized.
 
  2003/12/12: Markus Gaug / Michele Doro
Index: /trunk/MagicSoft/Mars/manalysis/MGeomApply.cc
===================================================================
--- /trunk/MagicSoft/Mars/manalysis/MGeomApply.cc	(revision 2673)
+++ /trunk/MagicSoft/Mars/manalysis/MGeomApply.cc	(revision 2674)
@@ -106,4 +106,10 @@
     }
 
+    // FIXME, workaround: this call to CalcPixRatio is here just to allow
+    // the use of some camera files from the 0.7 beta version in which the 
+    // array containing pixel ratios is not initialized.
+
+    cam->CalcPixRatio();
+
     MPedestalCam *ped = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));
     if (ped)
Index: /trunk/MagicSoft/Mars/mgeom/MGeomCam.h
===================================================================
--- /trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 2673)
+++ /trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 2674)
@@ -31,5 +31,4 @@
 
 protected:
-    void CalcPixRatio();
     void CalcMaxRadius();
     void CalcNumSectors();
@@ -49,4 +48,9 @@
 
     virtual TObject *Clone(const char *newname=NULL) const;
+
+    void CalcPixRatio(); 
+    // FIXME, workaround: this function is made public just to allow
+    // the use of some camera files from the 0.7 beta version in which the 
+    // array containing pixel ratios is not initialized.
 
     Float_t GetCameraDist() const { return fCamDist; }
