71 double diffusion_coefficient)
74 diffusion_coefficient);
87 definition = it->second;
93 description <<
"The molecule definition " << name
94 <<
" was NOT recorded in the table" <<
G4endl;
96 "MOLECULE_DEFINITION_NOT_CREATED",
111 if(species ==
nullptr && mustExist)
115 description <<
"The configuration " << name
116 <<
" was not recorded in the table" <<
G4endl;
152 description <<
"The molecule definition " << name
153 <<
" was already recorded in the table" <<
G4endl;
154 G4Exception(
"G4MoleculeTable::CreateMoleculeDefinition",
177 bool alreadyCreated(
false);
195 bool alreadyCreated(
false);
213 double diffusion_coefficient)
215 bool alreadyCreated(
false);
224 if(diffusion_coefficient!=-1)
239 bool alreadyCreated(
false);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4MoleculeIterator< G4MolecularConfiguration > G4ConfigurationIterator
void SetDiffusionCoefficient(G4double)
static int GetNumberOfSpecies()
static void FinalizeAll()
static std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
static G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *)
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4String &label)
static G4MolecularConfiguration * CreateMolecularConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *, bool &wasAlreadyCreated)
const G4String & GetName() const
static G4MoleculeTable * GetMoleculeTable()
G4MolecularConfiguration * GetConfiguration(const G4String &, bool mustExist=true)
G4MolecularConfiguration * CreateConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *molDef, const G4String &configurationLabel, const G4ElectronOccupancy &eOcc)
int GetNumberOfDefinedSpecies()
virtual ~G4MoleculeTable()
G4MoleculeDefinition * CreateMoleculeDefinition(const G4String &userIdentifier, double diffusion_coefficient)
G4MoleculeDefinition * GetMoleculeDefinition(const G4String &, bool mustExist=true)
void PrepareMolecularConfiguration()
void Insert(G4MoleculeDefinition *)
MoleculeDefTable fMoleculeDefTable
static G4MoleculeTable * Instance()
G4ConfigurationIterator GetConfigurationIterator()
static G4MoleculeTable * fpgMoleculeTable