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 // Created on 2016/04/08
0027 //
0028 // Authors: D. Sakata, S. Incerti
0029 //
0030 // This class perform electric excitation for electron transportation,
0031 // based on Dirac B-Spline R-Matrix Model and scaled experimental data.
0032 // See following reference paper 
0033 // Phys.Rev.A77,062711(2008) and Phys.Rev.A78,042713(2008)  
0034 
0035 #ifndef G4DNADiracRMatrixExcitationModel_h
0036 #define G4DNADiracRMatrixExcitationModel_h 1
0037 
0038 #include "G4VEmModel.hh"
0039 #include "G4ParticleChangeForGamma.hh"
0040 #include "G4ProductionCutsTable.hh"
0041 #include "G4VAtomDeexcitation.hh"
0042 
0043 #include "G4LogLogInterpolation.hh"
0044 #include "G4Electron.hh"
0045 #include "G4Proton.hh"
0046 #include "G4NistManager.hh"
0047 
0048 #include "G4DNACrossSectionDataSet.hh"
0049 
0050 class G4DNADiracRMatrixExcitationModel: public G4VEmModel
0051 {
0052 
0053 public:
0054 
0055   G4DNADiracRMatrixExcitationModel(const G4ParticleDefinition* p = nullptr,
0056                         const G4String& nam = "DNADiracRMatrixExcitationModel");
0057 
0058   ~G4DNADiracRMatrixExcitationModel() override;
0059 
0060   G4DNADiracRMatrixExcitationModel & operator
0061                            =(const  G4DNADiracRMatrixExcitationModel &right) = delete;
0062   G4DNADiracRMatrixExcitationModel(const  G4DNADiracRMatrixExcitationModel&) = delete;
0063 
0064 
0065   void Initialise(const G4ParticleDefinition*,
0066                           const G4DataVector& = *(new G4DataVector())) override;
0067 
0068   G4double CrossSectionPerVolume(const G4Material* material,
0069                                          const G4ParticleDefinition* p,
0070                                          G4double ekin,
0071                                          G4double emin,
0072                                          G4double emax) override;
0073 
0074   virtual G4double GetExtendedTotalCrossSection  (const G4Material* material,
0075                                           const G4ParticleDefinition*,
0076                                           G4double kineticEnergy);
0077   
0078   virtual G4double GetExtendedPartialCrossSection(const G4Material* material,
0079                                           G4int level,
0080                                           const G4ParticleDefinition*,
0081                                           G4double kineticEnergy);
0082 
0083   void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0084                                  const G4MaterialCutsCouple*,
0085                                  const G4DynamicParticle*,
0086                                  G4double tmin,
0087                                  G4double maxEnergy) override;
0088 
0089   inline  void SelectStationary(G4bool input);
0090 
0091 protected:
0092 
0093   G4ParticleChangeForGamma* fParticleChangeForGamma;
0094 
0095 private:
0096 
0097   const G4double paramFuncTCS_5dto6s1[3]={-3e-50      , 9.46358e-16,  1.4237  }; // y = [0]+[1]/pow(x-[2],2)
0098   const G4double paramFuncTCS_5dto6s2[3]={-3e-50      , 4.24498e-15, -0.674543}; // y = [0]+[1]/pow(x-[2],2)
0099   const G4double paramFuncTCS_6sto6p1[3]={ 1.50018e-26, 2.459e-15  ,-40.8088  }; // y = [0]+[1]*log(x-[2])/(x-[2])
0100   const G4double paramFuncTCS_6sto6p2[3]={ 1.26684e-25, 3.97221e-15,-55.6954  }; // y = [0]+[1]*log(x-[2])/(x-[2])
0101   const G4double ExcitationEnergyAu[4]={ 2.66 , 1.14 , 4.63 ,  5.11}; 
0102   // [eV] 5dto6s1,6sto6p1,6sto6p2
0103 
0104   G4double fLowEnergyLimit=0.;
0105   G4double fExperimentalEnergyLimit=0.;
0106   G4double fHighEnergyLimit=0.;
0107 
0108   G4bool   isInitialised=false;
0109   G4bool   statCode=false;
0110   G4int    verboseLevel=0;
0111 
0112   G4String                     fTableFile="";
0113   G4DNACrossSectionDataSet*    fTableData=nullptr;
0114   const std::vector<G4double>* fpMaterialDensity=nullptr;
0115   const  G4ParticleDefinition* fParticleDefinition=nullptr;
0116 
0117   G4int RandomSelect(const G4Material* material,
0118                      const G4ParticleDefinition*,
0119                      G4double kineticEnergy);
0120   
0121    
0122 };
0123 
0124 inline void G4DNADiracRMatrixExcitationModel::SelectStationary(G4bool input)
0125 {
0126   statCode = input;
0127 }
0128 
0129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0130 
0131 #endif