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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 122 of file CCalAMaterial.cc.

122  {
123  os << mat.name << G4endl;
124  os << "Density= " << mat.density << " g/cm3. Number of Elements: "
125  << mat.nElem
126  << ". Aeff= " << mat.aEff << G4endl;
127  for (int i=0; i<mat.nElem; i++)
128  os << '\t' << mat.theElements[i] << '\t' << mat.theWeights[i] << G4endl;
129  return os;
130 }
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