#include <G4ParticleHPIsotropic.hh>
Definition at line 39 of file G4ParticleHPIsotropic.hh.
◆ G4ParticleHPIsotropic()
G4ParticleHPIsotropic::G4ParticleHPIsotropic |
( |
| ) |
|
|
default |
◆ ~G4ParticleHPIsotropic()
G4ParticleHPIsotropic::~G4ParticleHPIsotropic |
( |
| ) |
|
|
overridedefault |
◆ Init()
void G4ParticleHPIsotropic::Init |
( |
std::istream & | aDataFile | ) |
|
|
overridevirtual |
◆ MeanEnergyOfThisInteraction()
G4double G4ParticleHPIsotropic::MeanEnergyOfThisInteraction |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Sample()
Implements G4VParticleHPEnergyAngular.
Definition at line 50 of file G4ParticleHPIsotropic.cc.
51{
53 auto Z =
static_cast<G4int>(massCode / 1000);
54 auto A =
static_cast<G4int>(massCode - 1000 * Z);
55
56 if (massCode == 0) {
58 }
62 }
66 }
69 }
72 if (Z == 2) result->SetDefinition(
G4He3::He3());
73 }
76
77
78 if (Z != 2) {
80 }
81 }
82 else {
83
85
86 }
87
88
93
94
95 result->SetKineticEnergy(std::max(0.001 * MeV, anEnergy +
GetQValue()));
96 G4double mtot = result->GetTotalMomentum();
97 G4ThreeVector tempVector(mtot * sinth * std::cos(phi), mtot * sinth * std::sin(phi),
98 mtot * cosTh);
99 result->SetMomentum(tempVector);
100
101 return result;
102}
static G4Deuteron * Deuteron()
static G4Electron * Electron()
static G4IonTable * GetIonTable()
static G4Neutron * Neutron()
static G4Positron * Positron()
static G4Proton * Proton()
static G4Triton * Triton()
G4double GetQValue() const
The documentation for this class was generated from the following files: