Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // 27 // Authors: J. Naoki D. Kondo (UCSF, US) 27 // Authors: J. Naoki D. Kondo (UCSF, US) 28 // J. Ramos-Mendez and B. Faddegon (U 28 // J. Ramos-Mendez and B. Faddegon (UCSF, US) 29 // 29 // 30 // 30 // 31 /// \file PlasmidMolecules.cc 31 /// \file PlasmidMolecules.cc 32 /// \brief Implementation of the additional Pl 32 /// \brief Implementation of the additional Plasmid DNA molecules 33 33 34 #include "PlasmidMolecules.hh" 34 #include "PlasmidMolecules.hh" 35 << 36 #include "G4ParticleTable.hh" << 37 #include "G4PhysicalConstants.hh" 35 #include "G4PhysicalConstants.hh" 38 #include "G4SystemOfUnits.hh" 36 #include "G4SystemOfUnits.hh" >> 37 #include "G4ParticleTable.hh" 39 38 40 //....oooOO0OOooo........oooOO0OOooo........oo 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 41 // Deoxyribose 40 // Deoxyribose 42 41 43 G4DNA_Deoxyribose* G4DNA_Deoxyribose::fDeoxyri 42 G4DNA_Deoxyribose* G4DNA_Deoxyribose::fDeoxyriboseInstance = 0; 44 G4DNA_Deoxyribose* G4DNA_Deoxyribose::Definiti 43 G4DNA_Deoxyribose* G4DNA_Deoxyribose::Definition() 45 { 44 { >> 45 46 if (fDeoxyriboseInstance != 0) return fDeoxy 46 if (fDeoxyriboseInstance != 0) return fDeoxyriboseInstance; 47 const G4String name = "DNA_Deoxyribose"; 47 const G4String name = "DNA_Deoxyribose"; 48 48 49 G4ParticleTable* pTable = G4ParticleTable::G 49 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable(); 50 G4ParticleDefinition* anInstance = pTable->F 50 G4ParticleDefinition* anInstance = pTable->FindParticle(name); 51 if (anInstance == 0) { 51 if (anInstance == 0) { 52 const G4String formatedName = "DNA_Deoxy^{ 52 const G4String formatedName = "DNA_Deoxy^{0}"; 53 53 54 G4double mass = 31.99546 * g / Avogadro * 54 G4double mass = 31.99546 * g / Avogadro * c_squared; 55 anInstance = << 55 anInstance = new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 56 new G4MoleculeDefinition(name, mass, 1e- << 56 1.7 * angstrom, 2); 57 57 58 ((G4MoleculeDefinition*)anInstance)->SetLe << 58 ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(0); 59 ((G4MoleculeDefinition*)anInstance)->SetFo << 59 ((G4MoleculeDefinition*) anInstance)->SetFormatedName(formatedName); 60 } 60 } 61 fDeoxyriboseInstance = static_cast<G4DNA_Deo 61 fDeoxyriboseInstance = static_cast<G4DNA_Deoxyribose*>(anInstance); 62 return fDeoxyriboseInstance; 62 return fDeoxyriboseInstance; 63 } 63 } 64 64 65 //....oooOO0OOooo........oooOO0OOooo........oo 65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 66 // OH_Damamged_Deoxyribose 66 // OH_Damamged_Deoxyribose 67 67 68 G4DNA_DamagedDeoxyriboseOH* G4DNA_DamagedDeoxy << 68 G4DNA_DamagedDeoxyriboseOH* >> 69 G4DNA_DamagedDeoxyriboseOH::fDamagedDeoxyriboseOHInstance = 0; 69 G4DNA_DamagedDeoxyriboseOH* G4DNA_DamagedDeoxy 70 G4DNA_DamagedDeoxyriboseOH* G4DNA_DamagedDeoxyriboseOH::Definition() 70 { 71 { 71 if (fDamagedDeoxyriboseOHInstance != 0) retu 72 if (fDamagedDeoxyriboseOHInstance != 0) return fDamagedDeoxyriboseOHInstance; 72 const G4String name = "DNA_DamagedDeoxyribos 73 const G4String name = "DNA_DamagedDeoxyriboseOH"; 73 74 74 G4ParticleTable* pTable = G4ParticleTable::G 75 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable(); 75 G4ParticleDefinition* anInstance = pTable->F 76 G4ParticleDefinition* anInstance = pTable->FindParticle(name); 76 if (anInstance == 0) { 77 if (anInstance == 0) { 77 const G4String formatedName = "DamagedDeox 78 const G4String formatedName = "DamagedDeoxyriboseOH^{0}"; 78 79 79 G4double mass = 31.99546 * g / Avogadro * 80 G4double mass = 31.99546 * g / Avogadro * c_squared; 80 anInstance = << 81 anInstance = new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 81 new G4MoleculeDefinition(name, mass, 1e- << 82 1.7 * angstrom, 2); 82 83 83 ((G4MoleculeDefinition*)anInstance)->SetLe << 84 ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(0); 84 ((G4MoleculeDefinition*)anInstance)->SetFo << 85 ((G4MoleculeDefinition*) anInstance)->SetFormatedName(formatedName); 85 } 86 } 86 fDamagedDeoxyriboseOHInstance = static_cast< << 87 fDamagedDeoxyriboseOHInstance = >> 88 static_cast<G4DNA_DamagedDeoxyriboseOH*>(anInstance); 87 return fDamagedDeoxyriboseOHInstance; 89 return fDamagedDeoxyriboseOHInstance; 88 } 90 } 89 91 90 //....oooOO0OOooo........oooOO0OOooo........oo 92 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 91 // H_Damamged_Deoxyribose 93 // H_Damamged_Deoxyribose 92 94 93 G4DNA_DamagedDeoxyriboseH* G4DNA_DamagedDeoxyr << 95 G4DNA_DamagedDeoxyriboseH* >> 96 G4DNA_DamagedDeoxyriboseH::fDamagedDeoxyriboseHInstance = 0; 94 G4DNA_DamagedDeoxyriboseH* G4DNA_DamagedDeoxyr 97 G4DNA_DamagedDeoxyriboseH* G4DNA_DamagedDeoxyriboseH::Definition() 95 { 98 { 96 if (fDamagedDeoxyriboseHInstance != 0) retur 99 if (fDamagedDeoxyriboseHInstance != 0) return fDamagedDeoxyriboseHInstance; 97 const G4String name = "DNA_DamagedDeoxyribos 100 const G4String name = "DNA_DamagedDeoxyriboseH"; 98 101 99 G4ParticleTable* pTable = G4ParticleTable::G 102 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable(); 100 G4ParticleDefinition* anInstance = pTable->F 103 G4ParticleDefinition* anInstance = pTable->FindParticle(name); 101 if (anInstance == 0) { 104 if (anInstance == 0) { 102 const G4String formatedName = "DamagedDeox 105 const G4String formatedName = "DamagedDeoxyriboseH^{0}"; 103 106 104 G4double mass = 31.99546 * g / Avogadro * 107 G4double mass = 31.99546 * g / Avogadro * c_squared; 105 anInstance = << 108 anInstance = new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 106 new G4MoleculeDefinition(name, mass, 1e- << 109 1.7 * angstrom, 2); 107 110 108 ((G4MoleculeDefinition*)anInstance)->SetLe << 111 ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(0); 109 ((G4MoleculeDefinition*)anInstance)->SetFo << 112 ((G4MoleculeDefinition*) anInstance)->SetFormatedName(formatedName); 110 } 113 } 111 fDamagedDeoxyriboseHInstance = static_cast<G << 114 fDamagedDeoxyriboseHInstance = >> 115 static_cast<G4DNA_DamagedDeoxyriboseH*>(anInstance); 112 return fDamagedDeoxyriboseHInstance; 116 return fDamagedDeoxyriboseHInstance; 113 } 117 } 114 118 115 //....oooOO0OOooo........oooOO0OOooo........oo 119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 116 // Eaq_Damamged_Deoxyribose 120 // Eaq_Damamged_Deoxyribose 117 121 118 G4DNA_DamagedDeoxyriboseEAQ* G4DNA_DamagedDeox << 122 G4DNA_DamagedDeoxyriboseEAQ* >> 123 G4DNA_DamagedDeoxyriboseEAQ::fDamagedDeoxyriboseEAQInstance = 0; 119 G4DNA_DamagedDeoxyriboseEAQ* G4DNA_DamagedDeox 124 G4DNA_DamagedDeoxyriboseEAQ* G4DNA_DamagedDeoxyriboseEAQ::Definition() 120 { 125 { 121 if (fDamagedDeoxyriboseEAQInstance != 0) ret 126 if (fDamagedDeoxyriboseEAQInstance != 0) return fDamagedDeoxyriboseEAQInstance; 122 const G4String name = "DNA_DamagedDeoxyribos 127 const G4String name = "DNA_DamagedDeoxyriboseEAQ"; 123 // search in particle table] 128 // search in particle table] 124 G4ParticleTable* pTable = G4ParticleTable::G 129 G4ParticleTable* pTable = G4ParticleTable::GetParticleTable(); 125 G4ParticleDefinition* anInstance = pTable->F 130 G4ParticleDefinition* anInstance = pTable->FindParticle(name); 126 if (anInstance == 0) { 131 if (anInstance == 0) { 127 const G4String formatedName = "DamagedDeox 132 const G4String formatedName = "DamagedDeoxyriboseEAQ^{0}"; 128 133 129 G4double mass = 31.99546 * g / Avogadro * 134 G4double mass = 31.99546 * g / Avogadro * c_squared; 130 anInstance = << 135 anInstance = new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 131 new G4MoleculeDefinition(name, mass, 1e- << 136 1.7 * angstrom, 2); 132 137 133 ((G4MoleculeDefinition*)anInstance)->SetLe << 138 ((G4MoleculeDefinition*) anInstance)->SetLevelOccupation(0); 134 ((G4MoleculeDefinition*)anInstance)->SetFo << 139 ((G4MoleculeDefinition*) anInstance)->SetFormatedName(formatedName); 135 } 140 } 136 fDamagedDeoxyriboseEAQInstance = static_cast << 141 fDamagedDeoxyriboseEAQInstance = >> 142 static_cast<G4DNA_DamagedDeoxyriboseEAQ*>(anInstance); 137 return fDamagedDeoxyriboseEAQInstance; 143 return fDamagedDeoxyriboseEAQInstance; 138 } 144 } 139 145 140 //....oooOO0OOooo........oooOO0OOooo........oo 146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 141 147