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

Last change on this file since 5440 was 1614, checked in by bigongia, 22 years ago
*** empty log message ***
File size: 3.2 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(wobble_mode), /* wobble mode option */ \
16T(energy_cuts), /* lowest/highest energy allowed */ \
17T(seeds), /* seeds for random number generation */ \
18T(cer_files) /* start of filename list (must be last) */
19
20#define T(x) x /* define T() as the name as it is */
21 enum { ITEM_LIST };
22#undef T
23
24#define T(x) #x /* define T() as the string of x */
25 const char *parms[] = { ITEM_LIST };
26#undef T
27#undef ITEM_LIST
28
29/* Strings */
30#define OUTF_ERROR_FTL /* output filename */ \
31 "Can't open output file: %s.\n"
32#define OUTF_OPEN__MSG /* output filename */ \
33 "Opened file \"%s\" as reflector file.\n"
34#define GEOF_ERROR_FTL /* geometry filename */ \
35 "Can't open geometry file: %s.\n"
36#define GEOF_OPEN__MSG /* geometry filename */ \
37 "Opened file \"%s\" as geometry file.\n"
38#define FIXD_TARGT_ERR /* no parms */ \
39 "Error while parsing \"fixed_target\" fields.\n" \
40 " *** Reverted back to no \"fixed_target\" condition.\n"
41#define FIXD_ENABL_MSG /* theta, phi */ \
42 "Using \"fixed_target\" mode with theta=%.2fdeg and phi=%.2fdeg.\n"
43#define TEL_POS_ERR /* no parms */ \
44 "Error while parsing \"telescope_position\" fields.\n" \
45 " *** EXITING! \n"
46#define TEL_POS_MSG /* theta, phi */ \
47 "Using \"telescope position\" mode with x=%.1fcm and y=%.1fcm.\n"
48#define MAX__EVTS__MSG /* max. nr. of evts. */ \
49 "Processing at most %ld events.\n"
50
51#define WOBBLE_POS_ERR "wobble mode can only be -1, 0, 1 or 3\n"
52#define WOBBLE_POS_MSG "Using wobble position %d\n"
53
54#define ENRG_LIMIT_ERR /* no parms */ \
55 "Error while parsing \"energy_cuts\" fields.\n" \
56 " *** Reverted back to no \"energy_cuts\" condition.\n"
57#define ENRG_CUTS__MSG /* Elow, Ehigh */ \
58 "Using \"energy_cuts\" mode with Elow=%.2fGeV and Ehigh=%.2fGeV.\n"
59#define SEED_ERROR_ERR /* no parms */ \
60 "Error while parsing second seed.\n"
61#define SEED_SET___MSG /* Seed1, Seed2 */ \
62 "Using seeds %ld and %ld.\n"
63#define FLST_NSPEC_FTL /* no parms */ \
64 "No input file specified.\n" \
65 " *** Please specify some input file after the cer_files directive.\n"
66#define FLST_NFND__FTL /* filelist */ \
67 "Cannot find filelist \"%s\".\n"
68#define CERF_NSPEC_FTL /* no parms */ \
69 "No specified input file could be opened.\n" \
70 " *** Please specify some *valid* filename after the cer_files directive.\n"
71extern char axisdev_filename[256], reflectivity_filename[256];
72
73#endif
Note: See TracBrowser for help on using the repository browser.