Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7354)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7355)
@@ -46,4 +46,7 @@
      - removed some obsolete comments
      - added Copy() member function
+
+   * mgeom/MGeomCam.[h,cc], mgeom/MGeomPix.h:
+     - new member function GetAngle
 
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 7354)
+++ trunk/MagicSoft/Mars/NEWS	(revision 7355)
@@ -20,4 +20,7 @@
    - callisto: The status "unmapped" (for pixel which cannot be interpolated)
      got lost when the events were stored by the calibration... fixed.
+     (This was no problem for normal image cleaning because the pixel 
+      content was artificially set to 0 not surviving standard cleaning
+      algorithm)
 
    - callisto: Fixed a bug which caused the random and peak-search pedestal
@@ -48,5 +51,5 @@
  *** Version 0.9.4 (2005/08/05)
 
-   - general: Fixed the ZA binning. It didn't correctyl fit the
+   - general: Fixed the ZA binning. It did not correctly fit the
      MC binning
 
Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 7354)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.cc	(revision 7355)
@@ -237,4 +237,18 @@
 // --------------------------------------------------------------------------
 //
+// Returns the angle between of pixels i wrt pixel j (default=0). The angle
+// is returned in the range between -pi and pi (atan2) and 2*pi if i or j
+// is out of range.
+//
+Float_t MGeomCam::GetAngle(UShort_t i, UShort_t j) const
+{
+    if (i>=fNumPixels || j>=fNumPixels)
+        return TMath::TwoPi();
+
+    return (*this)[i].GetAngle((*this)[j]);
+}
+
+// --------------------------------------------------------------------------
+//
 // Have to call the radii of the subcameras starting to count from 1
 //
Index: trunk/MagicSoft/Mars/mgeom/MGeomCam.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 7354)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCam.h	(revision 7355)
@@ -67,4 +67,5 @@
 
     Float_t GetDist(UShort_t i, UShort_t j=0) const;
+    Float_t GetAngle(UShort_t i, UShort_t j=0) const;
 
     UInt_t  GetNumSectors()                const  { return fNumSectors; }
Index: trunk/MagicSoft/Mars/mgeom/MGeomPix.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomPix.h	(revision 7354)
+++ trunk/MagicSoft/Mars/mgeom/MGeomPix.h	(revision 7355)
@@ -63,5 +63,7 @@
     UInt_t  GetSector() const { return fSector; }
 
-    Float_t GetDist(const MGeomPix & pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
+    Float_t GetDist(const MGeomPix &pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
+    Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); }
+
 
     Float_t GetA() const    { return fA; /*fD*fD*gsTan60/2;*/ }
Index: trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc	(revision 7354)
+++ trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc	(revision 7355)
@@ -63,5 +63,11 @@
 //     // Task to fill the histogram
 //     MFillH fill1(&hist1, "MCameraDC");
-// 
+//
+//
+// Class Version 2:
+// ----------------
+//  + Double_t fMinimum;      // User defined minimum
+//  + Double_t fMaximum;      // User defined maximum
+//
 //
 /////////////////////////////////////////////////////////////////////////////
Index: trunk/MagicSoft/Mars/msignal/MSignalPix.cc
===================================================================
--- trunk/MagicSoft/Mars/msignal/MSignalPix.cc	(revision 7354)
+++ trunk/MagicSoft/Mars/msignal/MSignalPix.cc	(revision 7355)
@@ -17,7 +17,6 @@
 !
 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
-!   Author(s): Harald Kornmayer 1/2001
 !
-!   Copyright: MAGIC Software Development, 2000-2004
+!   Copyright: MAGIC Software Development, 2000-2005
 !
 !
@@ -59,4 +58,10 @@
 //    the container for calibrated data will change soon.
 //
+// Version 7:
+// ----------
+//  - removed '!' from fRing to allow the status 'Unmapped' to be stored
+//    after calibration (bad pixel treatment). This increases the file
+//    size of the calibrated data by roughly 0.5%
+//
 ////////////////////////////////////////////////////////////////////////////
 #include "MSignalPix.h"
@@ -97,5 +102,16 @@
 { 
     gLog << GetDescriptor();// << " Pixel: "<< fPixId;
-    gLog << (fRing>0?"   Used ":" Unused ");
+    switch (fRing)
+    {
+    case -1:
+        gLog << "Unampped";
+        break;
+    case 0:
+        gLog << " Unused ";
+        break;
+    default:
+        gLog << "  Used  ";
+        break;
+    }
     gLog << (fIsCore?" Core ":"      ");
     gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
