source: trunk/MagicSoft/Simulation/Detector/ReflectorII/parms.h@ 1432

Last change on this file since 1432 was 1431, checked in by bigongia, 22 years ago
*** empty log message ***
File size: 3.0 KB
Line 
1#ifndef __RFL_PARMS__
2#define __RFL_PARMS__
3
4/* token definition */
5#define ITEM_LIST /* LIST OF ITEMS IN THE PARAMETERS FILE */ \
6T(output_file), /* output file */ \
7T(ct_file), /* file with the characteristics of the CT */ \
8T(axisdev_file), /* file with the single mirror spot deviations*/ \
9T(reflectivity_file), /* file with the mirror reflectivity */ \
10T(atm_model), /* changes the atmospheric model to be used */ \
11T(verbose_level), /* defines verbose level of the output */ \
12T(fixed_target), /* position towards which CT is pointing */ \
13T(telescope_position),/* position towards which CT is pointing */ \
14T(max_events), /* maximum number of event to read */ \
15T(energy_cuts), /* lowest/highest energy allowed */ \
16T(seeds), /* seeds for random number generation */ \
17T(cer_files) /* start of filename list (must be last) */
18
19#define T(x) x /* define T() as the name as it is */
20 enum { ITEM_LIST };
21#undef T
22
23#define T(x) #x /* define T() as the string of x */
24 const char *parms[] = { ITEM_LIST };
25#undef T
26#undef ITEM_LIST
27
28/* Strings */
29#define OUTF_ERROR_FTL /* output filename */ \
30 "Can't open output file: %s.\n"
31#define OUTF_OPEN__MSG /* output filename */ \
32 "Opened file \"%s\" as reflector file.\n"
33#define GEOF_ERROR_FTL /* geometry filename */ \
34 "Can't open geometry file: %s.\n"
35#define GEOF_OPEN__MSG /* geometry filename */ \
36 "Opened file \"%s\" as geometry file.\n"
37#define FIXD_TARGT_ERR /* no parms */ \
38 "Error while parsing \"fixed_target\" fields.\n" \
39 " *** Reverted back to no \"fixed_target\" condition.\n"
40#define FIXD_ENABL_MSG /* theta, phi */ \
41 "Using \"fixed_target\" mode with theta=%.2fdeg and phi=%.2fdeg.\n"
42#define TEL_POS_ERR /* no parms */ \
43 "Error while parsing \"telescope_position\" fields.\n" \
44 " *** EXITING! \n"
45#define TEL_POS_MSG /* theta, phi */ \
46 "Using \"telescope position\" mode with x=%.1fcm and y=%.1fcm.\n"
47#define MAX__EVTS__MSG /* max. nr. of evts. */ \
48 "Processing at most %ld events.\n"
49#define ENRG_LIMIT_ERR /* no parms */ \
50 "Error while parsing \"energy_cuts\" fields.\n" \
51 " *** Reverted back to no \"energy_cuts\" condition.\n"
52#define ENRG_CUTS__MSG /* Elow, Ehigh */ \
53 "Using \"energy_cuts\" mode with Elow=%.2fGeV and Ehigh=%.2fGeV.\n"
54#define SEED_ERROR_ERR /* no parms */ \
55 "Error while parsing second seed.\n"
56#define SEED_SET___MSG /* Seed1, Seed2 */ \
57 "Using seeds %ld and %ld.\n"
58#define FLST_NSPEC_FTL /* no parms */ \
59 "No input file specified.\n" \
60 " *** Please specify some input file after the cer_files directive.\n"
61#define FLST_NFND__FTL /* filelist */ \
62 "Cannot find filelist \"%s\".\n"
63#define CERF_NSPEC_FTL /* no parms */ \
64 "No specified input file could be opened.\n" \
65 " *** Please specify some *valid* filename after the cer_files directive.\n"
66
67
68extern char axisdev_filename[256], reflectivity_filename[256];
69
70#endif
Note: See TracBrowser for help on using the repository browser.