Changeset 1068 for trunk/MagicSoft
- Timestamp:
- 11/13/01 17:05:14 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r899 r1068 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1.1 1$22 //= $Author: magicsol$23 //= $Date: 2001- 07-25 11:38:00$21 //= $Revision: 1.12 $ 22 //= $Author: blanch $ 23 //= $Date: 2001-11-13 17:05:14 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 70 70 static char Input_filename[PATH_MAX_LENGTH]; //@< input filename 71 71 static char Starfield_filename[PATH_MAX_LENGTH]; //@< starfield input filename 72 static int Starfield_center[6]; //@< center of the starfield FOV 73 //@< RA(H,M,S) & DEC (D,M,S) 72 74 static char Data_filename[PATH_MAX_LENGTH]; //@< data filename 73 75 static char ROOT_filename[PATH_MAX_LENGTH]; //@< data filename … … 121 123 static float FADC_response_ampl = MFADC_RESPONSE_AMPLITUDE; 122 124 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM; 125 static float Telescope_axis_th = 0.; //<@ Theta of the axis telescope 126 static float Telescope_axis_ph = 90.; //<@ Phi of the axis telescope 127 static float Source_offset_th=0.; //<@ Displacement in Theta of the 128 //<@ source from the center 129 static float Source_offset_ph=0.; //<@ Displacement in Phi of the 130 //<@ source from the center 131 static int Corsika_vers=5200; //<@ Version of Corsika 132 123 133 //!@} 124 134 … … 213 223 break; 214 224 225 case starfield_center: //@< name of the output file 226 227 // get the name of the output_file from the line 228 sscanf(line, "%s %i %i %i %i %i %i", token, &Starfield_center[0], &Starfield_center[1], &Starfield_center[2], &Starfield_center[3], &Starfield_center[4], &Starfield_center[5]); 229 230 break; 231 215 232 case data_file: //@< name of the data file 216 233 … … 469 486 break; 470 487 488 case telescope_axis: 489 490 // Get axis of the telescope 491 sscanf(line, "%s %f %f", token, &Telescope_axis_th, &Telescope_axis_ph); 492 493 break; 494 495 case source_offset: 496 497 // Get offset of source 498 sscanf(line, "%s %f %f", token, &Source_offset_th, &Source_offset_ph); 499 500 break; 501 502 case corsika_vers: 503 504 // Get Corsika version 505 sscanf(line, "%s %i", token, &Corsika_vers); 506 507 break; 508 471 509 case Trigger_Loop_Output_Only_Specialists: 472 510 … … 536 574 //!@} 537 575 576 577 //!----------------------------------------------------------- 578 // @name get_starfield_center 579 // 580 // @desc get center of the starfield FOV 581 // 582 // @return Central co-ordinates in RA and DEC for the centre of FOV 583 // 584 // @date Tue Feb 15 16:02:18 CET 2000 585 //------------------------------------------------------------ 586 // @function 587 588 //!@{ 589 void get_starfield_center(int *rh,int *rm,int *rs,int *dd,int *dm,int *ds) 590 { 591 *rh=Starfield_center[0]; 592 *rm=Starfield_center[1]; 593 *rs=Starfield_center[2]; 594 *dd=Starfield_center[3]; 595 *dm=Starfield_center[4]; 596 *ds=Starfield_center[5]; 597 } 598 //!@} 538 599 539 600 //!----------------------------------------------------------- … … 1176 1237 //!@} 1177 1238 1239 //!----------------------------------------------------------- 1240 // @name get_teles_axis 1241 // 1242 // @desc give axis of the telescope 1243 // 1244 //------------------------------------------------------------ 1245 // @function 1246 1247 //!@{ 1248 void get_teles_axis(float *th, float *p){ 1249 *th=Telescope_axis_th; 1250 *p=Telescope_axis_ph; 1251 } 1252 //!@} 1253 1254 //!----------------------------------------------------------- 1255 // @name get_source_off 1256 // 1257 // @desc give the offset of the source to the center of the camera 1258 // 1259 //------------------------------------------------------------ 1260 // @function 1261 1262 //!@{ 1263 void get_source_off(float *th, float *p){ 1264 *th=Source_offset_th; 1265 *p=Source_offset_ph; 1266 } 1267 //!@} 1268 1269 //!----------------------------------------------------------- 1270 // @name get_corsika_vers 1271 // 1272 // @desc give the vrsion of corsika 1273 // 1274 //------------------------------------------------------------ 1275 // @function 1276 1277 //!@{ 1278 int get_corsika_ver(void){ 1279 return(Corsika_vers); 1280 } 1281 //!@} 1282 1283 1178 1284 //=------------------------------------------------------------ 1179 1285 //!@subsection Log of this file. … … 1182 1288 // 1183 1289 // $Log: not supported by cvs2svn $ 1290 // Revision 1.11 2001/07/25 11:38:00 magicsol 1291 // Minnor changes 1292 // 1184 1293 // Revision 1.10 2001/07/19 09:28:30 blanch 1185 1294 // A new command, which allows to set individual trigger threshod for each pixel,
Note:
See TracChangeset
for help on using the changeset viewer.