File indexing completed on 2025-01-18 09:58:56
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 #ifndef PolarizedComptonScattering_h
0041 #define PolarizedComptonScattering_h 1
0042
0043 #include "globals.hh"
0044 #include "G4Gamma.hh"
0045 #include "G4VEmProcess.hh"
0046
0047 class G4DynamicParticle;
0048 class G4MaterialCutsCouple;
0049 class G4ParticleDefinition;
0050 class G4PolarizedComptonModel;
0051
0052 class G4PolarizedCompton : public G4VEmProcess
0053
0054 {
0055 public:
0056 explicit G4PolarizedCompton(const G4String& processName = "pol-compt",
0057 G4ProcessType type = fElectromagnetic);
0058
0059 virtual ~G4PolarizedCompton() override;
0060
0061
0062 virtual G4bool IsApplicable(const G4ParticleDefinition&) override;
0063
0064 virtual void ProcessDescription(std::ostream&) const override;
0065 virtual void DumpInfo() const override { ProcessDescription(G4cout); };
0066
0067 void SetModel(const G4String& name);
0068
0069 G4PolarizedCompton& operator=(const G4PolarizedCompton& right) = delete;
0070 G4PolarizedCompton(const G4PolarizedCompton&) = delete;
0071
0072 protected:
0073 virtual void InitialiseProcess(const G4ParticleDefinition*) override;
0074
0075 virtual void BuildPhysicsTable(const G4ParticleDefinition&) override;
0076
0077 virtual G4double GetMeanFreePath(const G4Track& aTrack,
0078 G4double previousStepSize,
0079 G4ForceCondition* condition) override;
0080
0081 virtual G4double PostStepGetPhysicalInteractionLength(
0082 const G4Track& track, G4double previousStepSize,
0083 G4ForceCondition* condition) override;
0084
0085 private:
0086 static G4PhysicsTable* theAsymmetryTable;
0087 void CleanTable();
0088
0089 void BuildAsymmetryTable(const G4ParticleDefinition& part);
0090
0091 G4double ComputeAsymmetry(G4double energy, const G4MaterialCutsCouple* couple,
0092 const G4ParticleDefinition& particle, G4double cut,
0093 G4double& tAsymmetry);
0094
0095 G4double ComputeSaturationFactor(const G4Track& aTrack);
0096
0097 G4PolarizedComptonModel* fEmModel;
0098
0099 G4int fType;
0100
0101 G4bool fBuildAsymmetryTable;
0102 G4bool fUseAsymmetryTable;
0103
0104 G4bool fIsInitialised;
0105 };
0106
0107
0108
0109 #endif