48 #define OLD_RADIUS_UNITS (3.3836/1.2) // Used with NucModel params
50 G4CascadeParameters::G4CascadeParameters()
51 : G4CASCADE_VERBOSE(getenv(
"G4CASCADE_VERBOSE")),
52 G4CASCADE_USE_PRECOMPOUND(getenv(
"G4CASCADE_USE_PRECOMPOUND")),
53 G4CASCADE_DO_COALESCENCE(getenv(
"G4CASCADE_DO_COALESCENCE")),
54 G4CASCADE_RANDOM_FILE(getenv(
"G4CASCADE_RANDOM_FILE")),
55 G4NUCMODEL_USE_BEST(getenv(
"G4NUCMODEL_USE_BEST")),
56 G4NUCMODEL_RAD_2PAR(getenv(
"G4NUCMODEL_RAD_2PAR")),
57 G4NUCMODEL_RAD_SCALE(getenv(
"G4NUCMODEL_RAD_SCALE")),
58 G4NUCMODEL_RAD_SMALL(getenv(
"G4NUCMODEL_RAD_SMALL")),
59 G4NUCMODEL_RAD_ALPHA(getenv(
"G4NUCMODEL_RAD_ALPHA")),
60 G4NUCMODEL_RAD_TRAILING(getenv(
"G4NUCMODEL_RAD_TRAILING")),
61 G4NUCMODEL_FERMI_SCALE(getenv(
"G4NUCMODEL_FERMI_SCALE")),
62 G4NUCMODEL_XSEC_SCALE(getenv(
"G4NUCMODEL_XSEC_SCALE")),
63 G4NUCMODEL_GAMMAQD(getenv(
"G4NUCMODEL_GAMMAQD")),
64 DPMAX_2CLUSTER(getenv(
"DPMAX_2CLUSTER")),
65 DPMAX_3CLUSTER(getenv(
"DPMAX_3CLUSTER")),
66 DPMAX_4CLUSTER(getenv(
"DPMAX_4CLUSTER")),
72 void G4CascadeParameters::Initialize() {
73 VERBOSE_LEVEL = (G4CASCADE_VERBOSE ? atoi(G4CASCADE_VERBOSE) : 0);
74 USE_PRECOMPOUND = (0!=G4CASCADE_USE_PRECOMPOUND);
75 DO_COALESCENCE = (0!=G4CASCADE_DO_COALESCENCE);
76 RANDOM_FILE = (G4CASCADE_RANDOM_FILE ? G4CASCADE_RANDOM_FILE :
"");
77 BEST_PAR = (0!=G4NUCMODEL_USE_BEST);
78 TWOPARAM_RADIUS = (0!=G4NUCMODEL_RAD_2PAR);
79 RADIUS_SCALE = (G4NUCMODEL_RAD_SCALE ? strtod(G4NUCMODEL_RAD_SCALE,0)
81 RADIUS_SMALL = ((G4NUCMODEL_RAD_SMALL ? strtod(G4NUCMODEL_RAD_SMALL,0)
83 RADIUS_ALPHA = (G4NUCMODEL_RAD_ALPHA ? strtod(G4NUCMODEL_RAD_ALPHA,0)
84 : (BEST_PAR?0.84:0.70));
85 RADIUS_TRAILING = ((G4NUCMODEL_RAD_TRAILING ? strtod(G4NUCMODEL_RAD_TRAILING,0)
86 : (BEST_PAR?0.70:0.0)) * RADIUS_SCALE);
87 FERMI_SCALE = ((G4NUCMODEL_FERMI_SCALE ? strtod(G4NUCMODEL_FERMI_SCALE,0)
89 XSEC_SCALE = (G4NUCMODEL_XSEC_SCALE ? strtod(G4NUCMODEL_XSEC_SCALE,0)
90 : (BEST_PAR?0.1:1.0) );
91 GAMMAQD_SCALE = (G4NUCMODEL_GAMMAQD?strtod(G4NUCMODEL_GAMMAQD,0):1.);
92 DPMAX_DOUBLET = (DPMAX_2CLUSTER ? strtod(DPMAX_2CLUSTER,0) : 0.090);
93 DPMAX_TRIPLET = (DPMAX_3CLUSTER ? strtod(DPMAX_3CLUSTER,0) : 0.108);
94 DPMAX_ALPHA = (DPMAX_4CLUSTER ? strtod(DPMAX_4CLUSTER,0) : 0.115);
104 void G4CascadeParameters::DumpConfig(std::ostream& os)
const {
105 if (G4CASCADE_VERBOSE)
106 os <<
"G4CASCADE_VERBOSE = " << G4CASCADE_VERBOSE << endl;
107 if (G4CASCADE_USE_PRECOMPOUND)
108 os <<
"G4CASCADE_USE_PRECOMPOUND = " << G4CASCADE_USE_PRECOMPOUND << endl;
109 if (G4CASCADE_DO_COALESCENCE)
110 os <<
"G4CASCADE_DO_COALESCENCE = " << G4CASCADE_DO_COALESCENCE << endl;
111 if (G4CASCADE_RANDOM_FILE)
112 os <<
"G4CASCADE_RANDOM_FILE = " << G4CASCADE_RANDOM_FILE << endl;
113 if (G4NUCMODEL_USE_BEST)
114 os <<
"G4NUCMODEL_USE_BEST = " << G4NUCMODEL_USE_BEST << endl;
115 if (G4NUCMODEL_RAD_2PAR)
116 os <<
"G4NUCMODEL_RAD_2PAR = " << G4NUCMODEL_RAD_2PAR << endl;
117 if (G4NUCMODEL_RAD_SCALE)
118 os <<
"G4NUCMODEL_RAD_SCALE = " << G4NUCMODEL_RAD_SCALE << endl;
119 if (G4NUCMODEL_RAD_SMALL)
120 os <<
"G4NUCMODEL_RAD_SMALL = " << G4NUCMODEL_RAD_SMALL << endl;
121 if (G4NUCMODEL_RAD_ALPHA)
122 os <<
"G4NUCMODEL_RAD_ALPHA = " << G4NUCMODEL_RAD_ALPHA << endl;
123 if (G4NUCMODEL_RAD_TRAILING)
124 os <<
"G4NUCMODEL_RAD_TRAILING = " << G4NUCMODEL_RAD_TRAILING << endl;
125 if (G4NUCMODEL_FERMI_SCALE)
126 os <<
"G4NUCMODEL_FERMI_SCALE = " << G4NUCMODEL_FERMI_SCALE << endl;
127 if (G4NUCMODEL_XSEC_SCALE)
128 os <<
"G4NUCMODEL_XSEC_SCALE = " << G4NUCMODEL_XSEC_SCALE << endl;
129 if (G4NUCMODEL_GAMMAQD)
130 os <<
"G4NUCMODEL_GAMMAQD = " << G4NUCMODEL_GAMMAQD << endl;
132 os <<
"DPMAX_2CLUSTER = " << DPMAX_2CLUSTER << endl;
134 os <<
"DPMAX_3CLUSTER = " << DPMAX_3CLUSTER << endl;
136 os <<
"DPMAX_4CLUSTER = " << DPMAX_4CLUSTER << endl;