66 ratio1(1),ratio2(1),delta(0)
94 G4double beta = std::sqrt((gamma - 1)*(gamma + 1))/gamma;
108 y = q*ymax/(1 + ymax*(1 - q));
112 if(gfun > gMax &&
nwarn >= 20) {
114 G4cout <<
"### WARNING in G4Generator2BS: Etot(MeV)= " << energy/
MeV
115 <<
" Egamma(MeV)" << (energy - final_energy)/
MeV
116 <<
" gMax= " << gMax <<
" < " << gfun
117 <<
" results are not reliable!"
120 G4cout <<
" WARNING in G4Generator2BS is closed" <<
G4endl;
128 G4double sint = std::sqrt((1 - cost)*(1 + cost));
140 G4cout <<
"Bremsstrahlung Angular Generator is 2BS Generator "
141 <<
"from 2BS Koch & Motz distribution (Rev Mod Phys 31(4), 920 (1959))" <<
G4endl;
142 G4cout <<
"Sampling algorithm adapted from PIRS-0203" <<
G4endl;
void set(double x, double y, double z)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual ~G4Generator2BS()
virtual G4ThreeVector & SampleDirection(const G4DynamicParticle *dp, G4double out_energy, G4int Z, const G4Material *mat=nullptr)
G4double Z13(G4int Z) const
static constexpr double MeV
const G4ThreeVector & GetMomentumDirection() const
G4Generator2BS(const G4String &name="")
Hep3Vector & rotateUz(const Hep3Vector &)
static G4Pow * GetInstance()
static constexpr double electron_mass_c2
static constexpr double twopi
G4ThreeVector fLocalDirection
G4GLOB_DLL std::ostream G4cout
G4double RejectionFunction(G4double value) const
G4double GetTotalEnergy() const
void PrintGeneratorInformation() const