69 fPoint->SetNode(
nullptr);
97 G4cout <<
"The user track information is a molecule" <<
G4endl;
106 fpMolecularConfiguration = right.fpMolecularConfiguration;
113 if (&right ==
this)
return *
this;
114 fpMolecularConfiguration = right.fpMolecularConfiguration;
122 if (fpMolecularConfiguration == right.fpMolecularConfiguration)
133 return !(*
this == right);
144 return fpMolecularConfiguration < right.fpMolecularConfiguration;
149G4Molecule::G4Molecule()
153 fpMolecularConfiguration =
nullptr;
165 RemoveAMoleculeAtTime(fpMolecularConfiguration,
171 fpMolecularConfiguration =
nullptr;
208 if (OrbitalToFill != 0)
211 dynElectronOccupancy.
AddElectron(OrbitalToFill - 1, 1);
215 if (OrbitalToFill == 0)
221 fpMolecularConfiguration =
223 pMoleculeDefinition, dynElectronOccupancy);
227 fpMolecularConfiguration =
nullptr;
229 "G4Molecule::G4Molecule(G4MoleculeDefinition* pMoleculeDefinition, "
230 "G4int OrbitalToFree, G4int OrbitalToFill)",
231 "G4Molecule_wrong_usage_of_constructor",
233 "If you want to use this constructor, the molecule definition has to be "
234 "first defined with electron occupancies");
266 dynElectronOccupancy);
270 fpMolecularConfiguration =
nullptr;
272 "G4Molecule::G4Molecule(G4MoleculeDefinition* pMoleculeDefinition, "
273 "G4int OrbitalToFree, G4int OrbitalToFill)",
274 "G4Molecule_wrong_usage_of_constructor",
276 "If you want to use this constructor, the molecule definition has to be "
277 "first defined with electron occupancies");
285 fpMolecularConfiguration = pMolecularConfiguration;
292 fpMolecularConfiguration =
301 fpMolecularConfiguration = fpMolecularConfiguration->
ExciteMolecule(excitationLevel);
308 fpMolecularConfiguration = fpMolecularConfiguration->
IonizeMolecule(ionizationLevel);
315 fpMolecularConfiguration = fpMolecularConfiguration->
AddElectron(orbit, number);
322 fpMolecularConfiguration =
330 fpMolecularConfiguration =
338 return fpMolecularConfiguration->
GetName();
377 "A track was already assigned to this molecule");
386 G4double xMomentum = cos(phi) * sin(theta);
387 G4double yMomentum = sin(theta) * sin(phi);
390 G4ThreeVector MomentumDirection(xMomentum, yMomentum, zMomentum);
394 fpMolecularConfiguration->
GetDefinition(), MomentumDirection,
400 AddAMoleculeAtTime(fpMolecularConfiguration,
419 double E = (fpMolecularConfiguration->
GetMass() / (c_squared)) * (v * v) / 2.;
428 double moleculeMass = fpMolecularConfiguration->
GetMass() / (c_squared);
438 return sqrt(3 * k_Boltzmann *
450const vector<const G4MolecularDissociationChannel*>*
488 return fpMolecularConfiguration->
GetCharge();
495 return fpMolecularConfiguration->
GetMass();
522 double temperature)
const
532 return fpMolecularConfiguration;
539 return fpMolecularConfiguration->
GetLabel();
552 assert(fpMolecularConfiguration !=
nullptr);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4IT * GetIT(const G4Track *track)
G4Molecule * GetMolecule(const G4Track &track)
G4Allocator< G4Molecule > *& aMoleculeAllocator()
G4GLOB_DLL std::ostream G4cout
G4int AddElectron(G4int orbit, G4int number=1)
G4int RemoveElectron(G4int orbit, G4int number=1)
virtual void Print() const
const G4String & GetName() const
G4MolecularConfiguration * IonizeMolecule(G4int) const
const G4String & GetLabel() const
G4MolecularConfiguration * RemoveElectron(G4int, G4int number=1) const
const G4MoleculeDefinition * GetDefinition() const
G4int GetFakeParticleID() const
G4MolecularConfiguration * MoveOneElectron(G4int, G4int) const
G4double GetDecayTime() const
G4int GetMoleculeID() const
static G4MolecularConfiguration * GetOrCreateMolecularConfiguration(const G4MoleculeDefinition *)
const G4ElectronOccupancy * GetElectronOccupancy() const
const std::vector< const G4MolecularDissociationChannel * > * GetDissociationChannels() const
const G4String & GetFormatedName() const
G4double GetNbElectrons() const
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4String &label)
G4MolecularConfiguration * ExciteMolecule(G4int) const
G4double GetVanDerVaalsRadius() const
G4MolecularConfiguration * AddElectron(G4int orbit, G4int n=1) const
G4double GetDiffusionCoefficient() const
static G4double GetGlobalTemperature()
G4int GetAtomsNumber() const
const G4ElectronOccupancy * GetGroundStateElectronOccupancy() const
void IonizeMolecule(G4int)
void RemoveElectron(G4int, G4int number=1)
void AddElectron(G4int orbit, G4int n=1)
static G4Molecule * GetMolecule(const G4Track *)
G4bool operator<(const G4Molecule &right) const
G4double GetVanDerVaalsRadius() const
const G4MolecularConfiguration * GetMolecularConfiguration() const
void SetElectronOccupancy(const G4ElectronOccupancy *)
void MoveOneElectron(G4int, G4int)
const G4String & GetLabel() const
void ChangeConfigurationToLabel(const G4String &label)
G4int GetMoleculeID() const
G4double GetKineticEnergy() const
G4Molecule(const G4Molecule &)
const G4String & GetFormatedName() const
G4int GetAtomsNumber() const
G4bool operator==(const G4Molecule &right) const
G4int GetFakeParticleID() const
G4double GetDiffusionVelocity() const
const G4String & GetName() const
G4Track * BuildTrack(G4double globalTime, const G4ThreeVector &Position)
void ExciteMolecule(G4int)
G4bool operator!=(const G4Molecule &right) const
const G4ElectronOccupancy * GetElectronOccupancy() const
G4Molecule & operator=(const G4Molecule &right)
const G4MoleculeDefinition * GetDefinition() const
G4double GetDiffusionCoefficient() const
G4double GetDecayTime() const
const std::vector< const G4MolecularDissociationChannel * > * GetDissociationChannels() const
G4double GetNbElectrons() const
const G4ThreeVector & GetPosition() const
G4double GetGlobalTime() const
void SetUserInformation(G4VUserTrackInformation *aValue) const
static G4VMoleculeCounter * Instance()
#define G4ThreadLocalStatic