93 G4cout <<
"Calling G4XrayRayleighModel::Initialise()" <<
G4endl;
115 G4cout <<
"Calling CrossSectionPerAtom() of G4XrayRayleighModel" <<
G4endl;
137 fo *= 0.01*std::exp(lna);
146 xsc *= fo*fo + (1. + fo)*(1. + fo);
163 G4cout <<
"Calling SampleSecondaries() of G4XrayRayleighModel" <<
G4endl;
173 G4double cosDipole, cosTheta, sinTheta;
174 G4double c, delta, cofA, signc = 1.,
a, power = 1./3.;
184 delta = std::sqrt(
a*
a+4.);
187 cofA = -signc*std::pow(delta, power);
188 cosDipole = cofA - 1./cofA;
210 fo *= 0.01*
pi*std::exp(lna);
215 cosTheta = (cosDipole +
beta)/(1. + cosDipole*beta);
218 if( cosTheta > 1.) cosTheta = 1.;
219 if( cosTheta < -1.) cosTheta = -1.;
221 sinTheta = std::sqrt( (1. - cosTheta)*(1. + cosTheta) );
226 G4double dirX = sinTheta*std::cos(phi);
227 G4double dirY = sinTheta*std::sin(phi);
233 photonDirection1.
rotateUz(photonDirection0);
std::vector< ExP01TrackerHit * > a
static constexpr double MeV
void SetHighEnergyLimit(G4double)
const G4ThreeVector & GetMomentumDirection() const
static constexpr double hbarc
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0, G4double cut=0, G4double emax=DBL_MAX)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
Hep3Vector & rotateUz(const Hep3Vector &)
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
static constexpr double classic_electr_radius
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
static const G4double alpha
static constexpr double twopi
static constexpr double eV
G4ParticleChangeForGamma * fParticleChange
static constexpr double pi2
static const G4double fCofA
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
static const G4double fCofR
virtual ~G4XrayRayleighModel()
static constexpr double pi
G4ParticleChangeForGamma * GetParticleChangeForGamma()
const G4ParticleDefinition * GetParticleDefinition() const
G4XrayRayleighModel(const G4ParticleDefinition *p=0, const G4String &nam="XrayRayleigh")
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
static constexpr double Bohr_radius