Geant4-11
Functions
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}
static constexpr double cm3
Definition: G4SIunits.hh:101
static constexpr double g
Definition: G4SIunits.hh:168
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
std::vector< G4double > theFractions
std::vector< G4String > theComponents
G4double theDensity
G4String theName
G4int theNoComponents