46#ifndef G4MolecularConfiguration_
47#define G4MolecularConfiguration_ 1
68 if (totalOcc1 != totalOcc2)
70 return totalOcc1 < totalOcc2;
74 G4int occupancy1 = -1;
75 G4int occupancy2 = -1;
77 for (
G4int i = 0; i < sizeOrbit; i++)
82 if (occupancy1 != occupancy2)
84 return occupancy1 < occupancy2;
132 bool& wasAlreadyCreated);
139 bool& wasAlreadyCreated);
146 bool& wasAlreadyCreated);
152 bool& wasAlreadyCreated);
251 double temperature)
const;
443 typedef std::map<G4String, G4MolecularConfiguration*>
UserIDTable;
589 double temperature)
const
G4double(* function)(G4double)
G4int GetTotalOccupancy() const
G4int GetOccupancy(G4int orbit) const
G4int GetSizeOfOrbit() const
void RemoveMolecularConfigurationFromTable(G4MolecularConfiguration *)
std::vector< G4MolecularConfiguration * > fMolConfPerID
std::map< const G4MoleculeDefinition *, ChargeTable > MolChargeConfTable
MolElectronConfTable fElecOccTable
const G4ElectronOccupancy * FindCommonElectronOccupancy(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
G4int Insert(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc, G4MolecularConfiguration *molConf)
std::map< const G4MoleculeDefinition *, std::map< const G4String, G4MolecularConfiguration * > > MolLabelConfTable
const std::vector< G4MolecularConfiguration * > & GetAllSpecies()
G4MolecularConfigurationManager()
std::map< const G4String, G4MolecularConfiguration * > LabelTable
void RecordNewlyLabeledConfiguration(G4MolecularConfiguration *molConf)
int GetNumberOfCreatedSpecies()
G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
std::map< G4String, G4MolecularConfiguration * > UserIDTable
std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
MolLabelConfTable fLabelTable
static G4Mutex fManagerCreationMutex
G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
std::map< const G4MoleculeDefinition *, ElectronOccupancyTable > MolElectronConfTable
std::map< G4ElectronOccupancy, G4MolecularConfiguration *, comparator > ElectronOccupancyTable
MolChargeConfTable fChargeTable
~G4MolecularConfigurationManager()
void AddUserID(const G4String &name, G4MolecularConfiguration *molecule)
std::map< int, G4MolecularConfiguration * > ChargeTable
G4Mutex fMoleculeCreationMutex
void SetDiffusionCoefficient(G4double)
void SetDecayTime(G4double)
static G4MolecularConfiguration * Load(std::istream &)
static int GetNumberOfSpecies()
void CreateDefaultDiffCoeffParam()
void SetUserID(const G4String &userID)
static G4MolecularConfigurationManager * GetManager()
void MakeExceptionIfFinalized()
const G4String & GetName() const
const G4ElectronOccupancy * fElectronOccupancy
G4MolecularConfiguration * IonizeMolecule(G4int) const
static void FinalizeAll()
void SetLabel(const G4String &)
const G4String & GetLabel() const
G4MolecularConfiguration * ChangeConfiguration(const G4ElectronOccupancy &newElectronOccupancy) const
G4MolecularConfiguration & operator=(G4MolecularConfiguration &right)
G4MolecularConfiguration * RemoveElectron(G4int, G4int number=1) const
const G4MoleculeDefinition * GetDefinition() const
std::function< double(const G4Material *, double, const G4MolecularConfiguration *)> G4DiffCoeffParam
static void ScaleAllDiffusionCoefficientsOnWater(double temperature_K)
G4double fDynDiffusionCoefficient
G4int GetFakeParticleID() const
static std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
static void DeleteManager()
G4MolecularConfiguration * MoveOneElectron(G4int, G4int) const
G4double GetDecayTime() const
~G4MolecularConfiguration()
void SetVanDerVaalsRadius(G4double)
G4double fDynVanDerVaalsRadius
G4int GetMoleculeID() const
G4MolecularConfiguration(const G4MolecularConfiguration &)
static double ReturnDefaultDiffCoeff(const G4Material *, double, const G4MolecularConfiguration *molConf)
void Unserialize(std::istream &)
const G4MoleculeDefinition * fMoleculeDefinition
static double fgTemperature
void AddDiffCoeffParameterization(const G4DiffCoeffParam &)
static void SetGlobalTemperature(G4double)
void Serialize(std::ostream &)
static G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *)
const G4ElectronOccupancy * GetElectronOccupancy() const
void CheckElectronOccupancy(const char *line) const
const std::vector< const G4MolecularDissociationChannel * > * GetDissociationChannels() const
const G4String & GetFormatedName() const
static G4MolecularConfigurationManager * fgManager
const G4String & GetUserID() const
G4MolecularConfiguration(const G4MoleculeDefinition *, const G4ElectronOccupancy &, const G4String &label="")
G4double GetNbElectrons() const
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4String &label)
G4MolecularConfiguration * ExciteMolecule(G4int) const
G4double GetVanDerVaalsRadius() const
static double DiffCoeffWater(double temperature_K)
G4DiffCoeffParam fDiffParam
G4MolecularConfiguration * AddElectron(G4int orbit, G4int n=1) const
G4double GetDiffusionCoefficient() const
static G4double GetGlobalTemperature()
static G4MolecularConfiguration * CreateMolecularConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *, bool &wasAlreadyCreated)
G4int GetAtomsNumber() const
const char * name(G4int ptype)
bool operator()(const G4ElectronOccupancy &occ1, const G4ElectronOccupancy &occ2) const