Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4Isotope.cc File Reference
#include <iomanip>
#include "G4Isotope.hh"
#include "G4NistManager.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
Include dependency graph for G4Isotope.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &flux, const G4Isotope *isotope)
 
std::ostream & operator<< (std::ostream &flux, const G4Isotope &isotope)
 
std::ostream & operator<< (std::ostream &flux, G4IsotopeTable IsotopeTable)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  flux,
const G4Isotope isotope 
)

Definition at line 139 of file G4Isotope.cc.

140 {
141  std::ios::fmtflags mode = flux.flags();
142  flux.setf(std::ios::fixed,std::ios::floatfield);
143  G4long prec = flux.precision(3);
144 
145  flux
146  << " Isotope: " << std::setw(5) << isotope->fName
147  << " Z = " << std::setw(2) << isotope->fZ
148  << " N = " << std::setw(3) << isotope->fN
149  << " A = " << std::setw(6) << std::setprecision(2)
150  << (isotope->fA)/(g/mole) << " g/mole";
151 
152  flux.precision(prec);
153  flux.setf(mode,std::ios::floatfield);
154  return flux;
155 }
long G4long
Definition: G4Types.hh:80
static constexpr double g
Definition: G4SIunits.hh:183
static const double prec
Definition: RanecuEngine.cc:58
inflate_mode mode
Definition: inflate.h:82
static constexpr double mole
Definition: G4SIunits.hh:286
std::ostream& operator<< ( std::ostream &  flux,
const G4Isotope isotope 
)

Definition at line 159 of file G4Isotope.cc.

160 {
161  flux << &isotope;
162  return flux;
163 }
std::ostream& operator<< ( std::ostream &  flux,
G4IsotopeTable  IsotopeTable 
)

Definition at line 167 of file G4Isotope.cc.

168 {
169  //Dump info for all known isotopes
170  flux
171  << "\n***** Table : Nb of isotopes = " << IsotopeTable.size()
172  << " *****\n" << G4endl;
173 
174  for (size_t i=0; i<IsotopeTable.size(); i++)
175  flux << IsotopeTable[i] << G4endl;
176 
177  return flux;
178 }
#define G4endl
Definition: G4ios.hh:61