Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:53

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // Authors: J. Naoki D. Kondo (UCSF, US)
0028 //          J. Ramos-Mendez and B. Faddegon (UCSF, US)
0029 //
0030 //
0031 /// \file PlasmidMolecules.cc
0032 /// \brief Implementation of the additional Plasmid DNA molecules
0033 
0034 #include "PlasmidMolecules.hh"
0035 
0036 #include "G4ParticleTable.hh"
0037 #include "G4PhysicalConstants.hh"
0038 #include "G4SystemOfUnits.hh"
0039 
0040 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0041 // Deoxyribose
0042 
0043 G4DNA_Deoxyribose* G4DNA_Deoxyribose::fDeoxyriboseInstance = 0;
0044 G4DNA_Deoxyribose* G4DNA_Deoxyribose::Definition()
0045 {
0046   if (fDeoxyriboseInstance != 0) return fDeoxyriboseInstance;
0047   const G4String name = "DNA_Deoxyribose";
0048 
0049   G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0050   G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0051   if (anInstance == 0) {
0052     const G4String formatedName = "DNA_Deoxy^{0}";
0053 
0054     G4double mass = 31.99546 * g / Avogadro * c_squared;
0055     anInstance =
0056       new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0057 
0058     ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0059     ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0060   }
0061   fDeoxyriboseInstance = static_cast<G4DNA_Deoxyribose*>(anInstance);
0062   return fDeoxyriboseInstance;
0063 }
0064 
0065 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0066 // OH_Damamged_Deoxyribose
0067 
0068 G4DNA_DamagedDeoxyriboseOH* G4DNA_DamagedDeoxyriboseOH::fDamagedDeoxyriboseOHInstance = 0;
0069 G4DNA_DamagedDeoxyriboseOH* G4DNA_DamagedDeoxyriboseOH::Definition()
0070 {
0071   if (fDamagedDeoxyriboseOHInstance != 0) return fDamagedDeoxyriboseOHInstance;
0072   const G4String name = "DNA_DamagedDeoxyriboseOH";
0073 
0074   G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0075   G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0076   if (anInstance == 0) {
0077     const G4String formatedName = "DamagedDeoxyriboseOH^{0}";
0078 
0079     G4double mass = 31.99546 * g / Avogadro * c_squared;
0080     anInstance =
0081       new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0082 
0083     ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0084     ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0085   }
0086   fDamagedDeoxyriboseOHInstance = static_cast<G4DNA_DamagedDeoxyriboseOH*>(anInstance);
0087   return fDamagedDeoxyriboseOHInstance;
0088 }
0089 
0090 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0091 // H_Damamged_Deoxyribose
0092 
0093 G4DNA_DamagedDeoxyriboseH* G4DNA_DamagedDeoxyriboseH::fDamagedDeoxyriboseHInstance = 0;
0094 G4DNA_DamagedDeoxyriboseH* G4DNA_DamagedDeoxyriboseH::Definition()
0095 {
0096   if (fDamagedDeoxyriboseHInstance != 0) return fDamagedDeoxyriboseHInstance;
0097   const G4String name = "DNA_DamagedDeoxyriboseH";
0098 
0099   G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0100   G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0101   if (anInstance == 0) {
0102     const G4String formatedName = "DamagedDeoxyriboseH^{0}";
0103 
0104     G4double mass = 31.99546 * g / Avogadro * c_squared;
0105     anInstance =
0106       new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0107 
0108     ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0109     ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0110   }
0111   fDamagedDeoxyriboseHInstance = static_cast<G4DNA_DamagedDeoxyriboseH*>(anInstance);
0112   return fDamagedDeoxyriboseHInstance;
0113 }
0114 
0115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
0116 // Eaq_Damamged_Deoxyribose
0117 
0118 G4DNA_DamagedDeoxyriboseEAQ* G4DNA_DamagedDeoxyriboseEAQ::fDamagedDeoxyriboseEAQInstance = 0;
0119 G4DNA_DamagedDeoxyriboseEAQ* G4DNA_DamagedDeoxyriboseEAQ::Definition()
0120 {
0121   if (fDamagedDeoxyriboseEAQInstance != 0) return fDamagedDeoxyriboseEAQInstance;
0122   const G4String name = "DNA_DamagedDeoxyriboseEAQ";
0123   // search in particle table]
0124   G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
0125   G4ParticleDefinition* anInstance = pTable->FindParticle(name);
0126   if (anInstance == 0) {
0127     const G4String formatedName = "DamagedDeoxyriboseEAQ^{0}";
0128 
0129     G4double mass = 31.99546 * g / Avogadro * c_squared;
0130     anInstance =
0131       new G4MoleculeDefinition(name, mass, 1e-150 * (m * m / s), 0, 0, 1.7 * angstrom, 2);
0132 
0133     ((G4MoleculeDefinition*)anInstance)->SetLevelOccupation(0);
0134     ((G4MoleculeDefinition*)anInstance)->SetFormatedName(formatedName);
0135   }
0136   fDamagedDeoxyriboseEAQInstance = static_cast<G4DNA_DamagedDeoxyriboseEAQ*>(anInstance);
0137   return fDamagedDeoxyriboseEAQInstance;
0138 }
0139 
0140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....