File indexing completed on 2025-02-23 09:21:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #include "ScavengerMolecules.hh"
0034
0035 #include "G4ParticleTable.hh"
0036 #include "G4PhysicalConstants.hh"
0037 #include "G4SystemOfUnits.hh"
0038
0039
0040
0041 G4DMSO* G4DMSO::fDMSOInstance = 0;
0042
0043 G4DMSO* G4DMSO::Definition()
0044 {
0045 if (fDMSOInstance != 0) return fDMSOInstance;
0046 const G4String name = "DMSO^0";
0047
0048 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0049 G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0050 if (anInstance == 0) {
0051 const G4String formatedName = "DMSO^{0}";
0052
0053 G4double mass = 31.99546 * g / Avogadro * c_squared;
0054 anInstance =
0055 new G4MoleculeDefinition(name, mass, 2.4e-9 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0056
0057 ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0058 ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0059 }
0060 fDMSOInstance = static_cast<G4DMSO*>(anInstance);
0061 return fDMSOInstance;
0062 }
0063
0064
0065
0066 G4OxygenB* G4OxygenB::fOxygenBInstance = 0;
0067
0068 G4OxygenB* G4OxygenB::Definition()
0069 {
0070 if (fOxygenBInstance != 0) return fOxygenBInstance;
0071 const G4String name = "Oxygen(B)";
0072
0073 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0074 G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0075 if (anInstance == 0) {
0076 const G4String formatedName = "Oxygen(B)^{0}";
0077
0078 G4double mass = 31.99546 * g / Avogadro * c_squared;
0079 anInstance =
0080 new G4MoleculeDefinition(name, mass, 2.4e-9 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0081
0082 ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0083 ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0084 }
0085 fOxygenBInstance = static_cast<G4OxygenB*>(anInstance);
0086 return fOxygenBInstance;
0087 }
0088
0089