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 #ifndef G4hCoulombScatteringModel_h
00055 #define G4hCoulombScatteringModel_h 1
00056
00057 #include "G4VEmModel.hh"
00058 #include "globals.hh"
00059 #include "G4MaterialCutsCouple.hh"
00060 #include "G4WentzelVIRelXSection.hh"
00061
00062 class G4ParticleChangeForGamma;
00063 class G4ParticleDefinition;
00064 class G4ParticleTable;
00065 class G4NistManager;
00066
00067 class G4hCoulombScatteringModel : public G4VEmModel
00068 {
00069
00070 public:
00071
00072 G4hCoulombScatteringModel(const G4String& nam = "eCoulombScattering");
00073
00074 virtual ~G4hCoulombScatteringModel();
00075
00076 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00077
00078 virtual G4double ComputeCrossSectionPerAtom(
00079 const G4ParticleDefinition*,
00080 G4double kinEnergy,
00081 G4double Z,
00082 G4double A,
00083 G4double cut,
00084 G4double emax);
00085
00086 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00087 const G4MaterialCutsCouple*,
00088 const G4DynamicParticle*,
00089 G4double tmin,
00090 G4double maxEnergy);
00091
00092
00093 inline void SetLowEnergyThreshold(G4double val);
00094
00095
00096 inline void SetRecoilThreshold(G4double eth);
00097
00098 protected:
00099
00100 inline void DefineMaterial(const G4MaterialCutsCouple*);
00101
00102 inline void SetupParticle(const G4ParticleDefinition*);
00103
00104 private:
00105
00106
00107 G4hCoulombScatteringModel & operator=(const G4hCoulombScatteringModel &right);
00108 G4hCoulombScatteringModel(const G4hCoulombScatteringModel&);
00109
00110 protected:
00111
00112 G4ParticleTable* theParticleTable;
00113 G4ParticleChangeForGamma* fParticleChange;
00114 G4WentzelVIRelXSection* wokvi;
00115 G4NistManager* fNistManager;
00116
00117 const std::vector<G4double>* pCuts;
00118
00119 const G4MaterialCutsCouple* currentCouple;
00120 const G4Material* currentMaterial;
00121 G4int currentMaterialIndex;
00122
00123 G4double cosThetaMin;
00124 G4double cosThetaMax;
00125 G4double cosTetMinNuc;
00126 G4double cosTetMaxNuc;
00127 G4double recoilThreshold;
00128 G4double elecRatio;
00129 G4double mass;
00130
00131
00132 const G4ParticleDefinition* particle;
00133 const G4ParticleDefinition* theProton;
00134
00135 G4double lowEnergyThreshold;
00136
00137 private:
00138
00139 G4bool isInitialised;
00140 };
00141
00142
00143
00144 inline
00145 void G4hCoulombScatteringModel::DefineMaterial(const G4MaterialCutsCouple* cup)
00146 {
00147 if(cup != currentCouple) {
00148 currentCouple = cup;
00149 currentMaterial = cup->GetMaterial();
00150 currentMaterialIndex = currentCouple->GetIndex();
00151 }
00152 }
00153
00154
00155
00156 inline
00157 void G4hCoulombScatteringModel::SetupParticle(const G4ParticleDefinition* p)
00158 {
00159
00160 if(p != particle) {
00161 particle = p;
00162 mass = particle->GetPDGMass();
00163 wokvi->SetupParticle(p);
00164 }
00165 }
00166
00167
00168
00169 inline void G4hCoulombScatteringModel::SetLowEnergyThreshold(G4double val)
00170 {
00171 lowEnergyThreshold = val;
00172 }
00173
00174
00175
00176 inline void G4hCoulombScatteringModel::SetRecoilThreshold(G4double eth)
00177 {
00178 recoilThreshold = eth;
00179 }
00180
00181
00182
00183 #endif