Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:07

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 // Based on the work of M. Terrissol and M. C. Bordage
0027 //
0028 // Users are requested to cite the following papers:
0029 // - M. Terrissol, A. Baudre, Radiat. Prot. Dosim. 31 (1990) 175-177
0030 // - M.C. Bordage, J. Bordes, S. Edel, M. Terrissol, X. Franceries,
0031 //   M. Bardies, N. Lampe, S. Incerti, Phys. Med. 32 (2016) 1833-1840
0032 //
0033 // Authors of this class:
0034 // M.C. Bordage, M. Terrissol, S. Edel, J. Bordes, S. Incerti
0035 //
0036 // 15.01.2014: creation
0037 //
0038 //
0039 // Based on the study by S. Zein et. al. Nucl. Inst. Meth. B 488 (2021) 70-82
0040 // 1/2/2023 : Hoang added modification for DNA cross sections
0041 
0042 #ifndef G4DNACPA100IonisationStructure_hh
0043 #define G4DNACPA100IonisationStructure_hh
0044 
0045 #include "globals.hh"
0046 
0047 #include <vector>
0048 
0049 class G4Material;
0050 
0051 class G4DNACPA100IonisationStructure
0052 {
0053   public:
0054     G4DNACPA100IonisationStructure();
0055 
0056     ~G4DNACPA100IonisationStructure() = default;
0057 
0058     G4double IonisationEnergy(const std::size_t& level, const std::size_t& MatID);
0059 
0060     G4double UEnergy(const std::size_t& level, const std::size_t& MatID);
0061 
0062     inline std::size_t NumberOfLevels(const std::size_t& MatID)
0063     {
0064       return fnLevels[MatID];
0065     }
0066 
0067   private:
0068     void InitialiseGuanine();
0069     void InitialiseWater();
0070     void InitialiseDeoxyribose();
0071     void InitialiseCytosine();
0072     void InitialiseThymine();
0073     void InitialiseAdenine();
0074     void InitialisePhosphate();
0075 
0076     std::map<std::size_t /*MatIndex*/, std::size_t> fnLevels;
0077     std::map<std::size_t /*MatIndex*/, std::vector<G4double>> fEnergyConstant;
0078     std::map<std::size_t /*MatIndex*/, std::vector<G4double>> fUConstant;
0079 
0080     G4Material* fpGuanine = nullptr;
0081     G4Material* fpG4_WATER = nullptr;
0082     G4Material* fpDeoxyribose = nullptr;
0083     G4Material* fpCytosine = nullptr;
0084     G4Material* fpThymine = nullptr;
0085     G4Material* fpAdenine = nullptr;
0086     G4Material* fpPhosphate = nullptr;
0087 };
0088 
0089 #endif  // G4DNACPA100IonisationStructure_hh