Index: trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx	(revision 2339)
+++ trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx	(revision 2340)
@@ -48,4 +48,5 @@
 class MFadc {
  private:
+  Int_t numpix;
   //
   //    then for all pixels the shape of all the analog signals 
@@ -55,5 +56,5 @@
 
   Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
-  Float_t noise[CAMERA_PIXELS*(Int_t) SLICES_MFADC*101];
+  Float_t noise[(Int_t) SLICES_MFADC*1001];
 
   UChar_t  output[CAMERA_PIXELS][FADC_SLICES];  //  the analog signal for pixels that is read after a trigger occurs (high gain).
@@ -83,5 +84,6 @@
 public:
 
-  MFadc(Float_t ampl=MFADC_RESPONSE_AMPLITUDE, 
+  MFadc(Int_t pix=577,
+	Float_t ampl=MFADC_RESPONSE_AMPLITUDE, 
 	Float_t fwhm=MFADC_RESPONSE_FWHM,
 	Float_t amplout=MFADC_RESPONSE_AMPLITUDE, 
@@ -102,5 +104,5 @@
   void SetPedestals( Int_t ped);
 
-  void SetPedestals( Float_t ped[CAMERA_PIXELS]);
+  void SetPedestals( Float_t *ped);
 
   void SetFwhm( Float_t fwhm){
