Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 650)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 651)
@@ -4,4 +4,6 @@
 
  * mraw/MRawEvtPixelIter.h: added GetSum* functions
+
+ * mbase/MParList.[h,cc]: Removed unnecessary fNext-stuff
    
    
Index: /trunk/MagicSoft/Mars/mbase/MParList.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 650)
+++ /trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 651)
@@ -23,5 +23,5 @@
 ClassImp(MParList)
 
-MParList::MParList() : fNext(NULL)
+MParList::MParList()
 {
   //
@@ -102,5 +102,5 @@
 }
 
-TObject *MParList::FindObject(const char *name) const
+MParContainer *MParList::FindObject(const char *name) const
 {
     //
@@ -108,5 +108,5 @@
     //  'name' is the name of the object you are searching for.
     //
-    return (TObject*)fContainer.FindObject(name);
+    return (MParContainer*)fContainer.FindObject(name);
 }
 
Index: /trunk/MagicSoft/Mars/mbase/MParList.h
===================================================================
--- /trunk/MagicSoft/Mars/mbase/MParList.h	(revision 650)
+++ /trunk/MagicSoft/Mars/mbase/MParList.h	(revision 651)
@@ -26,5 +26,4 @@
 {
 private:
-    TIter *fNext;               //!
     TOrdCollection fContainer;	// Collection of Parameter and Data Containers
 
@@ -35,6 +34,4 @@
     ~MParList()
     {
-        if (fNext)
-            delete fNext;
     }
 
@@ -43,15 +40,5 @@
     void SetLogStream(MLog *log);
 
-    TObject *FindObject(const char *name) const;
-
-    void Reset()
-    {
-        fNext = new TIter(&fContainer);
-    }
-
-    MParContainer *Next()
-    {
-        return (MParContainer*)(*fNext)();
-    }
+    MParContainer *FindObject(const char *name) const;
 
     void Print(Option_t *t = NULL);
Index: /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
===================================================================
--- /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc	(revision 650)
+++ /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc	(revision 651)
@@ -97,7 +97,37 @@
 }
 
+ULong_t MRawEvtPixelIter::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;
+}
 
+ULong_t MRawEvtPixelIter::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;
+}
+
Index: /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
===================================================================
--- /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 650)
+++ /trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 651)
@@ -55,19 +55,5 @@
     }
 
-    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;
-    }
+    ULong_t GetSumHiGainFadcSamples() const;
 
     Bool_t IsLoGain() const
@@ -88,22 +74,5 @@
     }
 
-    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;
-    }
+    ULong_t GetSumLoGainFadcSamples() const;
 
     void Reset();
