source: trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.h@ 631

Last change on this file since 631 was 629, checked in by magicsol, 24 years ago
Header file for srreadparam.cxx version 1.1
File size: 2.8 KB
Line 
1//=//////////////////////////////////////////////////////////////////////
2//=
3//= srreadparam
4//=
5//= @file srreadparam.h
6//= @desc Header file
7//= @author O Blanch Bigas
8//= @email blanch@ifae.es
9//= @date Wed Feb 21 17:21:26 CET 2001
10//=
11//=----------------------------------------------------------------------
12//=
13//= Created: Wed Feb 21 17:21:26 CET 2001
14//= Author: O Blanch Bigas
15//= Purpose: Program for star response simulation
16//= Notes: See files README for details
17//=
18//=----------------------------------------------------------------------
19//=
20//= $RCSfile: srreadparam.h,v $
21//= $Revision: 1.1 $
22//= $Author: magicsol $
23//= $Date: 2001-02-23 10:14:13 $
24//=
25//=//////////////////////////////////////////////////////////////////////
26
27// @T \newpage
28
29//!@section Source code of |srreadparam.h|.
30
31/*!@"
32
33 In this section you can find the source code for the file
34 |srreadparam.h|. This file is mainly needed by
35 |srreadparam.cxx|. Here is located the definition of the commands you
36 can use in the parameters file.
37
38 The commands now available for the parameters file are:
39
40 @itemize
41
42 @- |input_file| filename :
43 @enditemize
44
45 @ignoreHTML
46 A parameters file (a small one) looks like this:
47
48 @endignoreHTML
49
50@"*/
51
52//!@{
53
54#ifndef _srreadparam_
55#define _srreadparam_
56
57//!@}
58
59//!@subsection Include files.
60
61//!@{
62
63#include <iostream.h>
64#include <fstream.h>
65#include <stdlib.h>
66#include <stdio.h>
67#include <string.h>
68#include <math.h>
69#include <float.h>
70
71#include "jcmacros.h"
72#include "jcdebug.h"
73
74//!@}
75
76//!@subsection Macro-definitions, and constants.
77
78//!@{
79
80// now we define the list ITEM_LIST of possible items in
81// the parameters file. note that they are functions of
82// T(x). we will change T(x) to be the real item or the
83// string of this item when needed
84
85#define ITEM_LIST /* LIST OF ITEMS IN THE PARAMETERS FILE */ \
86T(database_path), /* path to store the database */ \
87T(simulated_phe), /* starfield file */ \
88T(end_file) /* end of the parameters file */
89
90#define T(x) x // define T() as the name as it is
91
92enum ITEM_TYPE {
93 ITEM_LIST
94};
95
96#undef T
97
98#define T(x) #x // define T() as the string of x
99
100const char *const ITEM_NAMES[] = {
101 ITEM_LIST
102};
103
104#undef T
105
106#define LINE_MAX_LENGTH 400
107#define ITEM_MAX_LENGTH 40
108#define PATH_MAX_LENGTH 120
109
110//!@}
111
112//!@subsection Prototypes of functions.
113
114//!@{
115
116//++
117// prototypes
118//--
119
120void readparam(char * filename);
121char *get_database_path(void);
122void get_simulated_phe(float *lphe, float *uphe, float *pphe);
123//!@}
124
125//!@{
126
127#endif // ! _srreadparam_
128
129//!@}
130
131//=------------------------------------------------------------
132//!@subsection Log of this file.
133
134//!@{
135
136/*
137 * $Log: not supported by cvs2svn $
138 */
139
140//!@}
141//=EOF
Note: See TracBrowser for help on using the repository browser.