60double G4Molecule::fgTemperature = 310*kelvin;
79 G4cout<<
"The user track information is a molecule"<<
G4endl;
86 fMolecularConfiguration = right . fMolecularConfiguration;
91 if (&right==
this)
return *
this;
93 fMolecularConfiguration = right . fMolecularConfiguration;
99 if(fMolecularConfiguration==right.fMolecularConfiguration)
108 return !(*
this == right);
118 return fMolecularConfiguration < right.fMolecularConfiguration ;
121void G4Molecule::Init()
123 fMolecularConfiguration = 0 ;
124 fDynamicParticle = 0;
150 fMolecularConfiguration = 0;
151 fDynamicParticle = 0;
181 if (OrbitalToFill != 0)
184 dynElectronOccupancy.
AddElectron(OrbitalToFill-1,1);
188 if (OrbitalToFill == 0)
209 if (Excitation ==
true)
216 if (Excitation ==
false)
234 fMolecularConfiguration = fMolecularConfiguration->
ExciteMolecule(ExcitedLevel);
241 fMolecularConfiguration = fMolecularConfiguration->
IonizeMolecule(IonizedLevel);
246 fMolecularConfiguration = fMolecularConfiguration->
AddElectron(orbit,number);
251 fMolecularConfiguration = fMolecularConfiguration->
RemoveElectron(orbit,number);
256 fMolecularConfiguration = fMolecularConfiguration->
MoveOneElectron(orbitToFree,orbitToFill);
261 return fMolecularConfiguration->
GetName();
283 G4Exception(
"G4Molecule::BuildTrack",
"Molecule001",
293 G4double xMomentum = cos(phi)* sin(theta);
294 G4double yMomentum = sin(theta)*sin(phi);
297 G4ThreeVector MomentumDirection(xMomentum, yMomentum, zMomentum);
309 fpTrack -> SetUserInformation (
this);
319 double E = (fMolecularConfiguration->
GetMass()/(c_squared))*(v*v)/2.;
326 double moleculeMass = fMolecularConfiguration->
GetMass()/(c_squared);
336 return sqrt(3*k_Boltzmann*fgTemperature/moleculeMass);
377 return fMolecularConfiguration->
GetCharge() ;
382 fMolecularConfiguration->
SetMass(aMass);
387 return fMolecularConfiguration->
GetMass();
G4IT * GetIT(const G4Track *track)
G4Molecule * GetMolecule(const G4Track &track)
G4DLLIMPORT G4Allocator< G4Molecule > aMoleculeAllocator
G4DLLIMPORT std::ostream G4cout
G4int AddElectron(G4int orbit, G4int number=1)
G4int RemoveElectron(G4int orbit, G4int number=1)
virtual void Print() const
void SetDiffusionCoefficient(G4double)
void SetDecayTime(G4double)
G4MolecularConfiguration * RemoveElectron(G4int, G4int number=1)
const std::vector< const G4MolecularDecayChannel * > * GetDecayChannel() const
const G4String & GetName() const
static G4MolecularConfiguration * GetMolecularConfiguration(const G4MoleculeDefinition *, const G4ElectronOccupancy &electronOccupancy)
const G4MoleculeDefinition * GetDefinition() const
G4MolecularConfiguration * MoveOneElectron(G4int, G4int)
G4double GetDecayTime() const
void SetVanDerVaalsRadius(G4double)
G4int GetMoleculeID() const
G4MolecularConfiguration * IonizeMolecule(G4int)
G4MolecularConfiguration * AddElectron(G4int orbit, G4int n=1)
const G4ElectronOccupancy * GetElectronOccupancy() const
G4MolecularConfiguration * ExciteMolecule(G4int)
G4double GetNbElectrons() const
G4double GetVanDerVaalsRadius() const
G4double GetDiffusionCoefficient() const
G4int GetAtomsNumber() const
virtual void AddAMoleculeAtTime(const G4Molecule &, G4double)
static G4MoleculeCounter * GetMoleculeCounter()
virtual void RemoveAMoleculeAtTime(const G4Molecule &, G4double)
const G4ElectronOccupancy * GetGroundStateElectronOccupancy() const
void IonizeMolecule(G4int)
void RemoveElectron(G4int, G4int number=1)
void AddElectron(G4int orbit, G4int n=1)
G4bool operator<(const G4Molecule &right) const
G4double GetVanDerVaalsRadius() const
void SetElectronOccupancy(const G4ElectronOccupancy *)
void MoveOneElectron(G4int, G4int)
G4int GetMoleculeID() const
G4double GetKineticEnergy() const
G4Molecule(const G4Molecule &)
G4int GetAtomsNumber() const
G4bool operator==(const G4Molecule &right) const
void SetVanDerVaalsRadius(G4double)
G4double GetDiffusionVelocity() const
void SetDecayTime(G4double)
const G4String & GetName() const
G4Track * BuildTrack(G4double globalTime, const G4ThreeVector &Position)
void ExciteMolecule(G4int)
G4bool operator!=(const G4Molecule &right) const
void SetDiffusionCoefficient(G4double)
const G4ElectronOccupancy * GetElectronOccupancy() const
G4Molecule & operator=(const G4Molecule &right)
const G4MoleculeDefinition * GetDefinition() const
G4double GetDiffusionCoefficient() const
G4double GetDecayTime() const
const std::vector< const G4MolecularDecayChannel * > * GetDecayChannel() const
G4double GetNbElectrons() const
G4double GetGlobalTime() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)