Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4DNAMillerGreenExcitationModel.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: G4DNAMillerGreenExcitationModel.hh 92859 2015-09-18 07:58:30Z gcosmo $
27 //
28 
29 #ifndef G4DNAMillerGreenExcitationModel_h
30 #define G4DNAMillerGreenExcitationModel_h 1
31 
32 #include "G4VEmModel.hh"
34 #include "G4ProductionCutsTable.hh"
35 
36 #include "G4Proton.hh"
39 #include "Randomize.hh"
40 #include "G4NistManager.hh"
41 
42 #include <deque>
43 
45 {
46 
47 public:
48 
50  const G4String& nam = "DNAMillerGreenExcitationModel");
51 
53 
54  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
55 
56  virtual G4double CrossSectionPerVolume(const G4Material* material,
57  const G4ParticleDefinition* p,
58  G4double ekin,
59  G4double emin,
60  G4double emax);
61 
63  G4int /*level*/,
64  const G4ParticleDefinition*,
65  G4double /*kineticEnergy*/);
66 
67  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
68  const G4MaterialCutsCouple*,
69  const G4DynamicParticle*,
70  G4double tmin,
71  G4double maxEnergy);
72 
73  inline void SelectStationary(G4bool input);
74 
75 protected:
76 
78 
79 private:
80 
81  G4bool statCode;
82 
83  // Water density table
84  const std::vector<G4double>* fpMolWaterDensity;
85 
86  std::map<G4String,G4double,std::less<G4String> > lowEnergyLimit;
87  std::map<G4String,G4double,std::less<G4String> > highEnergyLimit;
88 
89  G4bool isInitialised;
90  G4int verboseLevel;
91 
92  // Cross section
93 
94  // Partial cross section
95 
96  G4double PartialCrossSection(G4double energy,G4int level, const G4ParticleDefinition* particle);
97 
98  G4double Sum(G4double energy, const G4ParticleDefinition* particle);
99 
100  G4int RandomSelect(G4double energy, const G4ParticleDefinition* particle);
101 
102  G4int nLevels;
103 
104  G4DNAWaterExcitationStructure waterExcitation;
105 
106  G4double S_1s(G4double t,
107  G4double energyTransferred,
108  G4double slaterEffectiveCharge,
109  G4double shellNumber);
110 
111  G4double S_2s(G4double t,
112  G4double energyTransferred,
113  G4double slaterEffectiveCharge,
114  G4double shellNumber);
115 
116  G4double S_2p(G4double t,
117  G4double energyTransferred,
118  G4double slaterEffectiveCharge,
119  G4double shellNumber);
120 
121  G4double R(G4double t,
122  G4double energyTransferred,
123  G4double slaterEffectiveCharge,
124  G4double shellNumber);
125 
126  G4double kineticEnergyCorrection[4]; // 4 is the particle type index
127  G4double slaterEffectiveCharge[3][4];
128  G4double sCoefficient[3][4];
129 
130  //
131 
134 
135 };
136 
137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
138 
140 {
141  statCode = input;
142 }
143 
144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
145 
146 #endif
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
const char * p
Definition: xmltok.h:285
G4DNAMillerGreenExcitationModel(const G4ParticleDefinition *p=0, const G4String &nam="DNAMillerGreenExcitationModel")
int G4int
Definition: G4Types.hh:78
virtual G4double GetPartialCrossSection(const G4Material *, G4int, const G4ParticleDefinition *, G4double)
G4ParticleChangeForGamma * fParticleChangeForGamma
bool G4bool
Definition: G4Types.hh:79
static const G4double emax
G4double energy(const ThreeVector &p, const G4double m)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
double G4double
Definition: G4Types.hh:76
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)