Geant4.10
|
#include <CCalMaterialFactory.hh>
Public Types | |
enum | MatDescription { byWeight, byVolume, byAtomic } |
Public Member Functions | |
~CCalMaterialFactory () | |
G4Material * | findMaterial (const G4String &) const |
G4Element * | findElement (const G4String &) const |
G4Element * | addElement (const G4String &, const G4String &, G4double, G4double, G4double) |
G4Material * | addMaterial (const G4String &nam, G4double density, G4int nconst, G4String mats[], G4double prop[], MatDescription md=byWeight) |
void | readElements (const G4String &) |
void | readMaterials (const G4String &) |
Static Public Member Functions | |
static CCalMaterialFactory * | getInstance (const G4String &, const G4String &) |
static CCalMaterialFactory * | getInstance (const G4String &) |
static CCalMaterialFactory * | getInstance () |
Protected Member Functions | |
void | readElements (std::ifstream &) |
void | readMaterials (std::ifstream &) |
Definition at line 47 of file CCalMaterialFactory.hh.
CCalMaterialFactory::~CCalMaterialFactory | ( | ) |
Definition at line 96 of file CCalMaterialFactory.cc.
G4Element * CCalMaterialFactory::addElement | ( | const G4String & | name, |
const G4String & | symbol, | ||
G4double | Z, | ||
G4double | A, | ||
G4double | density | ||
) |
Definition at line 160 of file CCalMaterialFactory.cc.
References g(), G4cout, G4endl, and python.hepunit::mole.
Referenced by readElements().
G4Material * CCalMaterialFactory::addMaterial | ( | const G4String & | nam, |
G4double | density, | ||
G4int | nconst, | ||
G4String | mats[], | ||
G4double | prop[], | ||
MatDescription | md = byWeight |
||
) |
Definition at line 177 of file CCalMaterialFactory.cc.
References findMaterial().
Definition at line 147 of file CCalMaterialFactory.cc.
References G4cout, G4endl, and G4Element::GetElementTable().
Referenced by findMaterial().
G4Material * CCalMaterialFactory::findMaterial | ( | const G4String & | mat | ) | const |
Definition at line 111 of file CCalMaterialFactory.cc.
References G4Material::AddElement(), python.hepunit::cm3, CCalMaterial::Density(), CCalMaterial::Element(), findElement(), g(), G4cerr, G4cout, G4endl, CCalMaterial::Name(), CCalMaterial::NElements(), and CCalMaterial::Weight().
Referenced by addMaterial(), CCalG4Hcal::constructAbsorberLayer(), CCalG4Hall::constructIn(), CCalG4Hcal::constructIn(), and CCalG4Hcal::constructScintillatorLayer().
|
static |
Definition at line 53 of file CCalMaterialFactory.cc.
References G4cerr, G4endl, and getInstance().
|
static |
Definition at line 74 of file CCalMaterialFactory.cc.
References getInstance().
|
static |
Definition at line 79 of file CCalMaterialFactory.cc.
References G4cerr, and G4endl.
Referenced by CCalDetectorConstruction::Construct(), CCalG4Hcal::constructAbsorberLayer(), CCalG4Hall::constructIn(), CCalG4Hcal::constructIn(), CCalG4Hcal::constructScintillatorLayer(), and getInstance().
Definition at line 188 of file CCalMaterialFactory.cc.
References findDO(), G4cerr, G4cout, G4endl, and openGeomFile().
|
protected |
Definition at line 338 of file CCalMaterialFactory.cc.
References addElement(), density, G4cout, G4endl, G4Element::GetElementTable(), jump(), readName(), and symbol.
Definition at line 208 of file CCalMaterialFactory.cc.
References findDO(), G4cerr, G4cout, G4endl, and openGeomFile().
|
protected |
Definition at line 365 of file CCalMaterialFactory.cc.
References byAtomic, byVolume, byWeight, g(), G4cout, G4endl, jump(), python.hepunit::kelvin, kStateGas, python.hepunit::mole, pascal, readName(), and python.hepunit::universe_mean_density.