Geant4.10
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Definition at line 95 of file G4tgrMaterialMixture.cc.

References python.hepunit::cm3, g(), G4endl, G4tgrMaterialMixture::theComponents, G4tgrMaterial::theDensity, G4tgrMaterialMixture::theFractions, G4tgrMaterial::theName, and G4tgrMaterial::theNoComponents.

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:78
G4double theDensity
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
G4String theName
G4int theNoComponents
#define G4endl
Definition: G4ios.hh:61
std::vector< G4double > theFractions
std::vector< G4String > theComponents