- Timestamp:
- 10/13/04 18:05:05 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r5245 r5269 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1.3 0$21 //= $Revision: 1.31 $ 22 22 //= $Author: moralejo $ 23 //= $Date: 2004-10-1 2 13:32:02$23 //= $Date: 2004-10-13 17:05:05 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 110 110 static float m_fraction[MAX_NUMBER_OF_CTS]; 111 111 112 static int CalibrationRun = 0; // > 0 if a calibration run has been chosen 113 static float lambda = 0.; // Mean wavelength for photons of calibration pulses. 114 static float sigma_lambda = 0.; // Sigma of wavelength distribution for calibration. 115 static float phot_per_pix = 0.; // Average number of photons per inner pixel for calibration. 116 static float sigma_time = 0.; // Time spread (sigma of gaussian) of calibration photons. 117 static int nevents = 0; // Number of events in calibration run. 118 static int selected_pixel = -1; // Selected pixel: if >= 0 ==> only this pixel is filled! 119 120 112 121 // Coordinates of CT locations, in centimeters, in the Corsika system. 113 122 … … 599 608 case mirror_fraction: 600 609 601 602 610 sscanf(line, "%s %d %f", token, &j, &aux); 611 m_fraction[j] = aux; 603 612 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; 605 623 606 624 case end_file: //@< end of the parameters file … … 1367 1385 } 1368 1386 1387 int is_calibration_run(){ 1388 return CalibrationRun; 1389 } 1390 1391 void 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 1369 1402 //=------------------------------------------------------------ 1370 1403 //!@subsection Log of this file. … … 1373 1406 // 1374 1407 // $Log: not supported by cvs2svn $ 1408 // Revision 1.30 2004/10/12 13:32:02 moralejo 1409 // *** empty log message *** 1410 // 1375 1411 // Revision 1.29 2004/09/17 14:48:21 moralejo 1376 1412 //
Note:
See TracChangeset
for help on using the changeset viewer.