Geant4-11
Functions
G4NuclearPolarization.cc File Reference
#include "G4NuclearPolarization.hh"
#include <iomanip>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const G4NuclearPolarization &p)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  out,
const G4NuclearPolarization p 
)

Definition at line 76 of file G4NuclearPolarization.cc.

77{
78 out << "G4NuclearPolarization: Z= " << p.fZ << " A= " << p.fA << " Exc(MeV)= "
79 << p.fExcEnergy << G4endl;
80 out << " P = [ {";
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";
89 }
90 if(k+1 < kk) { out << "}" << G4endl; }
91 }
92 out << "} ]" << G4endl;
93 return out;
94}
#define G4endl
Definition: G4ios.hh:57
std::vector< std::vector< G4complex > > fPolarization