#include <G4NuclWatcher.hh>
|
| G4NuclWatcher (G4int z, const std::vector< G4double > &expa, const std::vector< G4double > &expcs, const std::vector< G4double > &experr, G4bool check, G4bool nucl) |
|
std::pair< G4double, G4double > | getAverageRatio () const |
|
G4double | getChsq () const |
|
std::pair< G4double, G4double > | getExpCs () const |
|
std::pair< G4double, G4double > | getInuclCs () const |
|
G4double | getLhood () const |
|
G4double | getNmatched () const |
|
G4bool | look_forNuclei () const |
|
void | print () |
|
void | setInuclCs (G4double csec, G4int nev) |
|
G4bool | to_check () const |
|
void | watch (G4int a, G4int z) |
|
| ~G4NuclWatcher () |
|
Definition at line 40 of file G4NuclWatcher.hh.
◆ G4NuclWatcher()
Definition at line 39 of file G4NuclWatcher.cc.
std::vector< G4double > exper_cs
std::vector< G4double > exper_as
std::vector< G4double > exper_err
◆ ~G4NuclWatcher()
G4NuclWatcher::~G4NuclWatcher |
( |
| ) |
|
|
inline |
◆ getAverageRatio()
◆ getChsq()
G4double G4NuclWatcher::getChsq |
( |
| ) |
const |
|
inline |
◆ getExpCs()
◆ getInuclCs()
Definition at line 93 of file G4NuclWatcher.cc.
93 {
97 for(
G4int iz = 0; iz < simulatedAsSize; iz++) {
100 }
101
102 return std::pair<G4double, G4double>(cs, err);
103}
std::vector< G4double > simulated_as
std::vector< G4double > simulated_errors
std::vector< G4double > simulated_cs
References simulated_as, simulated_cs, and simulated_errors.
◆ getLhood()
G4double G4NuclWatcher::getLhood |
( |
| ) |
const |
|
inline |
◆ getNmatched()
G4double G4NuclWatcher::getNmatched |
( |
| ) |
const |
|
inline |
◆ look_forNuclei()
G4bool G4NuclWatcher::look_forNuclei |
( |
| ) |
const |
|
inline |
◆ print()
void G4NuclWatcher::print |
( |
| ) |
|
Definition at line 105 of file G4NuclWatcher.cc.
105 {
107
108 G4cout <<
"\n ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "
110
118 std::vector<G4bool> not_used(
simulated_cs.size(),
true);
123
124 for (
G4int iz = 0; iz < experAsSize; iz++) {
126
129
132 for (
G4int i = 0; i<simulatedAsSize && !found; i++) {
135
136 lhood += std::log10(rat) * std::log10(rat);
137
143
147 <<
" ratio " << rat <<
" err " << rat_err <<
G4endl
149
150 not_used[i] = false;
151 izotop_chsq += (rat - 1.0) * (rat - 1.0) / rat_err / rat_err;
152 found = true;
153 nused--;
154 }
155 }
156
157 if (found) nmatched--;
158 else
159 G4cout <<
" not found exper.: A " << a <<
" exp.cs " <<
exper_cs[iz]
161 }
162
163 G4cout <<
" not found in simulations " << nmatched <<
G4endl
164 <<
" not found in exper: " << nused <<
G4endl;
165
167 for(
G4int i = 0; i < simulatedAsSize; i++) {
170
171 if(not_used[i])
174
176 }
177
179
180 if (matched > 0) {
183 lhood = std::pow(10.0, std::sqrt(lhood/matched));
184
190 <<
" lhood " << lhood <<
G4endl;
191 }
192 else {
195 }
196
197 G4cout <<
" exper. cs " << exp_cs <<
" err " << exp_cs_err <<
G4endl
198 <<
" inucl. cs " << inucl_cs <<
" err " << inucl_cs_err <<
G4endl
199 << " ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ "
201}
G4GLOB_DLL std::ostream G4cout
std::vector< G4double > simulated_prob
References aver_lhood, aver_matched, aver_rat_err, average_ratio, exper_as, exper_cs, exper_err, G4cout, G4endl, izotop_chsq, nuclz, simulated_as, simulated_cs, simulated_errors, and simulated_prob.
◆ setInuclCs()
◆ to_check()
G4bool G4NuclWatcher::to_check |
( |
| ) |
const |
|
inline |
◆ watch()
◆ aver_lhood
◆ aver_matched
◆ aver_rat_err
◆ average_ratio
◆ checkable
G4bool G4NuclWatcher::checkable |
|
private |
◆ exper_as
std::vector<G4double> G4NuclWatcher::exper_as |
|
private |
◆ exper_cs
std::vector<G4double> G4NuclWatcher::exper_cs |
|
private |
◆ exper_err
std::vector<G4double> G4NuclWatcher::exper_err |
|
private |
◆ izotop_chsq
◆ nucleable
G4bool G4NuclWatcher::nucleable |
|
private |
◆ nuclz
G4int G4NuclWatcher::nuclz |
|
private |
◆ simulated_as
std::vector<G4double> G4NuclWatcher::simulated_as |
|
private |
◆ simulated_cs
std::vector<G4double> G4NuclWatcher::simulated_cs |
|
private |
◆ simulated_errors
std::vector<G4double> G4NuclWatcher::simulated_errors |
|
private |
◆ simulated_prob
std::vector<G4double> G4NuclWatcher::simulated_prob |
|
private |
The documentation for this class was generated from the following files: