File indexing completed on 2025-01-18 09:58:55
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
0044 #ifndef G4PhotoElectricAngularGeneratorPolarized_h
0045 #define G4PhotoElectricAngularGeneratorPolarized_h 1
0046
0047 #include "G4VEmAngularDistribution.hh"
0048 #include "G4ios.hh"
0049 #include "globals.hh"
0050 #include "G4RotationMatrix.hh"
0051
0052 class G4PhotoElectricAngularGeneratorPolarized : public G4VEmAngularDistribution
0053 {
0054 public:
0055 explicit G4PhotoElectricAngularGeneratorPolarized();
0056 ~G4PhotoElectricAngularGeneratorPolarized();
0057
0058 G4ThreeVector& SampleDirection(const G4DynamicParticle* dp,
0059 G4double eKinEnergy,
0060 G4int shellId,
0061 const G4Material* mat = nullptr) override;
0062
0063 void PrintGeneratorInformation() const override;
0064
0065
0066 G4PhotoElectricAngularGeneratorPolarized & operator=(const G4PhotoElectricAngularGeneratorPolarized &right) = delete;
0067 G4PhotoElectricAngularGeneratorPolarized(const G4PhotoElectricAngularGeneratorPolarized&) = delete;
0068
0069 protected:
0070 G4ThreeVector PerpendicularVector(const G4ThreeVector& a) const;
0071
0072 private:
0073 void PhotoElectronGetMajorantSurfaceAandCParameters(G4int shellId,
0074 G4double beta,
0075 G4double *majorantSurfaceParameterA,
0076 G4double *majorantSurfaceParameterC) const;
0077 void PhotoElectronGeneratePhiAndTheta(G4int shellId,
0078 G4double beta,
0079 G4double aBeta,
0080 G4double cBeta,
0081 G4double *pphi,
0082 G4double *ptheta) const;
0083 G4ThreeVector PhotoElectronComputeFinalDirection(const G4RotationMatrix& rotation,
0084 G4double theta,
0085 G4double phi) const;
0086 G4RotationMatrix PhotoElectronRotationMatrix(const G4ThreeVector& direction,
0087 const G4ThreeVector& polarization);
0088
0089 G4double CrossSectionMajorantFunction(G4double theta, G4double cBeta) const;
0090 G4double DSigmaKshellGavrila1959(G4double beta, G4double theta, G4double phi) const;
0091 G4double DSigmaL1shellGavrila(G4double beta, G4double theta, G4double phi) const;
0092
0093 G4double betaArray[3];
0094 G4double aMajorantSurfaceParameterTable[980][2];
0095 G4double cMajorantSurfaceParameterTable[980][2];
0096 };
0097
0098 #endif
0099