Last change
on this file since 9391 was 5110, checked in by moralejo, 20 years ago |
Commited to CVS all changes to adapt headers to current C++ syntaxis
|
File size:
1002 bytes
|
Line | |
---|
1 | #ifndef _PARAMETERS_H_
|
---|
2 | #define _PARAMETERS_H_
|
---|
3 |
|
---|
4 | #include <iostream>
|
---|
5 | #include <fstream>
|
---|
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 | using namespace std;
|
---|
17 |
|
---|
18 | class parameters {
|
---|
19 |
|
---|
20 | public:
|
---|
21 |
|
---|
22 | float ct_ra_h, ct_dec_deg, ct_ra_rad, ct_dec_rad;
|
---|
23 | float catalog_fov_deg; // Radius of the catalog section to be read in
|
---|
24 | float integtime_s; // integration time for the calculation of the number of photons
|
---|
25 | float mirr_radius_m; // mirror radius inside which photons are generated
|
---|
26 | char datapath[160]; // path inside which the catalog and extinction files are found
|
---|
27 | char output_file[160];
|
---|
28 | int verbose; // verbose flag for switching on/off diagnostic output
|
---|
29 |
|
---|
30 | parameters(); // constructor (put invalid values)
|
---|
31 | int readparameters(ifstream *in); // read the parameter file
|
---|
32 | void usage(ostream *out); // write a sample parameter file to the stream
|
---|
33 | int printparameters(ostream *out); // write the parameters to the stream
|
---|
34 |
|
---|
35 | };
|
---|
36 |
|
---|
37 | #endif
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.