70 double diffusion_coefficient)
79 diffusion_coefficient);
86 description <<
"The molecule definition " << name
87 <<
" was already recorded in the table" <<
G4endl;
88 G4Exception(
"G4MoleculeTable::CreateMoleculeDefinition",
104 definition = it->second;
110 description <<
"The molecule definition " << name
111 <<
" was NOT recorded in the table" <<
G4endl;
112 G4Exception(
"G4MoleculeTable::CreateMoleculeModel",
113 "MOLECULE_DEFINITION_NOT_CREATED",
128 if(species == 0 && mustExist)
132 description <<
"The configuration " << name
133 <<
" was not recorded in the table" <<
G4endl;
169 description <<
"The molecule definition " << name
170 <<
" was already recorded in the table" <<
G4endl;
171 G4Exception(
"G4MoleculeTable::CreateMoleculeDefinition",
194 bool alreadyCreated(
false);
212 bool alreadyCreated(
false);
230 double diffusion_coefficient)
232 bool alreadyCreated(
false);
241 if(diffusion_coefficient!=-1)
256 bool alreadyCreated(
false);
The pointer G4MolecularConfiguration will be shared by all the molecules having the same molecule def...
void Insert(G4MoleculeDefinition *)
G4MoleculeDefinition * GetMoleculeDefinition(const G4String &, bool mustExist=true)
std::ostringstream G4ExceptionDescription
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4String &label)
static std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
static int GetNumberOfSpecies()
static void FinalizeAll()
static G4MoleculeTable * Instance()
void SetDiffusionCoefficient(G4double)
Sets the diffusion coefficient D of the molecule used in diffusion processes to calculate the mean sq...
static G4MoleculeTable * fpgMoleculeTable
G4ConfigurationIterator GetConfigurationIterator()
static G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4MolecularConfiguration * CreateConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *molDef, const G4String &configurationLabel, const G4ElectronOccupancy &eOcc)
int GetNumberOfDefinedSpecies()
static G4MoleculeTable * GetMoleculeTable()
const G4String & GetName() const
MoleculeDefTable fMoleculeDefTable
void PrepareMolecularConfiguration()
virtual ~G4MoleculeTable()
G4MoleculeIterator< G4MolecularConfiguration > G4ConfigurationIterator
static G4MolecularConfiguration * CreateMolecularConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *, bool &wasAlreadyCreated)
G4MoleculeDefinition * CreateMoleculeDefinition(const G4String &userIdentifier, double diffusion_coefficient)
G4MolecularConfiguration * GetConfiguration(const G4String &, bool mustExist=true)