47 :
G4Material(name,baseMaterial->GetDensity(),baseMaterial,
48 baseMaterial->GetState(),baseMaterial->GetTemperature(),
49 baseMaterial->GetPressure())
57 :
G4Material(name,z,a,density,state,temp,pressure)
68 :
G4Material(name,density,nComponents,state,temp,pressure)
78 :
G4Material(name,density,bmat,state,temp,pressure)
92 msg <<
"G4ExtendedMaterial <"<<
GetName()<<
"> already has extension for "
93 << extension->GetName()
94 <<
". Extension is replaced.";
97 fExtensionMap.insert(std::make_pair(extension->GetName(),std::move(extension)));
108 {
return iter->second.get(); }
112 msg <<
"G4ExtendedMAterial <"<<
GetName()<<
"> cannot find extension for "
128 flux <<
"\n Registered material extensions :\n";
131 { flux <<
" " << iter->first <<
"\n"; }
std::ostringstream G4ExceptionDescription
std::vector< ExP01TrackerHit * > a
G4VMaterialExtension * RetrieveExtension(const G4String &name)
const G4String & GetName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void Print(std::ostream &flux) const
G4ExtendedMaterial(const G4String &name, const G4Material *baseMaterial)
virtual G4bool IsExtended() const
G4MaterialExtensionMap fExtensionMap
void RegisterExtension(std::unique_ptr< G4VMaterialExtension > extension)