52 #define OLD_RADIUS_UNITS (3.3836/1.2) // Used with NucModel params
54 G4CascadeParameters::G4CascadeParameters()
55 : G4CASCADE_VERBOSE(getenv(
"G4CASCADE_VERBOSE")),
56 G4CASCADE_CHECK_ECONS(getenv(
"G4CASCADE_CHECK_ECONS")),
57 G4CASCADE_USE_PRECOMPOUND(getenv(
"G4CASCADE_USE_PRECOMPOUND")),
58 G4CASCADE_DO_COALESCENCE(getenv(
"G4CASCADE_DO_COALESCENCE")),
59 G4CASCADE_SHOW_HISTORY(getenv(
"G4CASCADE_SHOW_HISTORY")),
60 G4CASCADE_USE_3BODYMOM(getenv(
"G4CASCADE_USE_3BODYMOM")),
61 G4CASCADE_USE_PHASESPACE(getenv(
"G4CASCADE_USE_PHASESPACE")),
62 G4CASCADE_RANDOM_FILE(getenv(
"G4CASCADE_RANDOM_FILE")),
63 G4NUCMODEL_USE_BEST(getenv(
"G4NUCMODEL_USE_BEST")),
64 G4NUCMODEL_RAD_2PAR(getenv(
"G4NUCMODEL_RAD_2PAR")),
65 G4NUCMODEL_RAD_SCALE(getenv(
"G4NUCMODEL_RAD_SCALE")),
66 G4NUCMODEL_RAD_SMALL(getenv(
"G4NUCMODEL_RAD_SMALL")),
67 G4NUCMODEL_RAD_ALPHA(getenv(
"G4NUCMODEL_RAD_ALPHA")),
68 G4NUCMODEL_RAD_TRAILING(getenv(
"G4NUCMODEL_RAD_TRAILING")),
69 G4NUCMODEL_FERMI_SCALE(getenv(
"G4NUCMODEL_FERMI_SCALE")),
70 G4NUCMODEL_XSEC_SCALE(getenv(
"G4NUCMODEL_XSEC_SCALE")),
71 G4NUCMODEL_GAMMAQD(getenv(
"G4NUCMODEL_GAMMAQD")),
72 DPMAX_2CLUSTER(getenv(
"DPMAX_2CLUSTER")),
73 DPMAX_3CLUSTER(getenv(
"DPMAX_3CLUSTER")),
74 DPMAX_4CLUSTER(getenv(
"DPMAX_4CLUSTER")),
80 void G4CascadeParameters::Initialize() {
81 VERBOSE_LEVEL = (G4CASCADE_VERBOSE ? atoi(G4CASCADE_VERBOSE) : 0);
82 CHECK_ECONS = (0!=G4CASCADE_CHECK_ECONS);
83 USE_PRECOMPOUND = (0!=G4CASCADE_USE_PRECOMPOUND);
84 DO_COALESCENCE = (0!=G4CASCADE_DO_COALESCENCE);
85 SHOW_HISTORY = (0!=G4CASCADE_SHOW_HISTORY);
86 USE_3BODYMOM = (0!=G4CASCADE_USE_3BODYMOM);
87 USE_PHASESPACE = (0!=G4CASCADE_USE_PHASESPACE);
88 RANDOM_FILE = (G4CASCADE_RANDOM_FILE ? G4CASCADE_RANDOM_FILE :
"");
89 BEST_PAR = (0!=G4NUCMODEL_USE_BEST);
90 TWOPARAM_RADIUS = (0!=G4NUCMODEL_RAD_2PAR);
91 RADIUS_SCALE = (G4NUCMODEL_RAD_SCALE ? strtod(G4NUCMODEL_RAD_SCALE,0)
93 RADIUS_SMALL = ((G4NUCMODEL_RAD_SMALL ? strtod(G4NUCMODEL_RAD_SMALL,0)
95 RADIUS_ALPHA = (G4NUCMODEL_RAD_ALPHA ? strtod(G4NUCMODEL_RAD_ALPHA,0)
96 : (BEST_PAR?0.84:0.70));
97 RADIUS_TRAILING = ((G4NUCMODEL_RAD_TRAILING ? strtod(G4NUCMODEL_RAD_TRAILING,0)
98 : (BEST_PAR?0.70:0.0)) * RADIUS_SCALE);
99 FERMI_SCALE = ((G4NUCMODEL_FERMI_SCALE ? strtod(G4NUCMODEL_FERMI_SCALE,0)
101 XSEC_SCALE = (G4NUCMODEL_XSEC_SCALE ? strtod(G4NUCMODEL_XSEC_SCALE,0)
102 : (BEST_PAR?0.1:1.0) );
103 GAMMAQD_SCALE = (G4NUCMODEL_GAMMAQD?strtod(G4NUCMODEL_GAMMAQD,0):1.);
104 DPMAX_DOUBLET = (DPMAX_2CLUSTER ? strtod(DPMAX_2CLUSTER,0) : 0.090);
105 DPMAX_TRIPLET = (DPMAX_3CLUSTER ? strtod(DPMAX_3CLUSTER,0) : 0.108);
106 DPMAX_ALPHA = (DPMAX_4CLUSTER ? strtod(DPMAX_4CLUSTER,0) : 0.115);
116 void G4CascadeParameters::DumpConfig(std::ostream& os)
const {
117 if (G4CASCADE_VERBOSE)
118 os <<
"G4CASCADE_VERBOSE = " << G4CASCADE_VERBOSE << endl;
119 if (G4CASCADE_CHECK_ECONS)
120 os <<
"G4CASCADE_CHECK_ECONS = " << G4CASCADE_CHECK_ECONS << endl;
121 if (G4CASCADE_USE_PRECOMPOUND)
122 os <<
"G4CASCADE_USE_PRECOMPOUND = " << G4CASCADE_USE_PRECOMPOUND << endl;
123 if (G4CASCADE_DO_COALESCENCE)
124 os <<
"G4CASCADE_DO_COALESCENCE = " << G4CASCADE_DO_COALESCENCE << endl;
125 if (G4CASCADE_SHOW_HISTORY)
126 os <<
"G4CASCADE_SHOW_HISTORY = " << G4CASCADE_SHOW_HISTORY << endl;
127 if (G4CASCADE_USE_3BODYMOM)
128 os <<
"G4CASCADE_USE_3BODYMOM = " << G4CASCADE_USE_3BODYMOM << endl;
129 if (G4CASCADE_USE_PHASESPACE)
130 os <<
"G4CASCADE_USE_PHASESPACE = " << G4CASCADE_USE_PHASESPACE << endl;
131 if (G4CASCADE_RANDOM_FILE)
132 os <<
"G4CASCADE_RANDOM_FILE = " << G4CASCADE_RANDOM_FILE << endl;
133 if (G4NUCMODEL_USE_BEST)
134 os <<
"G4NUCMODEL_USE_BEST = " << G4NUCMODEL_USE_BEST << endl;
135 if (G4NUCMODEL_RAD_2PAR)
136 os <<
"G4NUCMODEL_RAD_2PAR = " << G4NUCMODEL_RAD_2PAR << endl;
137 if (G4NUCMODEL_RAD_SCALE)
138 os <<
"G4NUCMODEL_RAD_SCALE = " << G4NUCMODEL_RAD_SCALE << endl;
139 if (G4NUCMODEL_RAD_SMALL)
140 os <<
"G4NUCMODEL_RAD_SMALL = " << G4NUCMODEL_RAD_SMALL << endl;
141 if (G4NUCMODEL_RAD_ALPHA)
142 os <<
"G4NUCMODEL_RAD_ALPHA = " << G4NUCMODEL_RAD_ALPHA << endl;
143 if (G4NUCMODEL_RAD_TRAILING)
144 os <<
"G4NUCMODEL_RAD_TRAILING = " << G4NUCMODEL_RAD_TRAILING << endl;
145 if (G4NUCMODEL_FERMI_SCALE)
146 os <<
"G4NUCMODEL_FERMI_SCALE = " << G4NUCMODEL_FERMI_SCALE << endl;
147 if (G4NUCMODEL_XSEC_SCALE)
148 os <<
"G4NUCMODEL_XSEC_SCALE = " << G4NUCMODEL_XSEC_SCALE << endl;
149 if (G4NUCMODEL_GAMMAQD)
150 os <<
"G4NUCMODEL_GAMMAQD = " << G4NUCMODEL_GAMMAQD << endl;
152 os <<
"DPMAX_2CLUSTER = " << DPMAX_2CLUSTER << endl;
154 os <<
"DPMAX_3CLUSTER = " << DPMAX_3CLUSTER << endl;
156 os <<
"DPMAX_4CLUSTER = " << DPMAX_4CLUSTER << endl;
static const G4CascadeParameters * Instance()