Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 5306)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 5317)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.cxx,v $
-//= $Revision: 1.32 $
+//= $Revision: 1.33 $
 //= $Author: moralejo $ 
-//= $Date: 2004-10-14 16:53:49 $
+//= $Date: 2004-10-26 13:58:59 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -118,4 +118,5 @@
 static int   selected_pixel = -1; // Selected pixel: if >= 0 ==> only this pixel is filled! 
 
+static int   gain_fluctuations = 1; // Is 0 if PMT gain fluctuations are disabled
 
 // Coordinates of CT locations, in centimeters, in the Corsika system.
@@ -622,4 +623,10 @@
       break;
 
+    case gain_fluctuations_off:
+
+      gain_fluctuations = 0;
+
+      break;
+
     case end_file:            //@< end of the parameters file
 
@@ -1399,4 +1406,9 @@
 }
 
+int apply_gain_fluctuations()
+{
+  return gain_fluctuations;
+}
+  
 
 //=------------------------------------------------------------
@@ -1406,4 +1418,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.32  2004/10/14 16:53:49  moralejo
+//
+// Added option calibration_run
+//
 // Revision 1.31  2004/10/13 17:05:05  moralejo
 // *** empty log message ***
Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 5306)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 5317)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.h,v $
-//= $Revision: 1.28 $
+//= $Revision: 1.29 $
 //= $Author: moralejo $ 
-//= $Date: 2004-10-13 17:05:05 $
+//= $Date: 2004-10-26 13:58:59 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -116,4 +116,5 @@
 T(mirror_fraction), /* Fraction of dish mirror really operative */ \
 T(calibration_run), /* option to produce a calibration file */ \
+T(gain_fluctuations_off), /* Switches off PMT gain fluctuations */ \
 T(end_file)         /* end of the parameters file */
 
@@ -195,4 +196,5 @@
 void  get_calibration_properties(float *lambda, float *sigma_lambda, float *phot_per_pix,
  				 float *sigma_time, int *nevents, int *selected_pixel);
+int   apply_gain_fluctuations();
 //!@}
 
@@ -210,4 +212,7 @@
 /*
  * $Log: not supported by cvs2svn $
+ * Revision 1.28  2004/10/13 17:05:05  moralejo
+ * *** empty log message ***
+ *
  * Revision 1.27  2004/10/12 13:32:02  moralejo
  * *** empty log message ***
