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

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

Definition at line 95 of file G4tgrMaterialMixture.cc.

References G4endl, G4tgrMaterialMixture::theComponents, G4tgrMaterial::theDensity, G4tgrMaterialMixture::theFractions, G4tgrMaterial::theName, and G4tgrMaterial::theNoComponents.

00096 {
00097   os << "G4tgrMaterialMixture=: " << mate.theName << G4endl
00098      << "density= " << mate.theDensity/g*cm3
00099      << " g/cm3. Number of Components: " << mate.theNoComponents << G4endl;
00100   for (G4int ii=0; ii<mate.theNoComponents; ii++)
00101   {
00102     os << '\t' << mate.theComponents[ii]
00103        << '\t' << mate.theFractions[ii] << G4endl;
00104   }
00105   return os;
00106 }


Generated on Mon May 27 17:51:10 2013 for Geant4 by  doxygen 1.4.7