Geant4 9.6.0
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 95 of file G4tgrMaterialMixture.cc.

96{
97 os << "G4tgrMaterialMixture=: " << mate.theName << G4endl
98 << "density= " << mate.theDensity/g*cm3
99 << " g/cm3. Number of Components: " << mate.theNoComponents << G4endl;
100 for (G4int ii=0; ii<mate.theNoComponents; ii++)
101 {
102 os << '\t' << mate.theComponents[ii]
103 << '\t' << mate.theFractions[ii] << G4endl;
104 }
105 return os;
106}
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
std::vector< G4double > theFractions
std::vector< G4String > theComponents
G4double theDensity
G4String theName
G4int theNoComponents