Changeset 2965 for trunk/MagicSoft/Simulation/Detector/Camera
- Timestamp:
- 01/30/04 09:58:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r2428 r2965 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1.2 5$21 //= $Revision: 1.26 $ 22 22 //= $Author: blanch $ 23 //= $Date: 200 3-10-26 19:45:38$23 //= $Date: 2004-01-30 09:58:39 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 122 122 static int Trigger_loop_ltop = 0; 123 123 static int Trigger_loop_utop = 2; 124 static float FADC_response_ampl = MFADC_RESPONSE_ AMPLITUDE;124 static float FADC_response_ampl = MFADC_RESPONSE_INTEGRAL; 125 125 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM; 126 static float FADC_resp_ampl_out = MFADC_RESPONSE_ AMPLITUDE;126 static float FADC_resp_ampl_out = MFADC_RESPONSE_INTEGRAL; 127 127 static float FADC_resp_fwhm_out = MFADC_RESPONSE_FWHM; 128 128 static float High_to_Low = 10.0; //@< Low gain channel respct to High … … 131 131 static float Source_offset_ph=0.; //@< Displacement in Phi of the 132 132 //@< source from the center 133 134 static float sigma_spot = -1.; // Sigma in x and y for additional 135 // gaussian spread of the mirror spot. 136 137 static float trig_delay = 25.; // Delay in ns between beginning of FADC 138 // time window and the trigger instant. 139 133 140 134 141 //!@} … … 288 295 sscanf(line, "%s %f", token, &FADC_pedestal); 289 296 297 // 298 // A. Moralejo: 299 // Require integer mean pedestal. Although it seems a silly 300 // restriction, this saves lots of trouble (due to rounding 301 // happening in the FADC), particularly when running the 302 // simulation with no noise (NSB or electronic): 303 // 304 305 if (fmod(FADC_pedestal, 1.) > 1.e-4) 306 { 307 printf("ERROR : requested average FADC pedestal (%f) is not integer. Please use an integer value.\n", FADC_pedestal); 308 exit(1); 309 } 310 290 311 break; 291 312 … … 301 322 // value for FADC Elec Noise 302 323 sscanf(line, "%s %f %f", token, &FADC_Noise, &Digital_Noise); 324 303 325 ElecNoise = TRUE; 304 326 … … 541 563 break; 542 564 565 case sigma_xy_cm_spot: 566 567 sscanf(line, "%s %f", token, &sigma_spot); 568 break; 569 570 case trigger_delay: 571 572 sscanf(line, "%s %f", token, &trig_delay); 573 break; 574 543 575 case end_file: //@< end of the parameters file 544 576 … … 547 579 548 580 break; 581 549 582 550 583 } // switch ( i ) … … 1267 1300 } 1268 1301 1302 float get_sigma_xy_cm_spot(void){ 1303 1304 return sigma_spot; 1305 1306 } 1307 1308 float get_trig_delay(void){ 1309 1310 return trig_delay; 1311 1312 } 1313 1269 1314 //!@} 1270 1315 //=------------------------------------------------------------ … … 1274 1319 // 1275 1320 // $Log: not supported by cvs2svn $ 1321 // Revision 1.25 2003/10/26 19:45:38 blanch 1322 // The write_all_data input card command has been removed. 1323 // 1276 1324 // Revision 1.24 2003/10/17 19:40:24 blanch 1277 1325 // The gain ratio between the high and low FADC gain is controlled from the
Note:
See TracChangeset
for help on using the changeset viewer.