Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NuclearPolarization.cc File Reference
#include "G4NuclearPolarization.hh"
#include <iomanip>
Include dependency graph for G4NuclearPolarization.cc:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 60 of file G4NuclearPolarization.cc.

61 {
62  out << " P = [ { ";
63  for(size_t k=0; k<p->fPolarization.size(); ++k) {
64  if(k>0) { out << " }, { "; }
65  for(size_t kappa=0; kappa<p->fPolarization[k].size(); ++kappa) {
66  if(kappa > 0) { out << ", "; }
67  out << p->fPolarization[k][kappa].real() << " + "
68  << p->fPolarization[k][kappa].imag() << "*i";
69  }
70  }
71  out << " } ]" << G4endl;
72  return out;
73 }
#define G4endl
Definition: G4ios.hh:61
std::ostream& operator<< ( std::ostream &  out,
const G4NuclearPolarization np 
)

Definition at line 75 of file G4NuclearPolarization.cc.

76 {
77  out << &np;
78  return out;
79 }