| 1 | #ifndef __RFL_PARMS__
|
|---|
| 2 | #define __RFL_PARMS__
|
|---|
| 3 |
|
|---|
| 4 | /* token definition */
|
|---|
| 5 | #define ITEM_LIST /* LIST OF ITEMS IN THE PARAMETERS FILE */ \
|
|---|
| 6 | T(output_file), /* output file */ \
|
|---|
| 7 | T(ct_file), /* file with the characteristics of the CT */ \
|
|---|
| 8 | T(atm_model), /* changes the atmospheric model to be used */ \
|
|---|
| 9 | T(verbose_level), /* defines verbose level of the output */ \
|
|---|
| 10 | T(fixed_target), /* position towards which CT is pointing */ \
|
|---|
| 11 | T(max_events), /* maximum number of event to read */ \
|
|---|
| 12 | T(energy_cuts), /* lowest/highest energy allowed */ \
|
|---|
| 13 | T(seeds), /* seeds for random number generation */ \
|
|---|
| 14 | T(random_pointing), /* random CT pointing from each shower (hadrons) */ \
|
|---|
| 15 | T(repeat_random), /* number of times a random pointing is to be done */ \
|
|---|
| 16 | T(cer_files) /* start of filename list (must be last) */
|
|---|
| 17 |
|
|---|
| 18 | #define T(x) x /* define T() as the name as it is */
|
|---|
| 19 | enum { ITEM_LIST };
|
|---|
| 20 | #undef T
|
|---|
| 21 |
|
|---|
| 22 | #define T(x) #x /* define T() as the string of x */
|
|---|
| 23 | const char *parms[] = { ITEM_LIST };
|
|---|
| 24 | #undef T
|
|---|
| 25 | #undef ITEM_LIST
|
|---|
| 26 |
|
|---|
| 27 | /* Strings */
|
|---|
| 28 | #define OUTF_ERROR_FTL /* output filename */ \
|
|---|
| 29 | "Can't open output file: %s.\n"
|
|---|
| 30 | #define OUTF_OPEN__MSG /* output filename */ \
|
|---|
| 31 | "Opened file \"%s\" as reflector file.\n"
|
|---|
| 32 | #define GEOF_ERROR_FTL /* geometry filename */ \
|
|---|
| 33 | "Can't open geometry file: %s.\n"
|
|---|
| 34 | #define GEOF_OPEN__MSG /* geometry filename */ \
|
|---|
| 35 | "Opened file \"%s\" as geometry file.\n"
|
|---|
| 36 | #define FIXD_TARGT_ERR /* no parms */ \
|
|---|
| 37 | "Error while parsing \"fixed_target\" fields.\n" \
|
|---|
| 38 | " *** Reverted back to no \"fixed_target\" condition.\n"
|
|---|
| 39 | #define FIXD_ENABL_MSG /* theta, phi */ \
|
|---|
| 40 | "Using \"fixed_target\" mode with theta=%.2fdeg and phi=%.2fdeg.\n"
|
|---|
| 41 | #define MAX__EVTS__MSG /* max. nr. of evts. */ \
|
|---|
| 42 | "Processing at most %ld events.\n"
|
|---|
| 43 | #define ENRG_LIMIT_ERR /* no parms */ \
|
|---|
| 44 | "Error while parsing \"energy_cuts\" fields.\n" \
|
|---|
| 45 | " *** Reverted back to no \"energy_cuts\" condition.\n"
|
|---|
| 46 | #define ENRG_CUTS__MSG /* Elow, Ehigh */ \
|
|---|
| 47 | "Using \"energy_cuts\" mode with Elow=%.2fGeV and Ehigh=%.2fGeV.\n"
|
|---|
| 48 | #define SEED_ERROR_ERR /* no parms */ \
|
|---|
| 49 | "Error while parsing second seed.\n"
|
|---|
| 50 | #define SEED_SET___MSG /* Seed1, Seed2 */ \
|
|---|
| 51 | "Using seeds %ld and %ld.\n"
|
|---|
| 52 | #define FLST_NSPEC_FTL /* no parms */ \
|
|---|
| 53 | "No input file specified.\n" \
|
|---|
| 54 | " *** Please specify some input file after the cer_files directive.\n"
|
|---|
| 55 | #define FLST_NFND__FTL /* filelist */ \
|
|---|
| 56 | "Cannot find filelist \"%s\".\n"
|
|---|
| 57 | #define CERF_NSPEC_FTL /* no parms */ \
|
|---|
| 58 | "No specified input file could be opened.\n" \
|
|---|
| 59 | " *** Please specify some *valid* filename after the cer_files directive.\n"
|
|---|
| 60 |
|
|---|
| 61 | #endif
|
|---|