37 : verboseLevel(0), eventNumber(0.0), averageMultiplicity(0.0),
38 averageProtonNumber(0.0), averageNeutronNumber(0.0),
39 averagePionNumber(0.0), averageNucleonKinEnergy(0.0),
40 averageProtonKinEnergy(0.0), averageNeutronKinEnergy(0.0),
41 averagePionKinEnergy(0.0), averageExitationEnergy(0.0),
42 averageOutgoingNuclei(0.0), fissy_prob(0.0), averagePionPl(0.0),
43 averagePionMin(0.0), averagePion0(0.0), averageA(0.0), averageZ(0.0),
44 inel_csec(0.0), withNuclei(false) {
106 if (nucleus.size() > 0) {
110 for (
G4int in = 0; in <
G4int(nucleus.size()); in++) {
113 G4int a = nucleus[in].getA();
114 G4int z = nucleus[in].getZ();
127 const std::vector<G4InuclElementaryParticle>& particles =
131 for (
G4int i = 0; i <
G4int(particles.size()); i++) {
138 if (particles[i].type() == 1) {
151 }
else if (particles[i].
pion()) {
156 if (particles[i].type() == 3) {
160 }
else if (particles[i].type() == 5) {
164 }
else if (particles[i].type() == 7) {
175 const std::vector<G4InuclElementaryParticle>& particles =
179 for (
G4int i = 0; i <
G4int(particles.size()); i++) {
184 if (particles[i].type() == 1) {
193 }
else if (particles[i].
pion()) {
204 G4cout <<
" >>> G4Analyser::printResultsSimple" <<
G4endl;
222 <<
" average Exitation Energy " <<
257 <<
" average Exitation Energy " <<
269 G4cout <<
" >>> G4Analyser::handleWatcherStatistics" <<
G4endl;
293 std::pair<G4double, G4double> rat_err =
ana_watchers[iw].getAverageRatio();
294 averat += rat_err.first;
295 ave_err += rat_err.second;
297 std::pair<G4double, G4double> cs_err =
ana_watchers[iw].getExpCs();
298 tot_exper += cs_err.first;
299 tot_exper_err += cs_err.second;
300 std::pair<G4double, G4double> inucl_cs_err =
ana_watchers[iw].getInuclCs();
301 tot_inucl += inucl_cs_err.first;
302 tot_inucl_err += inucl_cs_err.second;
305 if (iz_checked > 0.0) {
307 checked += iz_checked;
313 gl_chsq = std::sqrt(gl_chsq) / checked;
316 fgr = std::pow(10.0, std::sqrt(fgr / checked));
320 G4cout <<
" total exper c.s. " << tot_exper <<
" err " << tot_exper_err <<
321 " tot inucl c.s. " << tot_inucl <<
" err " << tot_inucl_err <<
G4endl;
322 G4cout <<
" checked total " << checked <<
" lhood " << fgr << G4endl
323 <<
" average ratio " << averat <<
" err " << ave_err << G4endl
324 <<
" global chsq " << gl_chsq <<
G4endl;
331 G4cout <<
" >>> G4Analyser::printResultsNtuple" <<
G4endl;
G4double averageProtonKinEnergy
void analyse(const G4CollisionOutput &output)
void handleWatcherStatistics()
void printResultsNtuple()
G4double averageNucleonKinEnergy
G4double averageMultiplicity
G4double averageNeutronKinEnergy
G4GLOB_DLL std::ostream G4cout
void try_watchers(G4int a, G4int z, G4bool if_nucl)
G4bool nucleon(G4int ityp)
void printResultsSimple()
G4double averageProtonNumber
std::vector< G4NuclWatcher > ana_watchers
G4double averageNeutronNumber
const std::vector< G4InuclNuclei > & getOutgoingNuclei() const
const std::vector< G4InuclElementaryParticle > & getOutgoingParticles() const
void setInelCsec(G4double csec, G4bool withn)
void setWatchers(const std::vector< G4NuclWatcher > &watchers)
G4double averagePionKinEnergy
G4double averagePionNumber
G4double averageExitationEnergy
G4double averageOutgoingNuclei