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 // CPA100 excitation model class for electrons
0027 //
0028 // Based on the work of M. Terrissol and M. C. Bordage
0029 //
0030 // Users are requested to cite the following papers:
0031 // - M. Terrissol, A. Baudre, Radiat. Prot. Dosim. 31 (1990) 175-177
0032 // - M.C. Bordage, J. Bordes, S. Edel, M. Terrissol, X. Franceries,
0033 //   M. Bardies, N. Lampe, S. Incerti, Phys. Med. 32 (2016) 1833-1840
0034 //
0035 // Authors of this class:
0036 // M.C. Bordage, M. Terrissol, S. Edel, J. Bordes, S. Incerti
0037 //
0038 // 15.01.2014: creation
0039 //
0040 // Based on the study by S. Zein et. al. Nucl. Inst. Meth. B 488 (2021) 70-82
0041 // 1/2/2023 : Hoang added modification for DNA cross sections
0042 
0043 #ifndef G4DNACPA100ExcitationModel_h
0044 #define G4DNACPA100ExcitationModel_h 1
0045 
0046 #include "G4DNACPA100ExcitationStructure.hh"
0047 #include "G4DNACrossSectionDataSet.hh"
0048 #include "G4Electron.hh"
0049 #include "G4LogLogInterpolation.hh"
0050 #include "G4NistManager.hh"
0051 #include "G4ParticleChangeForGamma.hh"
0052 #include "G4ProductionCutsTable.hh"
0053 #include "G4Proton.hh"
0054 #include "G4VDNAModel.hh"
0055 
0056 class G4DNACPA100ExcitationModel : public G4VDNAModel
0057 {
0058   public:
0059     explicit G4DNACPA100ExcitationModel(const G4ParticleDefinition* p = nullptr,
0060                                         const G4String& nam = "DNACPA100ExcitationModel");
0061 
0062     ~G4DNACPA100ExcitationModel() override = default;
0063 
0064     void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0065 
0066     G4double CrossSectionPerVolume(const G4Material* material, const G4ParticleDefinition* p,
0067                                    G4double ekin, G4double emin, G4double emax) override;
0068 
0069     void SampleSecondaries(std::vector<G4DynamicParticle*>*, const G4MaterialCutsCouple*,
0070                            const G4DynamicParticle*, G4double tmin, G4double maxEnergy) override;
0071 
0072     inline void SelectStationary(G4bool input);
0073 
0074     G4DNACPA100ExcitationModel& operator=(const G4DNACPA100ExcitationModel& right) = delete;
0075 
0076     G4DNACPA100ExcitationModel(const G4DNACPA100ExcitationModel&) = delete;
0077     G4int verboseLevel = 0;
0078 
0079   private:
0080     G4ParticleChangeForGamma* fParticleChangeForGamma = nullptr;
0081     G4bool statCode = false;
0082     G4bool isInitialised = false;
0083     G4DNACPA100ExcitationStructure eStructure;
0084     const G4Material* fpGuanine = nullptr;
0085     const G4Material* fpG4_WATER = nullptr;
0086     const G4Material* fpDeoxyribose = nullptr;
0087     const G4Material* fpCytosine = nullptr;
0088     const G4Material* fpThymine = nullptr;
0089     const G4Material* fpAdenine = nullptr;
0090     const G4Material* fpPhosphate = nullptr;
0091     const G4ParticleDefinition* fpParticle = nullptr;
0092     G4DNACPA100ExcitationModel* fpModelData = nullptr;
0093 };
0094 
0095 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0096 
0097 inline void G4DNACPA100ExcitationModel::SelectStationary(G4bool input)
0098 {
0099   statCode = input;
0100 }
0101 
0102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0103 
0104 #endif