Index: trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 688)
+++ trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 691)
@@ -21,7 +21,7 @@
 //
 // $RCSfile: camera.cxx,v $
-// $Revision: 1.19 $
+// $Revision: 1.20 $
 // $Author: magicsol $ 
-// $Date: 2001-03-05 11:14:41 $
+// $Date: 2001-03-19 19:30:06 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -442,5 +442,5 @@
                                                     //@< camera triggers
   Float_t fadc_elecnoise[CAMERA_PIXELS];  //@< Electronic niose for each pixel
-  UChar_t fadc_pedestals[CAMERA_PIXELS];  //@< array for fadc pedestals values
+  Float_t fadc_pedestals[CAMERA_PIXELS];  //@< array for fadc pedestals values
 
   float ext[iNUMWAVEBANDS] = { //@< average atmospheric extinction in each waveband
@@ -761,10 +761,22 @@
   MFadc fadc(FADC_response_ampl,FADC_response_fwhm) ; //@< A instance of the Class MFadc
 
+  //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+  //
   // Set the FADC pedestals for that run
-  // The values of pedestal follow a flat distribution. Some modifications
+  //  Some modifications
   // mut be done to simulate a more realistic distribution of the pedestals.
   // This simualtion is done int the SetPedestals methode inside the 
   // class MFadc
-  fadc.SetPedestals(50);
+  // Currentlly a input_pedestal array is declared with the pedestals.
+  // Thy can also be set randomly following a flat distribution.
+  //
+  /////////////////////////////////////////////////////////////////////
+
+  Float_t input_pedestals[CAMERA_PIXELS];
+
+  for(i=0;i<CAMERA_PIXELS;i++)
+    input_pedestals[i]=10.5;
+  
+  fadc.SetPedestals(input_pedestals);
 
   // Prepare the raw data output
@@ -3215,4 +3227,7 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.19  2001/03/05 11:14:41  magicsol
+// I changed the position of readinf a parameter. It is a minnor change.
+//
 // Revision 1.18  2001/03/05 10:36:52  blanch
 // A branch with information about the FADC simulation (MMcFadcHeader) is writen
@@ -3251,4 +3266,7 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.19  2001/03/05 11:14:41  magicsol
+// I changed the position of readinf a parameter. It is a minnor change.
+//
 // Revision 1.18  2001/03/05 10:36:52  blanch
 // A branch with information about the FADC simulation (MMcFadcHeader) is writen
