80 peakKinEnergy = highKinEnergy;
97 if(isInitialised) {
return; }
109 G4cout <<
"CM System: emin(MeV)= " << emin/MeV
110 <<
" epeak(MeV)= " << epeak/MeV
111 <<
" emax(MeV)= " << emax/MeV
118 for(
G4int i=0; i<nbins; ++i) {
121 crossBornPerElectron->
PutValue(i, cs);
123 ComputeCMCrossSectionPerElectron();
126 G4cout <<
"G4eeToHadronsModel: Cross sections per electron"
127 <<
" nbins= " << nbins
128 <<
" emin(MeV)= " << emin/MeV
129 <<
" emax(MeV)= " << emax/MeV
131 for(
G4int i=0; i<nbins; ++i) {
135 G4cout <<
"E(MeV)= " << e/MeV
136 <<
" cross(nb)= " << s1/nanobarn
137 <<
" crossBorn(nb)= " << s2/nanobarn
173 return crossPerElectron->
Value(energy);
202 std::size_t np = newp->size();
203 for(std::size_t j=0; j<np; ++j) {
218 newp->push_back(gamma);
219 if(std::abs(t) > CLHEP::MeV) {
220 G4cout <<
"G4eeToHadronsModel::SampleSecondaries: Ebalance(MeV)= "
221 << t/MeV <<
" primary 4-momentum: " << inlv <<
G4endl;
228void G4eeToHadronsModel::ComputeCMCrossSectionPerElectron()
230 for(
G4int i=0; i<nbins; i++) {
235 G4double bt = 2.0*fine_structure_const*(LL - 1.0)/pi;
237 G4double del = 1. + fine_structure_const*(1.5*LL + pi*pi/3. -2.)/pi;
241 cs += s1*(del*
G4Exp(
G4Log(x1)*bt) - bt*(x1 - 0.25*x1*x1));
249 for(
G4int j=i-2; j>=0; --j) {
250 e1 = crossPerElectron->
Energy(j);
252 s1 = crossBornPerElectron->
Value(e1);
253 w1 = bt*(del*
G4Exp(
G4Log(x1)*btm1) - 1.0 + 0.5*x1);
254 cs += 0.5*(x1 - x2)*(w2*s2 + w1*s1);
273 G4double bt = 2.0*fine_structure_const*(LL - 1.)/pi;
275 G4double del = 1. + fine_structure_const*(1.5*LL + pi*pi/3. -2.)/pi;
279 G4double xmax = 0.5*(1.0 - (emin*emin)/(e*e));
280 G4double xmin = std::min(de/e, xmax);
301 x = 0.5*(1. - (emax*emax)/(e*e));
310 x = 0.5*(1.0 - (epeak*epeak)/(e*e));
313 grej = std::max(grej,s2*w2);
318 const G4int iimax = 1000;
322 G4double s2 = crossBornPerElectron->
Value(sqrt(1.0 - 2*x)*e);
330 G4cout <<
"G4DynamicParticle* G4eeToHadronsModel:WARNING "
331 << f <<
" > " << grej <<
" majorant is`small!"
334 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
void PutValue(const std::size_t index, const G4double value)
G4double Energy(const std::size_t index) const
G4double Value(const G4double energy, std::size_t &lastidx) const
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
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double ComputeCrossSectionPerElectron(const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double maxEnergy=DBL_MAX) override
G4DynamicParticle * GenerateCMPhoton(G4double)
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX) override
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
~G4eeToHadronsModel() override
G4eeToHadronsModel(G4Vee2hadrons *, G4int ver=0, const G4String &nam="eeToHadrons")