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 #ifndef G4PENELOPEANNIHILATIONMODEL_HH
0043 #define G4PENELOPEANNIHILATIONMODEL_HH 1
0044
0045 #include "globals.hh"
0046 #include "G4VEmModel.hh"
0047 #include "G4DataVector.hh"
0048 #include "G4ParticleChangeForGamma.hh"
0049
0050 class G4ParticleDefinition;
0051 class G4DynamicParticle;
0052 class G4MaterialCutsCouple;
0053 class G4Material;
0054
0055 class G4PenelopeAnnihilationModel : public G4VEmModel
0056 {
0057 public:
0058 explicit G4PenelopeAnnihilationModel(const G4ParticleDefinition* p=nullptr,
0059 const G4String& processName ="PenAnnih");
0060 virtual ~G4PenelopeAnnihilationModel();
0061
0062 void Initialise(const G4ParticleDefinition*, const G4DataVector&) override;
0063 void InitialiseLocal(const G4ParticleDefinition*,
0064 G4VEmModel* ) override;
0065
0066 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
0067 G4double kinEnergy,
0068 G4double Z,
0069 G4double A=0,
0070 G4double cut=0,
0071 G4double emax=DBL_MAX) override;
0072
0073 void SampleSecondaries(std::vector<G4DynamicParticle*>*,
0074 const G4MaterialCutsCouple*,
0075 const G4DynamicParticle*,
0076 G4double tmin,
0077 G4double maxEnergy) override;
0078
0079 void SetVerbosityLevel(G4int lev){fVerboseLevel = lev;};
0080 G4int GetVerbosityLevel(){return fVerboseLevel;};
0081
0082 G4PenelopeAnnihilationModel & operator=(const G4PenelopeAnnihilationModel &right) = delete;
0083 G4PenelopeAnnihilationModel(const G4PenelopeAnnihilationModel&) = delete;
0084
0085 protected:
0086 G4ParticleChangeForGamma* fParticleChange;
0087 const G4ParticleDefinition* fParticle;
0088
0089 private:
0090 G4double ComputeCrossSectionPerElectron(G4double energy);
0091 void SetParticle(const G4ParticleDefinition*);
0092
0093
0094 static G4double fPielr2;
0095
0096 G4double fIntrinsicLowEnergyLimit;
0097 G4double fIntrinsicHighEnergyLimit;
0098
0099 G4int fVerboseLevel;
0100 G4bool fIsInitialised;
0101 };
0102
0103 #endif
0104