Ignore:
Timestamp:
10/12/04 14:43:18 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5099 r5248  
    1919//=
    2020//= $RCSfile: srreadparam.cxx,v $
    21 //= $Revision: 1.5 $
     21//= $Revision: 1.6 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-09-17 13:51:02 $
     23//= $Date: 2004-10-12 13:41:09 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    7575static float Simulated_Phe_p = 0.1;          //@< precision for phe loop
    7676static int   FADC_Shape=0;
    77 static float FADC_Integ=MFADC_RESPONSE_INTEGRAL;
    78 static float FADC_FWHM=MFADC_RESPONSE_FWHM;
    79 static int   Trig_Shape=0;
    80 static float Trig_Ampl=1.0;
    81 static float Trig_FWHM=2.0;
    82 static int   Write_Root=0;
     77static float FADC_Integ = MFADC_RESPONSE_INTEGRAL;
     78static float FADC_FWHM = MFADC_RESPONSE_FWHM;
     79static float FADC_slices_per_ns = FADC_SLICES_PER_NSEC;
     80static int   Trig_Shape = 0;
     81static float Trig_Ampl = 1.0;
     82static float Trig_FWHM = 2.0;
     83static int   Write_Root = 0;
    8384//!@}
    8485
     
    169170      break;
    170171
     172    case fadc_GHz:  //  Get FADC sampling frequency in GHz
     173
     174      sscanf(line, "%s %f", token, &FADC_slices_per_ns);
     175
     176      break;
     177
    171178    case write_root:          //@< Write histogram
    172179
     
    273280//!@{
    274281void
    275 get_fadc_properties(int *shape, float *integ, float *fwhm)
     282get_fadc_properties(int *shape, float *integ, float *fwhm, float *fadc_spns)
    276283{
    277284  *shape =  FADC_Shape;
    278285  *integ =  FADC_Integ;
    279   *fwhm =  FADC_FWHM;
     286  *fwhm  =  FADC_FWHM;
     287  *fadc_spns = FADC_slices_per_ns;
    280288}
    281289//!@}
     
    306314//
    307315// $Log: not supported by cvs2svn $
     316// Revision 1.5  2004/09/17 13:51:02  moralejo
     317//
     318// Adapted headers to current c++ style, removed -Wno-deprecated from
     319// compilation options.
     320//
    308321// Revision 1.4  2004/09/16 16:20:13  moralejo
    309322// *** empty log message ***
Note: See TracChangeset for help on using the changeset viewer.