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 described in
0027 // Rad Res 163, 98-111 (2005)
0028 // D. Emfietzoglou, H. Nikjoo
0029 // 
0030 // Authors of the class (2014):
0031 // I. Kyriakou (kyriak@cc.uoi.gr)
0032 // D. Emfietzoglou (demfietz@cc.uoi.gr)
0033 // S. Incerti (incerti@cenbg.in2p3.fr)
0034 //
0035 
0036 #ifndef G4DNAEmfietzoglouExcitationModel_h
0037 #define G4DNAEmfietzoglouExcitationModel_h 1
0038 
0039 #include "G4VEmModel.hh"
0040 #include "G4ParticleChangeForGamma.hh"
0041 #include "G4ProductionCutsTable.hh"
0042 
0043 #include "G4DNACrossSectionDataSet.hh"
0044 #include "G4LogLogInterpolation.hh"
0045 #include "G4Electron.hh"
0046 #include "G4Proton.hh"
0047 #include "G4DNAEmfietzoglouWaterExcitationStructure.hh"
0048 #include "G4NistManager.hh"
0049 
0050 class G4DNAEmfietzoglouExcitationModel : public G4VEmModel
0051 {
0052 
0053 public:
0054 
0055   G4DNAEmfietzoglouExcitationModel(const G4ParticleDefinition* p = nullptr,
0056                                    const G4String& nam =
0057                                        "DNAEmfietzoglouExcitationModel");
0058 
0059   ~G4DNAEmfietzoglouExcitationModel() override;
0060 
0061   G4DNAEmfietzoglouExcitationModel & operator=(const G4DNAEmfietzoglouExcitationModel &right) = delete;
0062   G4DNAEmfietzoglouExcitationModel(const G4DNAEmfietzoglouExcitationModel&) = delete;
0063 
0064   void Initialise(const G4ParticleDefinition*,
0065                           const G4DataVector& = *(new G4DataVector())) override;
0066 
0067   G4double CrossSectionPerVolume(const G4Material* material,
0068                                          const G4ParticleDefinition* p,
0069                                          G4double ekin,
0070                                          G4double emin,
0071                                          G4double emax) override;
0072 
0073   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0074                                  const G4MaterialCutsCouple*,
0075                                  const G4DynamicParticle*,
0076                                  G4double tmin,
0077                                  G4double maxEnergy) override;
0078 
0079   inline void SelectStationary(G4bool input); 
0080 
0081 protected:
0082 
0083   G4ParticleChangeForGamma* fParticleChangeForGamma;
0084 
0085 private:
0086 
0087   G4bool statCode;
0088 
0089   // Water density table
0090   const std::vector<G4double>* fpMolWaterDensity;
0091 
0092   std::map<G4String, G4double, std::less<G4String> > lowEnergyLimit;
0093   std::map<G4String, G4double, std::less<G4String> > highEnergyLimit;
0094 
0095   G4bool isInitialised{false};
0096   G4int verboseLevel;
0097 
0098   // Cross section
0099 
0100   using MapFile = std::map<G4String, G4String, std::less<G4String>>;
0101   MapFile tableFile;
0102 
0103   using MapData = std::map<G4String, G4DNACrossSectionDataSet *, std::less<G4String>>;
0104   MapData tableData;
0105 
0106   // Partial cross section
0107 
0108   G4int RandomSelect(G4double energy, const G4String& particle);
0109 
0110   // Final state
0111 
0112   G4DNAEmfietzoglouWaterExcitationStructure waterStructure;
0113 
0114 };
0115 
0116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0117 
0118 inline void G4DNAEmfietzoglouExcitationModel::SelectStationary (G4bool input)
0119 { 
0120     statCode = input; 
0121 }        
0122 
0123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0124 
0125 #endif