Geant4 9.6.0
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, G4Isotope *isotope)
 
std::ostream & operator<< (std::ostream &flux, G4Isotope &isotope)
 
std::ostream & operator<< (std::ostream &flux, G4IsotopeTable IsotopeTable)
 

Function Documentation

◆ operator<<() [1/3]

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

Definition at line 159 of file G4Isotope.cc.

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

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream &  flux,
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:68

◆ operator<<() [3/3]

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:52