#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) |
std::ostream& operator<< | ( | std::ostream & | flux, | |
G4IsotopeTable | IsotopeTable | |||
) |
Definition at line 167 of file G4Isotope.cc.
References G4endl.
00168 { 00169 //Dump info for all known isotopes 00170 flux 00171 << "\n***** Table : Nb of isotopes = " << IsotopeTable.size() 00172 << " *****\n" << G4endl; 00173 00174 for (size_t i=0; i<IsotopeTable.size(); i++) 00175 flux << IsotopeTable[i] << G4endl; 00176 00177 return flux; 00178 }
std::ostream& operator<< | ( | std::ostream & | flux, | |
G4Isotope & | isotope | |||
) |
std::ostream& operator<< | ( | std::ostream & | flux, | |
G4Isotope * | isotope | |||
) |
Definition at line 139 of file G4Isotope.cc.
References G4Isotope::fA, G4Isotope::fN, G4Isotope::fName, and G4Isotope::fZ.
00140 { 00141 std::ios::fmtflags mode = flux.flags(); 00142 flux.setf(std::ios::fixed,std::ios::floatfield); 00143 G4long prec = flux.precision(3); 00144 00145 flux 00146 << " Isotope: " << std::setw(5) << isotope->fName 00147 << " Z = " << std::setw(2) << isotope->fZ 00148 << " N = " << std::setw(3) << isotope->fN 00149 << " A = " << std::setw(6) << std::setprecision(2) 00150 << (isotope->fA)/(g/mole) << " g/mole"; 00151 00152 flux.precision(prec); 00153 flux.setf(mode,std::ios::floatfield); 00154 return flux; 00155 }