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);
227 const std::vector<const G4MolecularDissociationChannel*>*
252 double temperature)
const;
433 typedef std::map<
int,
447 typedef std::map<G4String, G4MolecularConfiguration*>
UserIDTable;
593 double temperature)
const
595 return fDiffParam(material, temperature,
this);
std::map< const G4MoleculeDefinition *, ElectronOccupancyTable > MolElectronConfTable
void CheckElectronOccupancy(const char *line) const
G4double(* function)(G4double)
static double DiffCoeffWater(double temperature_K)
static int GetNumberOfSpecies()
const G4MoleculeDefinition * GetDefinition() const
void SetDecayTime(G4double)
~G4MolecularConfigurationManager()
G4MolecularConfiguration * ChangeConfiguration(const G4ElectronOccupancy &newElectronOccupancy)
std::map< G4String, G4MolecularConfiguration * > UserIDTable
static G4Mutex fManagerCreationMutex
const G4String & GetLabel() const
static void DeleteManager()
G4double GetDiffusionCoefficient() const
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4String &label)
static G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *)
G4int GetSizeOfOrbit() const
G4double GetDecayTime() const
static G4MolecularConfiguration * Load(std::istream &)
std::map< G4ElectronOccupancy, G4MolecularConfiguration *, comparator > ElectronOccupancyTable
static void FinalizeAll()
G4double fDynVanDerVaalsRadius
void RemoveMolecularConfigurationFromTable(G4MolecularConfiguration *)
G4int GetOccupancy(G4int orbit) const
G4MolecularConfiguration * RemoveElectron(G4int, G4int number=1)
G4double GetNbElectrons() const
static double fgTemperature
static std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
MolElectronConfTable fElecOccTable
static void SetGlobalTemperature(G4double)
void Serialize(std::ostream &)
void AddUserID(const G4String &name, G4MolecularConfiguration *molecule)
const G4String & GetFormatedName() const
void CreateDefaultDiffCoeffParam()
void SetUserID(const G4String &userID)
bool operator()(const G4ElectronOccupancy &occ1, const G4ElectronOccupancy &occ2) const
G4int GetFakeParticleID() const
G4MolecularConfiguration * MoveOneElectron(G4int, G4int)
std::map< int, G4MolecularConfiguration * > ChargeTable
void SetLabel(const G4String &)
const G4MoleculeDefinition * fMoleculeDefinition
std::map< const G4String, G4MolecularConfiguration * > LabelTable
void Unserialize(std::istream &)
static G4MolecularConfigurationManager * fgManager
void RecordNewlyLabeledConfiguration(G4MolecularConfiguration *molConf)
G4int GetTotalOccupancy() const
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static double ReturnDefaultDiffCoeff(const G4Material *, double, const G4MolecularConfiguration *molConf)
std::function< double(const G4Material *, double, const G4MolecularConfiguration *)> G4DiffCoeffParam
const G4ElectronOccupancy * fElectronOccupancy
G4MolecularConfiguration * AddElectron(G4int orbit, G4int n=1)
G4int GetAtomsNumber() const
void SetDiffusionCoefficient(G4double)
void MakeExceptionIfFinalized()
G4MolecularConfiguration * IonizeMolecule(G4int)
G4MolecularConfiguration(const G4MoleculeDefinition *, const G4ElectronOccupancy &, const G4String &label="")
G4DiffCoeffParam fDiffParam
std::vector< G4MolecularConfiguration * > fMolConfPerID
static G4double GetGlobalTemperature()
static G4MolecularConfiguration * CreateMolecularConfiguration(const G4String &userIdentifier, const G4MoleculeDefinition *, bool &wasAlreadyCreated)
G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
const G4ElectronOccupancy * GetElectronOccupancy() const
const G4ElectronOccupancy * FindCommonElectronOccupancy(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
const std::vector< G4MolecularConfiguration * > & GetAllSpecies()
static void ScaleAllDiffusionCoefficientsOnWater(double temperature_K)
G4MolecularConfiguration & operator=(G4MolecularConfiguration &right)
MolLabelConfTable fLabelTable
G4MolecularConfigurationManager()
G4int Insert(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc, G4MolecularConfiguration *molConf)
G4double GetVanDerVaalsRadius() const
void SetVanDerVaalsRadius(G4double)
G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
G4MolecularConfiguration * ExciteMolecule(G4int)
~G4MolecularConfiguration()
std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
G4Mutex fMoleculeCreationMutex
static G4MolecularConfigurationManager * GetManager()
G4int GetMoleculeID() const
void AddDiffCoeffParameterization(const G4DiffCoeffParam &)
G4double fDynDiffusionCoefficient
const G4String & GetName() const
const std::vector< const G4MolecularDissociationChannel * > * GetDecayChannel() const
std::map< const G4MoleculeDefinition *, ChargeTable > MolChargeConfTable
MolChargeConfTable fChargeTable
const G4String & GetUserID() const
std::map< const G4MoleculeDefinition *, std::map< const G4String, G4MolecularConfiguration * > > MolLabelConfTable
int GetNumberOfCreatedSpecies()