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

Legend:

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

    r5245 r5269  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.30 $
     21//= $Revision: 1.31 $
    2222//= $Author: moralejo $
    23 //= $Date: 2004-10-12 13:32:02 $
     23//= $Date: 2004-10-13 17:05:05 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    110110static float m_fraction[MAX_NUMBER_OF_CTS];
    111111
     112static int   CalibrationRun = 0;  // > 0 if a calibration run has been chosen
     113static float lambda = 0.;         // Mean wavelength for photons of calibration pulses.
     114static float sigma_lambda = 0.;   // Sigma of wavelength distribution for calibration.
     115static float phot_per_pix = 0.;   // Average number of photons per inner pixel for calibration.
     116static float sigma_time = 0.;     // Time spread (sigma of gaussian) of calibration photons.
     117static int   nevents = 0;         // Number of events in calibration run.
     118static int   selected_pixel = -1; // Selected pixel: if >= 0 ==> only this pixel is filled!
     119
     120
    112121// Coordinates of CT locations, in centimeters, in the Corsika system.
    113122
     
    599608    case mirror_fraction:
    600609
    601         sscanf(line, "%s %d %f", token, &j, &aux);
    602         m_fraction[j] = aux;
     610      sscanf(line, "%s %d %f", token, &j, &aux);
     611      m_fraction[j] = aux;
    603612       
    604         break;
     613      break;
     614
     615    case calibration_run:
     616
     617      sscanf(line, "%s %f %f %f %f %i %i", token, &lambda, &sigma_lambda, &phot_per_pix,
     618             &sigma_time, &nevents, &selected_pixel);
     619     
     620      CalibrationRun = 1;
     621     
     622      break;
    605623
    606624    case end_file:            //@< end of the parameters file
     
    13671385}
    13681386
     1387int is_calibration_run(){
     1388  return CalibrationRun;
     1389}
     1390
     1391void  get_calibration_properties(float *a, float *b, float *c, float *d, int *e, int *f)
     1392{
     1393  *a = lambda;
     1394  *b = sigma_lambda;
     1395  *c = phot_per_pix;
     1396  *d = sigma_time;
     1397  *e = nevents;
     1398  *f = selected_pixel;
     1399}
     1400
     1401
    13691402//=------------------------------------------------------------
    13701403//!@subsection Log of this file.
     
    13731406//
    13741407// $Log: not supported by cvs2svn $
     1408// Revision 1.30  2004/10/12 13:32:02  moralejo
     1409// *** empty log message ***
     1410//
    13751411// Revision 1.29  2004/09/17 14:48:21  moralejo
    13761412//
Note: See TracChangeset for help on using the changeset viewer.