00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 #ifndef G4eCoulombScatteringModel_h
00066 #define G4eCoulombScatteringModel_h 1
00067
00068 #include "G4VEmModel.hh"
00069 #include "globals.hh"
00070 #include "G4MaterialCutsCouple.hh"
00071 #include "G4WentzelOKandVIxSection.hh"
00072
00073 class G4ParticleChangeForGamma;
00074 class G4ParticleDefinition;
00075 class G4ParticleTable;
00076 class G4NistManager;
00077
00078 class G4eCoulombScatteringModel : public G4VEmModel
00079 {
00080
00081 public:
00082
00083 G4eCoulombScatteringModel(const G4String& nam = "eCoulombScattering");
00084
00085 virtual ~G4eCoulombScatteringModel();
00086
00087 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00088
00089 virtual G4double ComputeCrossSectionPerAtom(
00090 const G4ParticleDefinition*,
00091 G4double kinEnergy,
00092 G4double Z,
00093 G4double A,
00094 G4double cut,
00095 G4double emax);
00096
00097 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00098 const G4MaterialCutsCouple*,
00099 const G4DynamicParticle*,
00100 G4double tmin,
00101 G4double maxEnergy);
00102
00103
00104 inline void SetLowEnergyThreshold(G4double val);
00105
00106
00107 inline void SetRecoilThreshold(G4double eth);
00108
00109 protected:
00110
00111 inline void DefineMaterial(const G4MaterialCutsCouple*);
00112
00113 inline void SetupParticle(const G4ParticleDefinition*);
00114
00115 private:
00116
00117
00118 G4eCoulombScatteringModel & operator=(const G4eCoulombScatteringModel &right);
00119 G4eCoulombScatteringModel(const G4eCoulombScatteringModel&);
00120
00121 protected:
00122
00123 G4ParticleTable* theParticleTable;
00124 G4ParticleChangeForGamma* fParticleChange;
00125 G4WentzelOKandVIxSection* wokvi;
00126 G4NistManager* fNistManager;
00127
00128 const std::vector<G4double>* pCuts;
00129
00130 const G4MaterialCutsCouple* currentCouple;
00131 const G4Material* currentMaterial;
00132 G4int currentMaterialIndex;
00133
00134 G4double cosThetaMin;
00135 G4double cosThetaMax;
00136 G4double cosTetMinNuc;
00137 G4double cosTetMaxNuc;
00138 G4double recoilThreshold;
00139 G4double elecRatio;
00140 G4double mass;
00141
00142
00143 const G4ParticleDefinition* particle;
00144 const G4ParticleDefinition* theProton;
00145
00146 G4double lowEnergyThreshold;
00147
00148 private:
00149
00150 G4bool isInitialised;
00151 };
00152
00153
00154
00155 inline
00156 void G4eCoulombScatteringModel::DefineMaterial(const G4MaterialCutsCouple* cup)
00157 {
00158 if(cup != currentCouple) {
00159 currentCouple = cup;
00160 currentMaterial = cup->GetMaterial();
00161 currentMaterialIndex = currentCouple->GetIndex();
00162 }
00163 }
00164
00165
00166
00167 inline
00168 void G4eCoulombScatteringModel::SetupParticle(const G4ParticleDefinition* p)
00169 {
00170
00171 if(p != particle) {
00172 particle = p;
00173 mass = particle->GetPDGMass();
00174 wokvi->SetupParticle(p);
00175 }
00176 }
00177
00178
00179
00180 inline void G4eCoulombScatteringModel::SetLowEnergyThreshold(G4double val)
00181 {
00182 lowEnergyThreshold = val;
00183 }
00184
00185
00186
00187 inline void G4eCoulombScatteringModel::SetRecoilThreshold(G4double eth)
00188 {
00189 recoilThreshold = eth;
00190 }
00191
00192
00193
00194 #endif