Changeset 5317 for trunk/MagicSoft


Ignore:
Timestamp:
10/26/04 14:58:59 (20 years ago)
Author:
moralejo
Message:
Added option gain_fluctuations_off
Location:
trunk/MagicSoft/Simulation/Detector/Camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx

    r5274 r5317  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.32 $
     21//= $Revision: 1.33 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-10-14 16:53:49 $
     23//= $Date: 2004-10-26 13:58:59 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    118118static int   selected_pixel = -1; // Selected pixel: if >= 0 ==> only this pixel is filled!
    119119
     120static int   gain_fluctuations = 1; // Is 0 if PMT gain fluctuations are disabled
    120121
    121122// Coordinates of CT locations, in centimeters, in the Corsika system.
     
    622623      break;
    623624
     625    case gain_fluctuations_off:
     626
     627      gain_fluctuations = 0;
     628
     629      break;
     630
    624631    case end_file:            //@< end of the parameters file
    625632
     
    13991406}
    14001407
     1408int apply_gain_fluctuations()
     1409{
     1410  return gain_fluctuations;
     1411}
     1412 
    14011413
    14021414//=------------------------------------------------------------
     
    14061418//
    14071419// $Log: not supported by cvs2svn $
     1420// Revision 1.32  2004/10/14 16:53:49  moralejo
     1421//
     1422// Added option calibration_run
     1423//
    14081424// Revision 1.31  2004/10/13 17:05:05  moralejo
    14091425// *** empty log message ***
  • trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h

    r5269 r5317  
    1919//=
    2020//= $RCSfile: creadparam.h,v $
    21 //= $Revision: 1.28 $
     21//= $Revision: 1.29 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-10-13 17:05:05 $
     23//= $Date: 2004-10-26 13:58:59 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    116116T(mirror_fraction), /* Fraction of dish mirror really operative */ \
    117117T(calibration_run), /* option to produce a calibration file */ \
     118T(gain_fluctuations_off), /* Switches off PMT gain fluctuations */ \
    118119T(end_file)         /* end of the parameters file */
    119120
     
    195196void  get_calibration_properties(float *lambda, float *sigma_lambda, float *phot_per_pix,
    196197                                 float *sigma_time, int *nevents, int *selected_pixel);
     198int   apply_gain_fluctuations();
    197199//!@}
    198200
     
    210212/*
    211213 * $Log: not supported by cvs2svn $
     214 * Revision 1.28  2004/10/13 17:05:05  moralejo
     215 * *** empty log message ***
     216 *
    212217 * Revision 1.27  2004/10/12 13:32:02  moralejo
    213218 * *** empty log message ***
Note: See TracChangeset for help on using the changeset viewer.