File indexing completed on 2025-01-18 09:58:18
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 G4FORWARDXRAYTR_H
0041 #define G4FORWARDXRAYTR_H
0042
0043 #include "globals.hh"
0044 #include "G4Track.hh"
0045 #include "G4TransitionRadiation.hh"
0046 #include "G4VParticleChange.hh"
0047
0048 class G4ParticleDefinition;
0049 class G4PhysicsTable;
0050 class G4PhysicsLogVector;
0051
0052 class G4ForwardXrayTR : public G4TransitionRadiation
0053 {
0054 public:
0055 explicit G4ForwardXrayTR(const G4String& matName1, const G4String& matName2,
0056 const G4String& processName = "XrayTR");
0057
0058 explicit G4ForwardXrayTR(const G4String& processName = "XrayTR");
0059
0060 ~G4ForwardXrayTR();
0061
0062 G4ForwardXrayTR(const G4ForwardXrayTR& right) = delete;
0063 G4ForwardXrayTR& operator=(const G4ForwardXrayTR& right) = delete;
0064
0065
0066
0067 void ProcessDescription(std::ostream&) const override;
0068 void DumpInfo() const override { ProcessDescription(G4cout); };
0069
0070 void BuildXrayTRtables();
0071
0072 G4double GetMeanFreePath(const G4Track&, G4double,
0073 G4ForceCondition* condition) override;
0074
0075 G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
0076 const G4Step& aStep) override;
0077
0078 G4double GetEnergyTR(G4int iMat, G4int jMat, G4int iTkin) const;
0079
0080 G4double GetThetaTR(G4int iMat, G4int jMat, G4int iTkin) const;
0081
0082
0083
0084 G4double SpectralAngleTRdensity(G4double energy,
0085 G4double varAngle) const override;
0086
0087 G4double AngleDensity(G4double energy, G4double varAngle) const;
0088
0089 G4double EnergyInterval(G4double energy1, G4double energy2,
0090 G4double varAngle) const;
0091
0092 G4double AngleSum(G4double varAngle1, G4double varAngle2) const;
0093
0094
0095
0096 G4double SpectralDensity(G4double energy, G4double x) const;
0097
0098 G4double AngleInterval(G4double energy, G4double varAngle1,
0099 G4double varAngle2) const;
0100
0101 G4double EnergySum(G4double energy1, G4double energy2) const;
0102
0103
0104
0105 G4PhysicsTable* GetAngleDistrTable();
0106 G4PhysicsTable* GetEnergyDistrTable();
0107
0108 static G4int GetSympsonNumber();
0109 static G4int GetBinTR();
0110
0111 static G4double GetMinProtonTkin();
0112 static G4double GetMaxProtonTkin();
0113 static G4int GetTotBin();
0114
0115 protected:
0116 static constexpr G4double fTheMinEnergyTR =
0117 1. * CLHEP::keV;
0118 static constexpr G4double fTheMaxEnergyTR =
0119 100. * CLHEP::keV;
0120 static constexpr G4double fTheMaxAngle = 1.0e-3;
0121 static constexpr G4double fTheMinAngle = 5.0e-6;
0122 static constexpr G4double fMinProtonTkin =
0123 100. * CLHEP::GeV;
0124 static constexpr G4double fMaxProtonTkin =
0125 100. * CLHEP::TeV;
0126 static constexpr G4double fPlasmaCof =
0127 4.0 * CLHEP::pi * CLHEP::fine_structure_const * CLHEP::hbarc *
0128 CLHEP::hbarc * CLHEP::hbarc /
0129 CLHEP::electron_mass_c2;
0130 static constexpr G4double fCofTR = CLHEP::fine_structure_const / CLHEP::pi;
0131
0132 static constexpr G4int fSympsonNumber =
0133 100;
0134 static constexpr G4int fBinTR = 50;
0135 static constexpr G4int fTotBin = 50;
0136
0137 const std::vector<G4double>* fGammaCutInKineticEnergy;
0138
0139
0140 G4ParticleDefinition* fPtrGamma;
0141
0142 G4PhysicsTable* fAngleDistrTable;
0143 G4PhysicsTable* fEnergyDistrTable;
0144
0145 G4PhysicsLogVector* fProtonEnergyVector;
0146
0147 G4double fMinEnergyTR;
0148 G4double fMaxEnergyTR;
0149 G4double fMaxThetaTR;
0150 G4double fGamma;
0151 G4double fGammaTkinCut;
0152 G4double fSigma1;
0153 G4double fSigma2;
0154
0155 G4int secID = -1;
0156 };
0157
0158 #endif