Index: trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h	(revision 2731)
+++ trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h	(revision 2732)
@@ -74,5 +74,4 @@
 #pragma link C++ class MCalibrationCam+;
 #pragma link C++ class MCalibrationCalc+;
-#pragma link C++ class MPedestalWorkaround+;
 
 #pragma link C++ class MExtractedSignalCam+;
Index: trunk/MagicSoft/Mars/manalysis/MExtractSignal.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MExtractSignal.h	(revision 2731)
+++ trunk/MagicSoft/Mars/manalysis/MExtractSignal.h	(revision 2732)
@@ -45,15 +45,14 @@
   Int_t  PreProcess(MParList *pList);
   Int_t  Process();
-  Int_t  PostProcess();
   
 public:
+  MExtractSignal(/*const Byte_t first=4, const Byte_t last=9,
+                 const Byte_t logainshift=1,*/
+                 const char *name=NULL, const char *title=NULL);
 
-  MExtractSignal(const Byte_t first=4, const Byte_t last=9,
-                 const Byte_t logainshift=1,
-                 const char *name=NULL, const char *title=NULL);
-  
+  void SetRange(Byte_t first=4, Byte_t last=9, Byte_t logainshift=1);
   void SetSaturationLimit(Byte_t lim)      { fSaturationLimit = lim; }
 
-  ClassDef(MExtractSignal, 0)   // Task to fill the Extracted Signal Containers from raw data
+  ClassDef(MExtractSignal, 0) // Task to fill the Extracted Signal Containers from raw data
 };
 
Index: trunk/MagicSoft/Mars/manalysis/MPedestalWorkaround.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MPedestalWorkaround.cc	(revision 2731)
+++ 	(revision )
@@ -1,114 +1,0 @@
-/* ======================================================================== *\
-!
-! *
-! * This file is part of MARS, the MAGIC Analysis and Reconstruction
-! * Software. It is distributed to you in the hope that it can be a useful
-! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
-! * It is distributed WITHOUT ANY WARRANTY.
-! *
-! * Permission to use, copy, modify and distribute this software and its
-! * documentation for any purpose is hereby granted without fee,
-! * provided that the above copyright notice appear in all copies and
-! * that both that copyright notice and this permission notice appear
-! * in supporting documentation. It is provided "as is" without express
-! * or implied warranty.
-! *
-!
-!
-!   Author(s): Sabrina Stark  12/2003 <mailto:lstark@particle.phys.ethz.ch>
-!
-!   Copyright: MAGIC Software Development, 2000-2003
-!
-!
-\* ======================================================================== */
-
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MPedestalWorkaround                                                     //
-//                                                                         //
-// This class contains the function to store the pedestal value and the    //
-//  RMS of the pedestal in units of photons.                               //  
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
-#include "MPedestalWorkaround.h"
-
-#include <stdio.h>
-#include "MLog.h"
-#include "MLogManip.h"
-#include "MParList.h"
-#include "MGeomCam.h"
-
-#include "MPedestalCam.h"
-#include "MPedestalPix.h"
-#include "MPedPhotCam.h"
-
-using namespace std;
-
-ClassImp(MPedestalWorkaround);
-
-MPedestalWorkaround::MPedestalWorkaround(const char *name, const char *title)
-{
-    fName = name ? name : "MPedestalWorkaround";
-    fTitle = title ? title : "Storage of pedestal values and RMS in units of photons";
-   
-}
-
-// ------------------------------------------------------------------------
-//
-
-Int_t MPedestalWorkaround::PreProcess(MParList *pList)
-{
-   fPed = (MPedestalCam*)pList->FindObject("MPedestalCam");
-   if (!fPed)
-     {
-       *fLog << err << "MPedestalCam not found... aborting." << endl;
-       return kFALSE;
-     }
-   fPedPhot = (MPedPhotCam*)pList->FindObject("MPedPhotCam");
-   if (!fPedPhot)
-     {
-       *fLog << err << "MPedPhotCam not found... aborting." << endl;
-       return kFALSE;
-     }
-   fCam = (MGeomCam*)pList->FindObject("MGeomCam");
-   if (!fCam)
-     {
-       *fLog << err << "MGeomCam not found (no geometry information available)... aborting." << endl;
-       return kFALSE;
-     }
-
-    return kTRUE;
-}
-
-// ------------------------------------------------------------------------
-//
-Int_t MPedestalWorkaround::Process()
-{
-   
- UInt_t imaxnumpix = fCam->GetNumPixels();
-
-  for (UInt_t i=0; i<imaxnumpix; i++)
-  {
-    Int_t type = 0;
-    Double_t val;
-    Float_t valout;
-    fPedPhot->GetPixelContent( val, i, *fCam, type);
-    valout = (*fPed)[i].GetPedestal();
-    (*fPed)[i].SetPedestal(val);
-    *fLog << "i, val, valout : " << i <<",  "<<  val<<",  " << valout << endl;
-    type = 1;
-    fPedPhot->GetPixelContent( val, i, *fCam, type);
-    valout = (*fPed)[i].GetPedestalRms();
-    (*fPed)[i].SetPedestalRms(val);
-    *fLog << "RMS : i, val, valout : " << i <<",  "<<  val<<",  " << valout << endl;
-  }
-
-
-    return kTRUE;
-}
-
-Int_t MPedestalWorkaround::PostProcess()
-{
-    return kTRUE;
-}
-
Index: trunk/MagicSoft/Mars/manalysis/MPedestalWorkaround.h
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MPedestalWorkaround.h	(revision 2731)
+++ 	(revision )
@@ -1,44 +1,0 @@
-#ifndef MARS_MPedestalWorkaround
-#define MARS_MPedestalWorkaround
-
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MPedestalWorkaround                                                     //
-//                                                                         //
-// Temporary copy of pedestal values and RMS into MPedestalCam from        //
-// MPedPhotCam in order to have the pedestal RMS in units of number of     // 
-// photons                                                                  //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
-#ifndef MARS_MTask
-#include "MTask.h"
-#endif
-
-class MPedestalCam;
-class MPedPhotCam;
-class MGeomCam;
-class MParList;
-
-
-class MPedestalWorkaround : public MTask 
-{
-private:
-
-    MPedestalCam *fPed;  //
-    MPedPhotCam *fPedPhot; //
-    MGeomCam *fCam;    //
-
-    Int_t PreProcess(MParList *pList);
-    Int_t Process();
-    Int_t PostProcess();
-
-public:
-    MPedestalWorkaround(const char *name=NULL, const char *title=NULL);
-
-    ClassDef(MPedestalWorkaround, 0) // Task to copy pedestal RMS
-};
-
-#endif
-
-
-
Index: trunk/MagicSoft/Mars/manalysis/Makefile
===================================================================
--- trunk/MagicSoft/Mars/manalysis/Makefile	(revision 2731)
+++ trunk/MagicSoft/Mars/manalysis/Makefile	(revision 2732)
@@ -81,5 +81,4 @@
            MCalibrationPINDiode.cc  \
            MCalibrationCam.cc \
-           MPedestalWorkaround.cc \
            MExtractedSignalCam.cc \
            MExtractedSignalPix.cc \
Index: trunk/MagicSoft/Mars/mtools/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mtools/Makefile	(revision 2731)
+++ trunk/MagicSoft/Mars/mtools/Makefile	(revision 2732)
@@ -31,5 +31,4 @@
 SRCFILES = MChisqEval.cc \
 	   MTFillMatrix.cc \
-           MTMinuit.cc \
 	   MagicReversi.cc \
 	   MagicSnake.cc \
