Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalMaterial.cc File Reference
#include "CCalMaterial.hh"
Include dependency graph for CCalMaterial.cc:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CCalMaterial &mat)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CCalMaterial mat 
)

Definition at line 177 of file CCalMaterial.cc.

177  {
178  os << mat.name << G4endl;
179  os << "Density= " << mat.density << " g/cm3. Number of Elements: "
180  << mat.nElem << G4endl;
181  for (int i=0; i<mat.nElem; i++)
182  os << '\t' << mat.theElements[i] << '\t' << mat.theWeights[i] << G4endl;
183  return os;
184 }
G4String name
Definition: CCalMaterial.hh:70
G4String * theElements
Definition: CCalMaterial.hh:73
#define G4endl
Definition: G4ios.hh:61
double density
Definition: CCalMaterial.hh:71
double * theWeights
Definition: CCalMaterial.hh:74