File indexing completed on 2025-01-18 09:58:38
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 #ifndef G4LivermorePolarizedComptonModel_h
0031 #define G4LivermorePolarizedComptonModel_h 1
0032
0033 #include "G4VEmModel.hh"
0034 #include "G4PhysicsFreeVector.hh"
0035
0036 class G4ParticleChangeForGamma;
0037 class G4VAtomDeexcitation;
0038 class G4ShellData;
0039 class G4DopplerProfile;
0040
0041 #include "G4VEMDataSet.hh"
0042 #include "G4CompositeEMDataSet.hh"
0043
0044 class G4LivermorePolarizedComptonModel : public G4VEmModel
0045 {
0046 public:
0047 explicit G4LivermorePolarizedComptonModel(const G4ParticleDefinition* p = nullptr,
0048 const G4String& nam = "LivermorePolarizedCompton");
0049
0050 virtual ~G4LivermorePolarizedComptonModel();
0051
0052 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0053 void InitialiseLocal(const G4ParticleDefinition*, G4VEmModel* masterModel) override;
0054 void InitialiseForElement(const G4ParticleDefinition*, G4int Z) override;
0055 G4double ComputeCrossSectionPerAtom(
0056 const G4ParticleDefinition*,
0057 G4double kinEnergy,
0058 G4double Z,
0059 G4double A=0,
0060 G4double cut=0,
0061 G4double emax=DBL_MAX) override;
0062
0063 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0064 const G4MaterialCutsCouple*,
0065 const G4DynamicParticle*,
0066 G4double tmin,
0067 G4double maxEnergy) override;
0068
0069 G4LivermorePolarizedComptonModel & operator=(const G4LivermorePolarizedComptonModel &right) = delete;
0070 G4LivermorePolarizedComptonModel(const G4LivermorePolarizedComptonModel&) = delete;
0071
0072 private:
0073
0074 G4ThreeVector GetRandomPolarization(G4ThreeVector& direction0);
0075 G4ThreeVector GetPerpendicularPolarization(const G4ThreeVector& direction0, const G4ThreeVector& polarization0) const;
0076 G4ThreeVector SetPerpendicularVector(G4ThreeVector& a);
0077 G4ThreeVector SetNewPolarization(G4double epsilon, G4double sinSqrTheta,
0078 G4double phi, G4double cosTheta);
0079 G4double SetPhi(G4double, G4double);
0080 void SystemOfRefChange(G4ThreeVector& direction0, G4ThreeVector& direction1,
0081 G4ThreeVector& polarization0, G4ThreeVector& polarization1);
0082 void ReadData(size_t Z, const char* path = 0);
0083
0084
0085 G4ParticleChangeForGamma* fParticleChange;
0086 G4VAtomDeexcitation* fAtomDeexcitation;
0087
0088
0089 static G4ShellData* shellData;
0090 static G4DopplerProfile* profileData;
0091
0092
0093 static const G4int maxZ = 99;
0094 static G4PhysicsFreeVector* data[100];
0095
0096
0097 static G4CompositeEMDataSet* scatterFunctionData;
0098
0099 G4int verboseLevel;
0100 G4bool isInitialised;
0101 G4int fEntanglementModelID;
0102 };
0103
0104
0105
0106 #endif