Ignore:
Timestamp:
11/16/04 11:09:11 (20 years ago)
Author:
moralejo
Message:
 Added input card command gain_fluctuations_off to switch off PMT gain
 fluctuations in the noise generation. This is useful for certain tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.cxx

    r5248 r5406  
    1919//=
    2020//= $RCSfile: srreadparam.cxx,v $
    21 //= $Revision: 1.6 $
     21//= $Revision: 1.7 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-10-12 13:41:09 $
     23//= $Date: 2004-11-16 11:09:11 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    8282static float Trig_FWHM = 2.0;
    8383static int   Write_Root = 0;
     84static int   gain_fluctuations = 1; // Is 0 if PMT gain fluctuations are disabled
     85
    8486//!@}
    8587
     
    176178      break;
    177179
     180    case gain_fluctuations_off:
     181
     182      gain_fluctuations = 0;  // Disable PMT gain fluctuations
     183
     184      break;
     185
    178186    case write_root:          //@< Write histogram
    179187
     
    289297//!@}
    290298
     299//------------------------------------------------------------
     300// Returns gain_fluctuations, which is 0 if the PMT gain fluctuations
     301// have been disabled in the input card.
     302//
     303int apply_gain_fluctuations()
     304{
     305  return gain_fluctuations;
     306}
     307
    291308//!-----------------------------------------------------------
    292309// @name get_write_root
     
    314331//
    315332// $Log: not supported by cvs2svn $
     333// Revision 1.6  2004/10/12 13:41:09  moralejo
     334// *** empty log message ***
     335//
    316336// Revision 1.5  2004/09/17 13:51:02  moralejo
    317337//
Note: See TracChangeset for help on using the changeset viewer.