Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7863)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7864)
@@ -18,4 +18,17 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2006/08/08 Thomas Bretz
+
+   * mbadpixels/MBadPixelsCam.cc:
+     - added some comments
+
+   * mhist/MHEvent.cc: 
+     - replaced GetTheta() by GetTelescopeTheta()
+
+   * msignal/MExtractedSignalCam.cc:
+     - some update to returning the hi-/lo-gain ratio
+
+
+
  2006/08/08 Daniela Dorner
 
Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc	(revision 7863)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc	(revision 7864)
@@ -312,12 +312,17 @@
         return 0;
 
+    // Check whether more than one neighbor contains useful information,
+    // which mean it can later be interpolated
     if (GetNumSuitableNeighbors(type, *pix)>1)
         return 0;
 
+    // If the requested area-index is valid check whether it is the requested one
     if (aidx>=0 && pix->GetAidx()!=aidx)
         return 1;
 
+    // Remove the pixel from the list of pixels to be checked
     list.RemoveAt(idx);
 
+    // Do the same for the neighbor pixels recursively and count the 1-results
     Short_t cnt = 1;
     const Int_t n = pix->GetNumNeighbors();
@@ -325,4 +330,5 @@
         cnt += GetNumMaxCluster(type, list, pix->GetNeighbor(i), aidx);
 
+    // return the number of neighbor pixels/clusters which have unsuitable-type type
     return cnt;
 }
Index: /trunk/MagicSoft/Mars/mhist/MHEvent.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHEvent.cc	(revision 7863)
+++ /trunk/MagicSoft/Mars/mhist/MHEvent.cc	(revision 7864)
@@ -295,5 +295,5 @@
         s += (int)(fMcEvt->GetImpact()/100+.5);
         s += "m Zd=";
-        s += (int)(fMcEvt->GetTheta()*180/TMath::Pi()+.5);
+        s += 0.1*TMath::Nint(fMcEvt->GetTelescopeTheta()*180/TMath::Pi()*10);
         s += "\\circ ";
         if (fMcEvt->GetPhotElfromShower()>=10000)
Index: /trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.cc
===================================================================
--- /trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.cc	(revision 7863)
+++ /trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.cc	(revision 7864)
@@ -183,6 +183,12 @@
             return kFALSE;
 
+        if (pix.GetExtractedSignalLoGain()<=0 || pix.GetExtractedSignalHiGain()<=0)
+            return kFALSE;
+
+        //val = log10(pix.GetExtractedSignalHiGain())-log10(pix.GetExtractedSignalLoGain());
+        //return TMath::Abs(val-1)<0.4;
         val = pix.GetExtractedSignalHiGain()/pix.GetExtractedSignalLoGain();
-        return pix.GetExtractedSignalLoGain()>2 && val<25;
+        //return val>4 && val<30;
+        return val>4 && val<35;
 
     default:
