Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 4641)
+++ trunk/MagicSoft/Mars/Changelog	(revision 4642)
@@ -28,4 +28,20 @@
      - made sure that code which in not needed is not executed in
        this case
+
+   * mbadpixels/MBadPixelsCam.cc:
+     - unrolled if-else statements in GetPixelContent
+
+   * mcalib/MHCalibrationChargeBlindPix.cc:
+     - commented out unsused variable
+
+   * mjobs/MJCalibration.cc:
+     - some more output when writing the file
+
+   * mjobs/MJPedestal.[h,cc]:
+     - added more resources
+     - added fMaxEvents
+
+   * mraw/MRawEvtPixelIter.[h,cc]:
+     - fixed behaviour or fABFlags in case the array is empty
 
 
Index: trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc	(revision 4641)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc	(revision 4642)
@@ -61,5 +61,5 @@
 using namespace std;
 
-MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
+MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat), fABFlags(0)
 {
     fNumHiGainSamples = dat->GetNumHiGainSamples();
@@ -131,5 +131,5 @@
     fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples;
     fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples;
-    fABFlags    = fData->fABFlags->GetArray();
+    fABFlags    = fData->fABFlags->GetSize()==0 ? 0 : fData->fABFlags->GetArray();
 
     //
Index: trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 4641)
+++ trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h	(revision 4642)
@@ -17,6 +17,6 @@
 {
 private:
-    UShort_t fNumHiGainEntry;   //! actual number of entry in fHiGainPixId
-    UShort_t fNumLoGainEntry;   //! actual number of entry in fLoGainPixId
+    UShort_t  fNumHiGainEntry;  //! actual number of entry in fHiGainPixId
+    UShort_t  fNumLoGainEntry;  //! actual number of entry in fLoGainPixId
 
     UShort_t *fHiGainId;        //! actual entry of fHiGainPixId
@@ -26,7 +26,7 @@
     Byte_t   *fLoGainPos;       //! pointer to lo-gain samples of actual pixel
 
-    Char_t   *fABFlags;         //! pointer to AB flags
+    Byte_t   *fABFlags;         //! pointer to AB flags
 
-    UShort_t fNumEntry;
+    UShort_t  fNumEntry;
 
     Byte_t fNumHiGainSamples;   //!
@@ -77,6 +77,6 @@
     }
 
-    Byte_t  GetNumHiGainSamples() const    { return fNumHiGainSamples ; }
-    Byte_t  GetNumLoGainSamples() const    { return fNumLoGainSamples ; }
+    Byte_t  GetNumHiGainSamples() const { return fNumHiGainSamples ; }
+    Byte_t  GetNumLoGainSamples() const { return fNumLoGainSamples ; }
 
     ULong_t GetSumHiGainSamples() const;
@@ -102,5 +102,5 @@
         // return kTRUE  the lo gains exist for the actual pixel, else return kFALSE
         //
-        return TESTBIT(fABFlags[GetPixelId()/8], GetPixelId()%8);
+        return fABFlags ? TESTBIT(fABFlags[GetPixelId()/8], GetPixelId()%8) : 0;
     }
     Byte_t GetABFlag() const
@@ -109,5 +109,5 @@
         // return kTRUE  the lo gains exist for the actual pixel, else return kFALSE
         //
-        return (Byte_t)fABFlags[GetPixelId()/8];
+        return fABFlags ? fABFlags[GetPixelId()/8] : 0;
     }
 
