File indexing completed on 2025-01-18 09:58:33
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 #ifndef G4JAEAElasticScatteringModel_h
0043 #define G4JAEAElasticScatteringModel_h 1
0044
0045 #include "G4VEmModel.hh"
0046 #include "G4ParticleChangeForGamma.hh"
0047 #include "G4PhysicsFreeVector.hh"
0048 #include "G4ProductionCutsTable.hh"
0049 #include "G4DataVector.hh"
0050
0051 class G4JAEAElasticScatteringModel : public G4VEmModel
0052 {
0053 public:
0054 explicit G4JAEAElasticScatteringModel();
0055 virtual ~G4JAEAElasticScatteringModel();
0056
0057 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0058
0059 void InitialiseLocal(const G4ParticleDefinition*,
0060 G4VEmModel* masterModel) override;
0061
0062 void InitialiseForElement(const G4ParticleDefinition*, G4int Z) override;
0063
0064 G4double ComputeCrossSectionPerAtom(
0065 const G4ParticleDefinition*,
0066 G4double kinEnergy,
0067 G4double Z,
0068 G4double A=0,
0069 G4double cut=0,
0070 G4double emax=DBL_MAX) override;
0071
0072 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0073 const G4MaterialCutsCouple*,
0074 const G4DynamicParticle*,
0075 G4double tmin,
0076 G4double maxEnergy) override;
0077
0078 void SetLowEnergyThreshold(G4double val){lowEnergyLimit = val;};
0079 void SetDebugVerbosity(G4int val){verboseLevel = val;};
0080
0081 G4JAEAElasticScatteringModel & operator=(const G4JAEAElasticScatteringModel &right) = delete;
0082 G4JAEAElasticScatteringModel(const G4JAEAElasticScatteringModel&) = delete;
0083
0084 private:
0085 void ReadData(std::size_t Z, const char* path = 0);
0086
0087 static const G4int maxZ = 99;
0088 static G4PhysicsFreeVector* dataCS[maxZ+1];
0089 static G4DataVector* ES_Data[maxZ+1];
0090 G4ParticleChangeForGamma* fParticleChange;
0091 G4double distribution[181];
0092 G4double pdf[181];
0093 G4double cdf[181];
0094
0095 G4double lowEnergyLimit;
0096
0097 G4int verboseLevel;
0098 G4bool isInitialised;
0099
0100 };
0101
0102
0103
0104
0105 #endif