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
0044
0045 #ifndef G4PENELOPECOMPTONMODEL_HH
0046 #define G4PENELOPECOMPTONMODEL_HH 1
0047
0048 #include "globals.hh"
0049 #include "G4VEmModel.hh"
0050 #include "G4DataVector.hh"
0051 #include "G4ParticleChangeForGamma.hh"
0052 #include "G4AtomicTransitionManager.hh"
0053 #include "G4VAtomDeexcitation.hh"
0054
0055 class G4ParticleDefinition;
0056 class G4DynamicParticle;
0057 class G4MaterialCutsCouple;
0058 class G4Material;
0059 class G4PenelopeOscillatorManager;
0060 class G4PenelopeOscillator;
0061
0062 class G4PenelopeComptonModel : public G4VEmModel
0063 {
0064
0065 public:
0066 explicit G4PenelopeComptonModel(const G4ParticleDefinition* p=nullptr,
0067 const G4String& processName ="PenCompton");
0068 virtual ~G4PenelopeComptonModel();
0069
0070 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0071 void InitialiseLocal(const G4ParticleDefinition*,
0072 G4VEmModel *masterModel) override;
0073
0074 G4double CrossSectionPerVolume(const G4Material*,
0075 const G4ParticleDefinition*,
0076 G4double kineticEnergy,
0077 G4double cutEnergy = 0.0,
0078 G4double maxEnergy = DBL_MAX) override;
0079
0080
0081
0082
0083 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
0084 G4double,
0085 G4double,
0086 G4double,
0087 G4double,
0088 G4double) override;
0089
0090 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0091 const G4MaterialCutsCouple*,
0092 const G4DynamicParticle*,
0093 G4double tmin,
0094 G4double maxEnergy) override;
0095
0096 void SetVerbosityLevel(G4int lev){fVerboseLevel = lev;};
0097 G4int GetVerbosityLevel(){return fVerboseLevel;};
0098
0099 G4PenelopeComptonModel & operator=(const G4PenelopeComptonModel &right) = delete;
0100 G4PenelopeComptonModel(const G4PenelopeComptonModel&) = delete;
0101
0102 protected:
0103 G4ParticleChangeForGamma* fParticleChange;
0104 const G4ParticleDefinition* fParticle;
0105
0106 private:
0107 void SetParticle(const G4ParticleDefinition*);
0108
0109
0110 G4double DifferentialCrossSection (G4double cdt,G4double energy,
0111 G4PenelopeOscillator* osc);
0112
0113 G4double OscillatorTotalCrossSection(G4double energy,
0114 G4PenelopeOscillator* osc);
0115
0116 G4double KleinNishinaCrossSection(G4double energy,const G4Material*);
0117
0118 G4VAtomDeexcitation* fAtomDeexcitation;
0119 const G4AtomicTransitionManager* fTransitionManager;
0120
0121 G4PenelopeOscillatorManager* fOscManager;
0122
0123
0124
0125 G4double fIntrinsicLowEnergyLimit;
0126 G4double fIntrinsicHighEnergyLimit;
0127
0128 G4int fVerboseLevel;
0129 G4bool fIsInitialised;
0130 };
0131
0132 #endif
0133