76 G4cout <<
" G4tgbMaterialMixtureByVolume::buildG4Material() -"
77 <<
" Constructing new G4Material:"
100 mate->
AddMaterial( compMate, theFractionsByWeight[ii] );
106 +
"\n" +
"is not an element nor a material !";
107 G4Exception(
"G4tgbMaterialMixtureByVolume::BuildG4Material()",
115 G4cout <<
" Constructing new G4Material by volume: " << *mate <<
G4endl;
136 totalfd += theFractionsByWeight[ii];
142 +
"\n" +
"is not a material !";
143 G4Exception(
"G4tgbMaterialMixtureByVolume::BuildG4Material()",
149 theFractionsByWeight[ii] /= totalfd;
153 G4cout <<
" G4tgbMaterialMixtureByVolume::TransformToFractionsByWeight()"
154 <<
" Component " << ii <<
" : "
157 <<
" FractionByWeight= " << theFractionsByWeight[ii]
G4DLLIMPORT std::ostream G4cout
G4double GetDensity() const
void AddMaterial(G4Material *material, G4double fraction)
const G4String & GetName() const
G4Material * FindOrBuildG4Material(const G4String &name, G4bool bMustExist=1)
static G4tgbMaterialMgr * GetInstance()
G4Material * BuildG4Material()
void TransformToFractionsByWeight()
~G4tgbMaterialMixtureByVolume()
G4tgbMaterialMixtureByVolume()
virtual G4double GetFraction(G4int i) const
virtual const G4String & GetComponent(G4int i) const
G4tgrMaterial * theTgrMate
const G4String & GetName() const
G4double GetDensity() const
G4int GetNumberOfComponents() const
G4double GetPressure() const
G4double GetTemperature() const
static G4int GetVerboseLevel()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)