Index: trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx	(revision 691)
+++ trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx	(revision 692)
@@ -78,5 +78,5 @@
   
   for ( i =0 ; i <CAMERA_PIXELS ; i++ ) { 
-    pedestal[i] = 0 ; 
+    pedestal[i] = 0.0 ; 
   }
 
@@ -153,5 +153,5 @@
   
   for ( i =0 ; i <CAMERA_PIXELS ; i++ ) { 
-    pedestal[i] = 0 ; 
+    pedestal[i] = 0.0 ; 
   }
 
@@ -327,9 +327,9 @@
 
   for(i=0;i<CAMERA_PIXELS;i++){
-    pedestal[i]= (UChar_t)(ped* GenElec->Rndm());
-  }
-}
-
-void MFadc::SetPedestals(  UChar_t ped[CAMERA_PIXELS]) { 
+    pedestal[i]= (Float_t)(ped* GenElec->Rndm());
+  }
+}
+
+void MFadc::SetPedestals(  Float_t ped[CAMERA_PIXELS]) { 
   //  It sets pedestal for each pixel from ped array
 
@@ -525,8 +525,8 @@
 }
 
-void MFadc::GetPedestals( UChar_t *offset) {
+void MFadc::GetPedestals( Float_t *offset) {
   // ============================================================
   //
-  //    puts the standard response function into the array resp
+  //    puts the pedestal values into the array offset
   
   for ( Int_t i=0; i< CAMERA_PIXELS; i++ ) {
Index: trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx	(revision 691)
+++ trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx	(revision 692)
@@ -52,5 +52,5 @@
   //
   Bool_t   used[CAMERA_PIXELS] ;  //  a boolean to indicated if the pixels is used in this event
-  UChar_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
+  Float_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
 
   Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
@@ -86,5 +86,5 @@
   void SetPedestals( Int_t ped);
 
-  void SetPedestals( UChar_t ped[CAMERA_PIXELS]);
+  void SetPedestals( Float_t ped[CAMERA_PIXELS]);
 
   void SetFwhm( Float_t fwhm){
@@ -110,5 +110,5 @@
   void GetResponse( Float_t *resp ) ; 
 
-  void GetPedestals( UChar_t *offset);
+  void GetPedestals( Float_t *offset);
 
   void TriggeredFadc(Float_t time);
