Ignore:
Timestamp:
11/13/01 17:05:14 (23 years ago)
Author:
blanch
Message:
New input items int the input card parameter list have been included to fill
the MMcRunHeader.
There has been also some change to remove warnings in the compilation.
File:
1 edited

Legend:

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

    r899 r1068  
    1919//=
    2020//= $RCSfile: creadparam.cxx,v $
    21 //= $Revision: 1.11 $
    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 $
    2424//=
    2525//=//////////////////////////////////////////////////////////////////////
     
    7070static char Input_filename[PATH_MAX_LENGTH];  //@< input filename
    7171static char Starfield_filename[PATH_MAX_LENGTH]; //@< starfield input filename
     72static int Starfield_center[6];               //@< center of the starfield FOV
     73                                              //@< RA(H,M,S) & DEC (D,M,S)
    7274static char Data_filename[PATH_MAX_LENGTH];   //@< data filename
    7375static char ROOT_filename[PATH_MAX_LENGTH];   //@< data filename
     
    121123static float FADC_response_ampl = MFADC_RESPONSE_AMPLITUDE;
    122124static float FADC_response_fwhm = MFADC_RESPONSE_FWHM;
     125static float Telescope_axis_th = 0.;  //<@ Theta of the axis telescope
     126static float Telescope_axis_ph = 90.; //<@ Phi of the axis telescope
     127static float Source_offset_th=0.;     //<@  Displacement in Theta of the
     128                                      //<@ source from the center
     129static float Source_offset_ph=0.;     //<@  Displacement in Phi of the
     130                                      //<@ source from the center
     131static int Corsika_vers=5200;         //<@ Version of Corsika 
     132
    123133//!@}
    124134
     
    213223      break;
    214224
     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     
    215232    case data_file:           //@< name of the data file
    216233         
     
    469486      break;
    470487
     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
    471509    case Trigger_Loop_Output_Only_Specialists:
    472510
     
    536574//!@}
    537575
     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//!@{
     589void 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//!@}
    538599
    539600//!-----------------------------------------------------------
     
    11761237//!@}
    11771238
     1239//!-----------------------------------------------------------
     1240// @name get_teles_axis
     1241//                                               
     1242// @desc give axis of the telescope
     1243//
     1244//------------------------------------------------------------
     1245// @function
     1246
     1247//!@{
     1248void 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//!@{
     1263void 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//!@{
     1278int get_corsika_ver(void){
     1279    return(Corsika_vers);
     1280}
     1281//!@}
     1282
     1283
    11781284//=------------------------------------------------------------
    11791285//!@subsection Log of this file.
     
    11821288//
    11831289// $Log: not supported by cvs2svn $
     1290// Revision 1.11  2001/07/25 11:38:00  magicsol
     1291// Minnor changes
     1292//
    11841293// Revision 1.10  2001/07/19 09:28:30  blanch
    11851294// A new command, which allows to set individual trigger threshod for each pixel,
Note: See TracChangeset for help on using the changeset viewer.