Changeset 5245 for trunk/MagicSoft/Simulation
- Timestamp:
- 10/12/04 14:32:02 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/Camera
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r5103 r5245 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1. 29$21 //= $Revision: 1.30 $ 22 22 //= $Author: moralejo $ 23 //= $Date: 2004- 09-17 14:48:21$23 //= $Date: 2004-10-12 13:32:02 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 49 49 static float FADC_Noise_inner = 2.0; //@< Value for FADC ElecNoise 50 50 static float FADC_Noise_outer = 2.0; //@< Value for FADC ElecNoise 51 static float Digital_Noise = 1.0; //@< Value for FADC digital Noise51 static float Digital_Noise = 0.0; //@< Value for FADC digital Noise 52 52 static float Trig_Noise = 0.3; //@< Factor for Trigger ElecNoise 53 53 static int simulateNSB = TRUE; //@< Will we simulate NSB? … … 90 90 static float FADC_response_ampl = MFADC_RESPONSE_INTEGRAL; 91 91 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM; 92 static int FADC_shape_out = 0;92 static int FADC_shape_out = 0; 93 93 static float FADC_resp_ampl_out = MFADC_RESPONSE_INTEGRAL; 94 94 static float FADC_resp_fwhm_out = MFADC_RESPONSE_FWHM; 95 static float FADC_slices_per_ns = FADC_SLICES_PER_NSEC; 96 static int FADC_slices_written = FADC_SLICES; 95 97 static float High_to_Low = 10.0; //@< Low gain channel respct to High 96 98 … … 184 186 // if it is not a valid line, just ignore it 185 187 if (i == end_file+1) { 186 cerr << " Skipping unknown token in [" << line << "]\n";187 continue;188 cerr << "ERROR: Unknown token in [" << line << "]\n"; 189 exit(-1); 188 190 } 189 191 … … 472 474 break; 473 475 476 case fadc_GHz: 477 478 // Get FADC sampling frequency in GHz (default 0.3) 479 sscanf(line, "%s %f %i", token, &FADC_slices_per_ns, &FADC_slices_written); 480 481 break; 482 474 483 case trigger_scan: 475 484 … … 1203 1212 void 1204 1213 get_FADC_properties(int *shape,float *ra, float *rf, 1205 int *shapeo, float *rao, float *rfo) 1206 { 1207 *shape=FADC_shape; 1208 *ra=FADC_response_ampl; 1209 *rf=FADC_response_fwhm; 1210 *shapeo=FADC_shape_out; 1211 *rao=FADC_resp_ampl_out; 1212 *rfo=FADC_resp_fwhm_out; 1213 1214 int *shapeo, float *rao, float *rfo, 1215 float *fadc_spns, int *fadc_slices) 1216 { 1217 *shape = FADC_shape; 1218 *ra = FADC_response_ampl; 1219 *rf = FADC_response_fwhm; 1220 *shapeo = FADC_shape_out; 1221 *rao = FADC_resp_ampl_out; 1222 *rfo = FADC_resp_fwhm_out; 1223 *fadc_spns = FADC_slices_per_ns; 1224 *fadc_slices = FADC_slices_written; 1214 1225 } 1215 1226 //!@} … … 1282 1293 1283 1294 //!----------------------------------------------------------- 1284 // @name get_FADC_pedesta 1295 // @name get_FADC_pedestal 1285 1296 // 1286 1297 // @desc get the value for the FADC pedestals … … 1362 1373 // 1363 1374 // $Log: not supported by cvs2svn $ 1375 // Revision 1.29 2004/09/17 14:48:21 moralejo 1376 // 1377 // Changes to adapt headers to c++ style. 1378 // 1364 1379 // Revision 1.28 2004/09/16 15:27:08 moralejo 1365 1380 // Updated in CVS after some time (see changes below) -
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h
r5103 r5245 19 19 //= 20 20 //= $RCSfile: creadparam.h,v $ 21 //= $Revision: 1.2 6$21 //= $Revision: 1.27 $ 22 22 //= $Author: moralejo $ 23 //= $Date: 2004- 09-17 14:48:21$23 //= $Date: 2004-10-12 13:32:02 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 103 103 T(fadc_prop), /* values of fadc properties */ \ 104 104 T(fadc_outer), /* values of fadc properties for outer pixels */ \ 105 T(fadc_GHz), /* FADC sampling frequency (GHz) */ \ 105 106 T(trigger_single), /* trigger conditions */ \ 106 107 T(Trigger_Loop_Output_Only_Specialists), /* special steercard */ \ … … 175 176 int get_Trigger_Scan(void); 176 177 void get_Trigger_properties(float *gl, float *ot, float *ra, float *rf); 177 void get_FADC_properties(int *shape, float *ra, float *rf,int *shapeo, float *rao, float *rfo); 178 void get_FADC_properties(int *shape, float *ra, float *rf,int *shapeo, float *rao, float *rfo, 179 float *fadc_spns, int *fadc_slices); 178 180 float get_FADC_pedestal(void); 179 181 int get_Trigger_Loop(float *lt, float *ut, float *st, int *lm, int *um, int *lg, int *ug); … … 203 205 /* 204 206 * $Log: not supported by cvs2svn $ 207 * Revision 1.26 2004/09/17 14:48:21 moralejo 208 * 209 * Changes to adapt headers to c++ style. 210 * 205 211 * Revision 1.25 2004/09/16 15:27:08 moralejo 206 212 * Updated in CVS after some time (see changes below)
Note:
See TracChangeset
for help on using the changeset viewer.