Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Isotope.cc File Reference
#include <iomanip>
#include "G4Isotope.hh"
#include "G4NistManager.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"

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

◆ operator<<() [1/3]

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

Definition at line 158 of file G4Isotope.cc.

159{
160 flux << &isotope;
161 return flux;
162}

◆ operator<<() [2/3]

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

Definition at line 138 of file G4Isotope.cc.

139{
140 std::ios::fmtflags mode = flux.flags();
141 flux.setf(std::ios::fixed,std::ios::floatfield);
142 G4long prec = flux.precision(3);
143
144 flux
145 << " Isotope: " << std::setw(5) << isotope->fName
146 << " Z = " << std::setw(2) << isotope->fZ
147 << " N = " << std::setw(3) << isotope->fN
148 << " A = " << std::setw(6) << std::setprecision(2)
149 << (isotope->fA)/(g/mole) << " g/mole";
150
151 flux.precision(prec);
152 flux.setf(mode,std::ios::floatfield);
153 return flux;
154}
long G4long
Definition: G4Types.hh:87

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream &  flux,
G4IsotopeTable  IsotopeTable 
)

Definition at line 166 of file G4Isotope.cc.

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