#include <G4FermiNucleiProperties.hh>
Definition at line 39 of file G4FermiNucleiProperties.hh.
◆ GetNuclearMass()
◆ Initialize() [1/3]
| void G4FermiNucleiProperties::Initialize |
( |
| ) |
|
|
inline |
◆ Initialize() [2/3]
template<typename DataSource>
| void G4FermiNucleiProperties::Initialize |
( |
const DataSource & | dataSource | ) |
|
|
inline |
◆ Initialize() [3/3]
template<typename Iter>
| void G4FermiNucleiProperties::Initialize |
( |
Iter | begin, |
|
|
Iter | end ) |
|
inline |
Definition at line 51 of file G4FermiNucleiProperties.hh.
52 {
53 nucleiMasses_.clear();
54 static_assert(
55 std::is_same_v<typename Iter::value_type, std::pair<const G4FermiNucleiData, G4double>>,
56 "invalid iterator");
57 for (auto it = begin; it != end; ++it) {
58 InsertNuclei(it->first.atomicMass, it->first.chargeNumber, it->second);
59 }
60 }
void InsertNuclei(G4FermiAtomicMass atomicMass, G4FermiChargeNumber chargeNumber, G4double mass, G4bool isStable=true)
◆ InsertNuclei()
Definition at line 92 of file G4FermiNucleiProperties.cc.
95{
96 const auto slot = GetSlot(atomicMass, chargeNumber);
97 if (slot >= nucleiMasses_.size()) {
98 nucleiMasses_.resize(slot + static_cast<std::uint32_t>(atomicMass));
99 }
100
101 nucleiMasses_[slot] = G4FermiMassData{
102 mass,
104 true,
105 };
106}
G4bool isStable(Cluster const *const c)
True if the cluster is stable.
Referenced by Initialize().
◆ Instance()
◆ IsStable()
The documentation for this class was generated from the following files: