File indexing completed on 2025-01-18 09:58:54
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
0043 #ifndef G4PENELOPEPHOTOELECTRICMODEL_HH
0044 #define G4PENELOPEPHOTOELECTRICMODEL_HH 1
0045
0046 #include "globals.hh"
0047 #include "G4VEmModel.hh"
0048 #include "G4DataVector.hh"
0049 #include "G4ParticleChangeForGamma.hh"
0050 #include "G4AtomicTransitionManager.hh"
0051 #include "G4VAtomDeexcitation.hh"
0052
0053 class G4ParticleDefinition;
0054 class G4DynamicParticle;
0055 class G4MaterialCutsCouple;
0056 class G4Material;
0057
0058 class G4PenelopePhotoElectricModel : public G4VEmModel
0059 {
0060 public:
0061 explicit G4PenelopePhotoElectricModel(const G4ParticleDefinition* p=nullptr,
0062 const G4String& processName ="PenPhotoElec");
0063 virtual ~G4PenelopePhotoElectricModel();
0064
0065 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0066 void InitialiseLocal(const G4ParticleDefinition*,
0067 G4VEmModel *masterModel) override;
0068
0069 G4double ComputeCrossSectionPerAtom(
0070 const G4ParticleDefinition*,
0071 G4double kinEnergy,
0072 G4double Z,
0073 G4double A=0,
0074 G4double cut=0,
0075 G4double emax=DBL_MAX) override;
0076
0077 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0078 const G4MaterialCutsCouple*,
0079 const G4DynamicParticle*,
0080 G4double tmin,
0081 G4double maxEnergy) override;
0082
0083 void SetVerbosityLevel(G4int lev){fVerboseLevel = lev;};
0084 G4int GetVerbosityLevel(){return fVerboseLevel;};
0085
0086
0087 std::size_t GetNumberOfShellXS(G4int);
0088 G4double GetShellCrossSection(G4int Z,std::size_t shellID,G4double energy);
0089
0090 G4PenelopePhotoElectricModel & operator=(const G4PenelopePhotoElectricModel &right) = delete;
0091 G4PenelopePhotoElectricModel(const G4PenelopePhotoElectricModel&) = delete;
0092
0093 protected:
0094 G4ParticleChangeForGamma* fParticleChange;
0095 const G4ParticleDefinition* fParticle;
0096
0097 private:
0098 void SetParticle(const G4ParticleDefinition*);
0099 G4double SampleElectronDirection(G4double energy);
0100 void ReadDataFile(G4int Z);
0101 std::size_t SelectRandomShell(G4int Z,G4double energy);
0102 G4String WriteTargetShell(std::size_t shellID);
0103
0104
0105
0106
0107
0108 static const G4int fMaxZ =99;
0109 static G4PhysicsTable* fLogAtomicShellXS[fMaxZ+1];
0110
0111 G4VAtomDeexcitation* fAtomDeexcitation;
0112 const G4AtomicTransitionManager* fTransitionManager;
0113
0114
0115 G4double fIntrinsicLowEnergyLimit;
0116 G4double fIntrinsicHighEnergyLimit;
0117 G4int fVerboseLevel;
0118 G4bool fIsInitialised;
0119
0120 G4bool fLocalTable;
0121 };
0122
0123 #endif
0124