Index: trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.cxx	(revision 5396)
+++ trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.cxx	(revision 5406)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: srreadparam.cxx,v $
-//= $Revision: 1.6 $
+//= $Revision: 1.7 $
 //= $Author: moralejo $ 
-//= $Date: 2004-10-12 13:41:09 $
+//= $Date: 2004-11-16 11:09:11 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -82,4 +82,6 @@
 static float Trig_FWHM = 2.0;
 static int   Write_Root = 0;
+static int   gain_fluctuations = 1; // Is 0 if PMT gain fluctuations are disabled
+
 //!@}
 
@@ -176,4 +178,10 @@
       break;
 
+    case gain_fluctuations_off:
+
+      gain_fluctuations = 0;  // Disable PMT gain fluctuations
+
+      break;
+
     case write_root:          //@< Write histogram
 
@@ -289,4 +297,13 @@
 //!@}
 
+//------------------------------------------------------------
+// Returns gain_fluctuations, which is 0 if the PMT gain fluctuations 
+// have been disabled in the input card.
+//
+int apply_gain_fluctuations()
+{
+  return gain_fluctuations;
+}
+
 //!-----------------------------------------------------------
 // @name get_write_root
@@ -314,4 +331,7 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.6  2004/10/12 13:41:09  moralejo
+// *** empty log message ***
+//
 // Revision 1.5  2004/09/17 13:51:02  moralejo
 //
