Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DNAScreenedRutherfordElasticModel.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4DNAScreenedRutherfordElasticModel.hh 70171 2013-05-24 13:34:18Z gcosmo $
27 //
28 
29 #ifndef G4DNAScreenedRutherfordElasticModel_h
30 #define G4DNAScreenedRutherfordElasticModel_h 1
31 
33 
34 #include "G4VEmModel.hh"
36 #include "G4ProductionCutsTable.hh"
37 #include "G4NistManager.hh"
38 
40 {
41 
42 public:
43 
45  const G4String& nam = "DNAScreenedRutherfordElasticModel");
46 
48 
49  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
50 
52  const G4ParticleDefinition* p,
53  G4double ekin,
54  G4double emin,
55  G4double emax);
56 
57  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
58  const G4MaterialCutsCouple*,
59  const G4DynamicParticle*,
60  G4double tmin,
61  G4double maxEnergy);
62 
63  inline void SetKillBelowThreshold (G4double threshold);
64  G4double GetKillBelowThreshold () { return killBelowEnergy; }
65 
66 protected:
67 
69 
70 private:
71  // Water density table
72  const std::vector<G4double>* fpWaterDensity;
73 
74  G4double killBelowEnergy;
75  G4double lowEnergyLimit;
76  G4double intermediateEnergyLimit;
77  G4double highEnergyLimit;
78  G4bool isInitialised;
79  G4int verboseLevel;
80 
81  // Cross section
82 
83  G4double RutherfordCrossSection(G4double energy, G4double z);
84 
85  G4double ScreeningFactor(G4double energy, G4double z);
86 
87  // Final state according to Brenner & Zaider
88 
89  G4double BrennerZaiderRandomizeCosTheta(G4double k);
90  G4double CalculatePolynomial(G4double k, std::vector<G4double>& vec);
91  std::vector<G4double> betaCoeff;
92  std::vector<G4double> deltaCoeff;
93  std::vector<G4double> gamma035_10Coeff;
94  std::vector<G4double> gamma10_100Coeff;
95  std::vector<G4double> gamma100_200Coeff;
96 
97  // Final state according to Screened Rutherford
98 
99  G4double ScreenedRutherfordRandomizeCosTheta(G4double k, G4double z);
100 
101  //
102 
105 
106 };
107 
109 {
110  killBelowEnergy = threshold;
111  if (threshold < 9*CLHEP::eV)
112  G4Exception ("*** WARNING : the G4DNAScreenedRutherfordElasticModel class is not validated below 9 eV !","",JustWarning,"") ;
113 }
114 
115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
116 
117 #endif
G4double z
Definition: TRTMaterials.hh:39
const char * p
Definition: xmltok.h:285
int G4int
Definition: G4Types.hh:78
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
string material
Definition: eplot.py:19
double precision function energy(A, Z)
Definition: dpm25nuc6.f:4106
bool G4bool
Definition: G4Types.hh:79
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G4DNAScreenedRutherfordElasticModel(const G4ParticleDefinition *p=0, const G4String &nam="DNAScreenedRutherfordElasticModel")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
double G4double
Definition: G4Types.hh:76
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)