34G4NuclearPolarizationStore::instance =
nullptr;
38 if(
nullptr == instance) {
45G4NuclearPolarizationStore::G4NuclearPolarizationStore()
63 if(ptr == nuclist[i]) {
return; }
64 if(
nullptr == nuclist[i]) { idx = i; }
71 delete nuclist[oldIdx];
72 nuclist[oldIdx] = ptr;
81 static const G4double tolerance = 10.*CLHEP::eV;
83 auto nucp = nuclist[i];
84 if(nucp &&
Z == nucp->GetZ() &&
A == nucp->GetA() &&
85 std::abs(Eexc - nucp->GetExcitationEnergy()) < tolerance) {
97 if(ptr == nuclist[i]) {
103 if(j != i &&
nullptr != nuclist[j]) {
static G4NuclearPolarizationStore * GetInstance()
void Register(G4NuclearPolarization *ptr)
~G4NuclearPolarizationStore()
void RemoveMe(G4NuclearPolarization *ptr)
G4NuclearPolarization * FindOrBuild(G4int Z, G4int A, G4double Eexc)