60 double diffusion_coefficient)
67 diffusion_coefficient);
74 description <<
"The molecule definition " << name
75 <<
" was already recorded in the table" <<
G4endl;
76 G4Exception(
"G4MoleculeTable::CreateMoleculeDefinition",
85 double diffusion_coefficient)
90 diffusion_coefficient);
113 definition = it->second;
119 description <<
"The molecule defintion " << name
120 <<
" was NOT recorded in the table" <<
G4endl;
121 G4Exception(
"G4MoleculeTable::CreateMoleculeModel",
"MOLECULE_DEFINITION_NOT_CREATED",
144 description <<
"The molecule model " << name
145 <<
" was already recorded in the table" <<
G4endl;
146 G4Exception(
"G4MoleculeTable::CreateMoleculeModel",
"MODEL_ALREADY_CREATED",
153 description <<
"The molecule model " << name
154 <<
" was already recorded per ID (" <<
id<<
") in the table"
156 G4Exception(
"G4MoleculeTable::CreateMoleculeModel",
"MODEL_ALREADY_CREATED",
167 molecule = it->second;
173 description <<
"The molecule model " << name
174 <<
" was already recorded in the table" <<
G4endl;
175 G4Exception(
"G4MoleculeTable::CreateMoleculeModel",
"MODEL_ALREADY_CREATED",
187 molecule = it->second;
210 description <<
"The molecule definition " << name
211 <<
" was already recorded in the table" <<
G4endl;
212 G4Exception(
"G4MoleculeTable::CreateMoleculeDefinition",
void Insert(G4MoleculeDefinition *)
G4MoleculeDefinition * CreateMoleculeDefinition(const G4String &, double diffusion_coefficient)
void SetDiffusionCoefficient(G4double)
Sets the diffusion coefficient D of the molecule used in diffusion processes to calculate the mean sq...
G4MoleculeDefinition * GetMoleculeDefinition(const G4String &, bool mustExist=true)
std::ostringstream G4ExceptionDescription
MoleculeTable fMoleculeTable
void RecordMoleculeModel(const G4String &name, G4Molecule *)
static G4MoleculeTable * Instance()
static G4MoleculeTable * fpgMoleculeTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4Molecule * GetMoleculeModel(const G4String &, bool mustExist=true)
MoleculeTablePerID fMoleculeTablePerID
static G4MoleculeTable * GetMoleculeTable()
const G4String & GetName() const
MoleculeDefTable fMoleculeDefTable
Class Description The dynamic molecule holds all the data that change for a molecule It has a pointer...
G4Molecule * CreateMoleculeModel(const G4String &, G4MoleculeDefinition *, int charge, double diffusion_coefficient=-1)
virtual ~G4MoleculeTable()
G4int GetMoleculeID() const