Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 649)
+++ trunk/MagicSoft/Mars/Changelog	(revision 650)
@@ -1,4 +1,9 @@
                                                                   -*-*- END -*-*-
 
+ 2000/02/23: Thomas Bretz
+
+ * mraw/MRawEvtPixelIter.h: added GetSum* functions
+   
+   
  2000/02/22: Thomas Bretz
 
Index: trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 649)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 650)
@@ -55,4 +55,20 @@
     }
 
+    ULong_t GetSumHiGainFadcSamples() const
+    {
+        //
+        // return the sum of the hi gain samples of the present pixel
+        //
+              Byte_t *ptr = fHiGainPos;
+        const Byte_t *end = ptr + fData->GetNumHiGainSamples();
+
+        ULong_t sum=0;
+
+        do sum += *ptr++;
+        while (ptr != end);
+
+        return sum;
+    }
+
     Bool_t IsLoGain() const
     {
@@ -72,4 +88,23 @@
     }
 
+    ULong_t GetSumLoGainFadcSamples() const
+    {
+        //
+        // return the sum of the lo gain samples of the present pixel
+        //
+        if (!IsLoGain())
+            return 0;
+
+              Byte_t *ptr = fLoGainPos;
+        const Byte_t *end = ptr + fData->GetNumLoGainSamples();
+
+        ULong_t sum=0;
+
+        do sum += *ptr++;
+        while (ptr != end);
+
+        return sum;
+    }
+
     void Reset();
 
