#include <G4DipBustGenerator.hh>
Definition at line 55 of file G4DipBustGenerator.hh.
G4DipBustGenerator::G4DipBustGenerator |
( |
const G4String & |
name = "" | ) |
|
|
explicit |
G4DipBustGenerator::~G4DipBustGenerator |
( |
| ) |
|
|
virtual |
Definition at line 105 of file G4DipBustGenerator.cc.
109 G4double c, cosTheta, delta, cofA, signc = 1., a;
120 delta = std::sqrt(a*a+4.);
126 cosTheta = cofA - 1./cofA;
129 beta = std::sqrt(1. - 1./gamma/gamma);
131 cosTheta = (cosTheta + beta)/(1 + cosTheta*beta);
133 theta = std::acos(cosTheta);
135 if( theta < 0. ) theta = 0.;
136 if( theta >
pi ) theta =
pi;
static constexpr double electron_mass_c2
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
static constexpr double pi
void G4DipBustGenerator::PrintGeneratorInformation |
( |
| ) |
const |
|
finalvirtual |
Definition at line 142 of file G4DipBustGenerator.cc.
145 G4cout <<
"Angular Generator based on classical formula from" <<
G4endl;
146 G4cout <<
"J.D. Jackson, Classical Electrodynamics, Wiley, New York 1975"
G4GLOB_DLL std::ostream G4cout
Implements G4VEmAngularDistribution.
Definition at line 67 of file G4DipBustGenerator.cc.
70 G4double a, c, cosTheta, delta, cofA, signc = 1.;
82 delta = std::sqrt(a*a+4.);
88 cosTheta = cofA - 1./cofA;
91 G4double beta = std::sqrt(tau*(tau + 2.))/(tau + 1.);
93 cosTheta = (cosTheta + beta)/(1 + cosTheta*beta);
95 G4double sinTheta = std::sqrt((1 - cosTheta)*(1 + cosTheta));
void set(double x, double y, double z)
G4double GetKineticEnergy() const
static constexpr double twopi
static constexpr double electron_mass_c2
const G4ThreeVector & GetMomentumDirection() const
Hep3Vector & rotateUz(const Hep3Vector &)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4ThreeVector fLocalDirection
The documentation for this class was generated from the following files: