source: trunk/MagicSoft/Simulation/Detector/Starfield/parameters.h@ 4747

Last change on this file since 4747 was 431, checked in by harald, 24 years ago
Oscar changed the code just to run it on alpha machines. I just commit the changes due to problems with the repository.
File size: 985 bytes
Line 
1#ifndef _PARAMETERS_H_
2#define _PARAMETERS_H_
3
4#include <iostream.h>
5#include <fstream.h>
6#include <stdio.h>
7
8#ifndef PI
9#define PI 3.1415927
10#endif
11
12#ifndef PRINTWIDTH
13#define PRINTWIDTH 12
14#endif
15
16
17class parameters {
18
19 public:
20
21 float ct_ra_h, ct_dec_deg, ct_ra_rad, ct_dec_rad;
22 float catalog_fov_deg; // Radius of the catalog section to be read in
23 float integtime_s; // integration time for the calculation of the number of photons
24 float mirr_radius_m; // mirror radius inside which photons are generated
25 char datapath[160]; // path inside which the catalog and extinction files are found
26 char output_file[160];
27 int verbose; // verbose flag for switching on/off diagnostic output
28
29 parameters(); // constructor (put invalid values)
30 int readparameters(ifstream *in); // read the parameter file
31 void usage(ostream *out); // write a sample parameter file to the stream
32 int printparameters(ostream *out); // write the parameters to the stream
33
34};
35
36#endif
37
38
39
40
41
Note: See TracBrowser for help on using the repository browser.