65 G4cout <<
" G4tgbMaterialMixtureByVolume::buildG4Material() -"
66 <<
" Constructing new G4Material:"
85 if(compMate !=
nullptr)
88 mate->
AddMaterial(compMate, theFractionsByWeight[ii]);
94 "is not an element nor a material !";
95 G4Exception(
"G4tgbMaterialMixtureByVolume::BuildG4Material()",
103 G4cout <<
" Constructing new G4Material by volume: " << *mate <<
G4endl;
119 if(compMate !=
nullptr)
123 totalfd += theFractionsByWeight[ii];
129 "is not a material !";
130 G4Exception(
"G4tgbMaterialMixtureByVolume::BuildG4Material()",
136 theFractionsByWeight[ii] /= totalfd;
140 G4cout <<
" G4tgbMaterialMixtureByVolume::TransformToFractionsByWeight()"
141 <<
" Component " << ii <<
" : "
144 <<
" FractionByWeight= " << theFractionsByWeight[ii] <<
G4endl;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4double GetDensity() const
void AddMaterial(G4Material *material, G4double fraction)
const G4String & GetName() const
G4Material * FindOrBuildG4Material(const G4String &name, G4bool bMustExist=true)
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
const G4State & GetState() const
static G4int GetVerboseLevel()