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

Last change on this file since 3160 was 683, checked in by blanch, 24 years ago
Header file for srreadparam.cxx 1.2
File size: 3.3 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.2 $
22//= $Author: blanch $
23//= $Date: 2001-03-05 11:02:10 $
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#include "MFadcDefine.h"
75#include "MTriggerDefine.h"
76
77//!@}
78
79//!@subsection Macro-definitions, and constants.
80
81//!@{
82
83// now we define the list ITEM_LIST of possible items in
84// the parameters file. note that they are functions of
85// T(x). we will change T(x) to be the real item or the
86// string of this item when needed
87
88#define ITEM_LIST /* LIST OF ITEMS IN THE PARAMETERS FILE */ \
89T(database_path), /* path to store the database */ \
90T(simulated_phe), /* starfield file */ \
91T(trig_properties), /* shape for the single phe trigger response */ \
92T(fadc_properties), /* shape for the single phe fadc response */ \
93T(write_root), /* write root file with some histograms */ \
94T(end_file) /* end of the parameters file */
95
96#define T(x) x // define T() as the name as it is
97
98enum ITEM_TYPE {
99 ITEM_LIST
100};
101
102#undef T
103
104#define T(x) #x // define T() as the string of x
105
106const char *const ITEM_NAMES[] = {
107 ITEM_LIST
108};
109
110#undef T
111
112#define LINE_MAX_LENGTH 400
113#define ITEM_MAX_LENGTH 40
114#define PATH_MAX_LENGTH 120
115
116//!@}
117
118//!@subsection Prototypes of functions.
119
120//!@{
121
122//++
123// prototypes
124//--
125
126void readparam(char * filename);
127char *get_database_path(void);
128void get_simulated_phe(float *lphe, float *uphe, float *pphe);
129void get_trig_properties(float *shape, float *ampl, float *fwhm);
130void get_fadc_properties(float *shape, float *ampl, float *fwhm);
131int get_write_root();
132//!@}
133
134//!@{
135
136#endif // ! _srreadparam_
137
138//!@}
139
140//=------------------------------------------------------------
141//!@subsection Log of this file.
142
143//!@{
144
145/*
146 * $Log: not supported by cvs2svn $
147 * Revision 1.1 2001/02/23 10:14:13 magicsol
148 * Header file for srreadparam.cxx version 1.1
149 *
150 */
151
152//!@}
153//=EOF
Note: See TracBrowser for help on using the repository browser.