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;
102 typedef std::function<double(
const G4Material*,
132 bool& wasAlreadyCreated);
139 bool& wasAlreadyCreated);
146 bool& wasAlreadyCreated);
152 bool& wasAlreadyCreated);
251 double temperature)
const;
346 fMoleculeCreationMutex()
348 fLastMoleculeID = -1;
354 return fLastMoleculeID+1;
412 return fMolConfPerID;
427 ElectronOccupancyTable > MolElectronConfTable;
428 MolElectronConfTable fElecOccTable;
431 typedef std::map<int,
434 ChargeTable> MolChargeConfTable;
435 MolChargeConfTable fChargeTable;
441 std::map<const G4String, G4MolecularConfiguration*> > MolLabelConfTable;
442 MolLabelConfTable fLabelTable;
445 typedef std::map<G4String, G4MolecularConfiguration*> UserIDTable;
446 UserIDTable fUserIDTable;
449 std::vector<G4MolecularConfiguration*> fMolConfPerID;
453 G4int fLastMoleculeID;
454 G4Mutex fMoleculeCreationMutex;
591 double temperature)
const
593 return fDiffParam(material, temperature,
this);
G4int GetTotalOccupancy() const
G4int GetOccupancy(G4int orbit) const
G4int GetSizeOfOrbit() const
void RemoveMolecularConfigurationFromTable(G4MolecularConfiguration *)
const G4ElectronOccupancy * FindCommonElectronOccupancy(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
G4int Insert(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc, G4MolecularConfiguration *molConf)
const std::vector< G4MolecularConfiguration * > & GetAllSpecies()
G4MolecularConfigurationManager()
void RecordNewlyLabeledConfiguration(G4MolecularConfiguration *molConf)
int GetNumberOfCreatedSpecies()
G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
std::map< G4String, G4MolecularConfiguration * > & GetUserIDTable()
static G4Mutex fManagerCreationMutex
G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *molDef, const G4ElectronOccupancy &eOcc)
~G4MolecularConfigurationManager()
void AddUserID(const G4String &name, G4MolecularConfiguration *molecule)
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
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
bool operator()(const G4ElectronOccupancy &occ1, const G4ElectronOccupancy &occ2) const