74 crossBornPerElectron(0),
84 peakKinEnergy = highKinEnergy;
101 if(isInitialised) {
return; }
102 isInitialised =
true;
113 G4cout <<
"CM System: emin(MeV)= " << emin/MeV
114 <<
" epeak(MeV)= " << epeak/MeV
115 <<
" emax(MeV)= " << emax/MeV
122 for(
G4int i=0; i<nbins; ++i) {
125 crossBornPerElectron->
PutValue(i, cs);
127 ComputeCMCrossSectionPerElectron();
130 G4cout <<
"G4eeToHadronsModel: Cross sections per electron"
131 <<
" nbins= " << nbins
132 <<
" emin(MeV)= " << emin/MeV
133 <<
" emax(MeV)= " << emax/MeV
135 for(
G4int i=0; i<nbins; ++i) {
139 G4cout <<
"E(MeV)= " << e/MeV
140 <<
" cross(nb)= " << s1/nanobarn
141 <<
" crossBorn(nb)= " << s2/nanobarn
177 return (crossPerElectron) ? crossPerElectron->
Value(energy) : 0.0;
188 if(crossPerElectron) {
207 G4int np = newp->size();
208 for(
G4int j=0; j<np; ++j) {
223 newp->push_back(gamma);
224 if(std::abs(t) > MeV) {
225 G4cout <<
"G4eeToHadronsModel::SampleSecondaries: Ebalance(MeV)= "
226 << t/MeV <<
" primary 4-momentum: " << inlv <<
G4endl;
234void G4eeToHadronsModel::ComputeCMCrossSectionPerElectron()
236 for(
G4int i=0; i<nbins; i++) {
241 G4double bt = 2.0*fine_structure_const*(LL - 1.0)/pi;
243 G4double del = 1. + fine_structure_const*(1.5*LL + pi*pi/3. -2.)/pi;
247 cs += s1*(del*
G4Exp(
G4Log(x1)*bt) - bt*(x1 - 0.25*x1*x1));
255 for(
G4int j=i-2; j>=0; --j) {
256 e1 = crossPerElectron->
Energy(j);
258 s1 = crossBornPerElectron->
Value(e1);
259 w1 = bt*(del*
G4Exp(
G4Log(x1)*btm1) - 1.0 + 0.5*x1);
260 cs += 0.5*(x1 - x2)*(w2*s2 + w1*s1);
279 G4double bt = 2.0*fine_structure_const*(LL - 1.)/pi;
281 G4double del = 1. + fine_structure_const*(1.5*LL + pi*pi/3. -2.)/pi;
285 G4double xmax = 0.5*(1.0 - (emin*emin)/(e*e));
286 G4double xmin = std::min(de/e, xmax);
307 x = 0.5*(1. - (emax*emax)/(e*e));
316 x = 0.5*(1.0 - (epeak*epeak)/(e*e));
319 grej = std::max(grej,s2*w2);
324 const G4int iimax = 1000;
328 G4double s2 = crossBornPerElectron->
Value(sqrt(1.0 - 2*x)*e);
336 G4cout <<
"G4DynamicParticle* G4eeToHadronsModel:WARNING "
337 << f <<
" > " << grej <<
" majorant is`small!"
340 if(++ii >= iimax) {
break; }
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
CLHEP::HepLorentzVector G4LorentzVector
G4GLOB_DLL std::ostream G4cout
void set(double x, double y, double z)
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
const G4ThreeVector & GetMomentumDirection() const
G4LorentzVector Get4Momentum() const
G4double GetKineticEnergy() const
void Set4Momentum(const G4LorentzVector &momentum)
G4double GetElectronDensity() const
G4double Energy(std::size_t index) const
G4double Value(G4double theEnergy, std::size_t &lastidx) const
void PutValue(std::size_t index, G4double theValue)
std::size_t GetVectorLength() const
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
G4PhysicsVector * PhysicsVector() const
G4double LowEnergy() const
virtual G4double ComputeCrossSection(G4double) const =0
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, G4double, const G4ThreeVector &)=0
virtual G4double PeakEnergy() const =0
G4double HighEnergy() const
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
virtual G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double maxEnergy=DBL_MAX) override
G4DynamicParticle * GenerateCMPhoton(G4double)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX) override
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
G4eeToHadronsModel(G4Vee2hadrons *, G4int ver=0, const G4String &nam="eeToHadrons")
virtual ~G4eeToHadronsModel()