43 : fZ(Z), fA(
A), fExcEnergy(exc)
54void G4NuclearPolarization::Clean()
56 if(!fPolarization.empty()) {
57 for(
auto & pol : fPolarization) {
60 fPolarization.clear();
66 return (fZ == right.fZ && fA == right.fA && fExcEnergy == right.fExcEnergy
67 && fPolarization == right.fPolarization);
72 return (fZ != right.fZ || fA != right.fA || fExcEnergy != right.fExcEnergy
73 || fPolarization != right.fPolarization);
78 out <<
"G4NuclearPolarization: Z= " << p.fZ <<
" A= " << p.fA <<
" Exc(MeV)= "
81 size_t kk = p.fPolarization.size();
82 for(
size_t k=0; k<kk; ++k) {
83 if(k>0) { out <<
" {"; }
84 size_t kpmax = (p.fPolarization[k]).size();
85 for(
size_t kappa=0; kappa<kpmax; ++kappa) {
86 if(kappa > 0) { out <<
"} {"; }
87 out << p.fPolarization[k][kappa].real() <<
" + "
88 << p.fPolarization[k][kappa].imag() <<
"*i";
90 if(k+1 < kk) { out <<
"}" <<
G4endl; }
double A(double temperature)
std::ostream & operator<<(std::ostream &out, const G4NuclearPolarization &p)
G4bool operator!=(const G4NuclearPolarization &right) const
G4bool operator==(const G4NuclearPolarization &right) const
G4NuclearPolarization(G4int Z, G4int A, G4double exc)