Geant4-11
Functions
G4tgrElementFromIsotopes.cc File Reference
#include "G4tgrElementFromIsotopes.hh"
#include "G4tgrUtils.hh"
#include "G4tgrMessenger.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4tgrElementFromIsotopes &obj)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4tgrElementFromIsotopes obj 
)

Definition at line 74 of file G4tgrElementFromIsotopes.cc.

75{
76 os << "G4tgrElementFromIsotopes= " << obj.theName << " N isotopes "
77 << obj.theNoIsotopes << " COMPONENTS " << G4endl;
78 for(std::size_t ii = 0; ii < obj.theComponents.size(); ++ii)
79 {
80 os << obj.theComponents[ii] << " : " << obj.theAbundances[ii];
81 }
82 os << G4endl;
83
84 return os;
85}
#define G4endl
Definition: G4ios.hh:57
std::vector< G4String > theComponents
std::vector< G4double > theAbundances
G4String theName
Definition: G4tgrElement.hh:52