Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4tgrMaterialMixture.cc File Reference
#include "G4tgrMaterialMixture.hh"
#include "G4SystemOfUnits.hh"
#include "G4tgrUtils.hh"
#include "G4tgrMessenger.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4tgrMaterialMixture &mate)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const G4tgrMaterialMixture & mate )

Definition at line 88 of file G4tgrMaterialMixture.cc.

89{
90 os << "G4tgrMaterialMixture=: " << mate.theName << G4endl
91 << "density= " << mate.theDensity / g * cm3
92 << " g/cm3. Number of Components: " << mate.theNoComponents << G4endl;
93 for(G4int ii = 0; ii < mate.theNoComponents; ii++)
94 {
95 os << '\t' << mate.theComponents[ii] << '\t' << mate.theFractions[ii]
96 << G4endl;
97 }
98 return os;
99}
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67
std::vector< G4double > theFractions
std::vector< G4String > theComponents
G4double theDensity