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]
G4double GetDensity() const
void AddMaterial(G4Material *material, G4double fraction)
const G4String & GetName() const
G4double GetDensity() const
G4double GetPressure() const
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
G4tgrMaterial * theTgrMate
static G4int GetVerboseLevel()
G4Material * FindOrBuildG4Material(const G4String &name, G4bool bMustExist=1)
G4int GetNumberOfComponents() const
virtual const G4String & GetComponent(G4int i) const
G4Material * BuildG4Material()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4tgbMaterialMixtureByVolume()
~G4tgbMaterialMixtureByVolume()
void TransformToFractionsByWeight()
G4double GetTemperature() const
virtual G4double GetFraction(G4int i) const
static G4tgbMaterialMgr * GetInstance()