Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NuclWatcher.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// $Id$
27//
28// 20100202 M. Kelsey -- Move most code into .cc file
29// 20100405 M. Kelsey -- Pass const-ref std::vector<>
30// 20101010 M. Kelsey -- Migrate to integer A and Z
31
32#ifndef G4NUCL_WATCHER_HH
33#define G4NUCL_WATCHER_HH
34
35#include "G4Types.hh"
36
37#include <algorithm>
38#include <vector>
39#include <cmath>
40
42public:
44 const std::vector<G4double>& expa,
45 const std::vector<G4double>& expcs,
46 const std::vector<G4double>& experr,
47 G4bool check,
48 G4bool nucl);
49
51
52 void watch(G4int a, G4int z);
53 void setInuclCs(G4double csec, G4int nev);
54
55 G4double getChsq() const { return izotop_chsq; }
56 G4bool to_check() const { return checkable; }
57 G4bool look_forNuclei() const { return nucleable; }
58 G4double getLhood() const { return aver_lhood; }
59 G4double getNmatched() const { return aver_matched; }
60
61 std::pair<G4double, G4double> getExpCs() const;
62 std::pair<G4double, G4double> getInuclCs() const;
63
64 std::pair<G4double, G4double> getAverageRatio() const {
65 return std::pair<G4double, G4double>(average_ratio, aver_rat_err);
66 }
67
68 void print();
69
70private:
71 G4int nuclz;
72 G4double izotop_chsq;
73 G4double average_ratio;
74 G4double aver_rat_err;
75 G4double aver_lhood;
76 G4double aver_matched;
77 std::vector<G4double> exper_as;
78 std::vector<G4double> exper_cs;
79 std::vector<G4double> exper_err;
80 std::vector<G4double> simulated_as;
81 std::vector<G4double> simulated_cs;
82 std::vector<G4double> simulated_errors;
83 std::vector<G4double> simulated_prob;
84 G4bool checkable;
85 G4bool nucleable;
86};
87
88#endif // G4NUCL_WATCHER_HH
89
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
std::pair< G4double, G4double > getInuclCs() const
std::pair< G4double, G4double > getExpCs() const
void watch(G4int a, G4int z)
std::pair< G4double, G4double > getAverageRatio() const
G4bool look_forNuclei() const
G4double getLhood() const
G4double getNmatched() const
G4bool to_check() const
G4double getChsq() const
void setInuclCs(G4double csec, G4int nev)