#include <G4eBremsstrahlungSpectrum.hh>
|
| G4eBremsstrahlungSpectrum (const G4DataVector &bins, const G4String &name) |
|
| ~G4eBremsstrahlungSpectrum () |
|
G4double | Probability (G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell=0, const G4ParticleDefinition *pd=0) const |
|
G4double | AverageEnergy (G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell=0, const G4ParticleDefinition *pd=0) const |
|
G4double | SampleEnergy (G4int Z, G4double tMin, G4double tMax, G4double kineticEnergy, G4int shell=0, const G4ParticleDefinition *pd=0) const |
|
G4double | MaxEnergyOfSecondaries (G4double kineticEnergy, G4int Z=0, const G4ParticleDefinition *pd=0) const |
|
G4double | Excitation (G4int Z, G4double kineticEnergy) const |
|
void | PrintData () const |
|
| G4VEnergySpectrum () |
|
virtual | ~G4VEnergySpectrum () |
|
◆ G4eBremsstrahlungSpectrum() [1/2]
G4eBremsstrahlungSpectrum::G4eBremsstrahlungSpectrum |
( |
const G4DataVector & |
bins, |
|
|
const G4String & |
name |
|
) |
| |
◆ ~G4eBremsstrahlungSpectrum()
G4eBremsstrahlungSpectrum::~G4eBremsstrahlungSpectrum |
( |
| ) |
|
◆ G4eBremsstrahlungSpectrum() [2/2]
◆ AverageEnergy()
Implements G4VEnergySpectrum.
Definition at line 120 of file G4eBremsstrahlungSpectrum.cc.
129 if(t0 >= tm)
return 0.0;
139 for (
size_t i=0; i<=
length; i++) {
150 x += p[0]*(t0 - zmin - c*(std::atan(t0/c) - std::atan(zmin/c)));
156 <<
"; tMax(MeV)= " << tmax/
MeV 157 <<
"; e(MeV)= " <<
e/
MeV
G4BremsstrahlungParameters * theBRparam
G4double AverageValue(G4double xMin, G4double xMax, const G4DataVector &p) const
G4double Parameter(G4int parameterIndex, G4int Z, G4double energy) const
G4double ParameterC(G4int index) const
G4GLOB_DLL std::ostream G4cout
G4double IntSpectrum(G4double xMin, G4double xMax, const G4DataVector &p) const
◆ AverageValue()
Definition at line 247 of file G4eBremsstrahlungSpectrum.cc.
259 sum += (z2 - z1)*(1. - k*
xp[0]);
262 sum += 0.5*k*(z2 - z1);
265 for (
size_t i=0; i<
length-1; i++) {
271 sum += 0.5*(z2 - z1)*(x2 + x1) + z1*x2 - z2*
x1;
274 if(sum < 0.0) sum = 0.0;
◆ Excitation()
◆ Function()
◆ IntSpectrum()
Definition at line 221 of file G4eBremsstrahlungSpectrum.cc.
231 sum += (1. - k*
xp[0])*std::log(x2/x1) + k*(x2 -
x1);
234 for (
size_t i=0; i<
length-1; i++) {
240 sum += z2 - z1 + std::log(x2/x1)*(z1*x2 - z2*
x1)/(x2 - x1);
243 if(sum < 0.0) sum = 0.0;
◆ MaxEnergyOfSecondaries()
◆ operator=()
◆ PrintData()
void G4eBremsstrahlungSpectrum::PrintData |
( |
void |
| ) |
const |
|
virtual |
◆ Probability()
Implements G4VEnergySpectrum.
Definition at line 73 of file G4eBremsstrahlungSpectrum.cc.
82 if(t0 >= tm)
return 0.0;
91 for (
size_t i=0; i<=
length; i++) {
101 <<
"; tMax(MeV)= " << tmax/
MeV 104 <<
"; xp[0]= " <<
xp[0]
G4BremsstrahlungParameters * theBRparam
G4double Parameter(G4int parameterIndex, G4int Z, G4double energy) const
G4GLOB_DLL std::ostream G4cout
G4double IntSpectrum(G4double xMin, G4double xMax, const G4DataVector &p) const
◆ SampleEnergy()
Implements G4VEnergySpectrum.
Definition at line 174 of file G4eBremsstrahlungSpectrum.cc.
183 if(t0 >= tm)
return 0.0;
190 for (
size_t i=0; i<=
length; i++) {
205 G4cout <<
"WARNING in G4eBremsstrahlungSpectrum::SampleEnergy:" 206 <<
" Majoranta " << amaj
G4BremsstrahlungParameters * theBRparam
G4double Parameter(G4int parameterIndex, G4int Z, G4double energy) const
G4GLOB_DLL std::ostream G4cout
G4double Function(G4double x, const G4DataVector &p) const
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
◆ length
size_t G4eBremsstrahlungSpectrum::length |
|
private |
◆ lowestE
G4double G4eBremsstrahlungSpectrum::lowestE |
|
private |
◆ theBRparam
◆ verbose
G4int G4eBremsstrahlungSpectrum::verbose |
|
private |
◆ xp
The documentation for this class was generated from the following files: