73 crossBornPerElectron(0),
83 peakKinEnergy = highKinEnergy;
92 delete crossPerElectron;
93 delete crossBornPerElectron;
101 if(isInitialised) {
return; }
102 isInitialised =
true;
109 emin =
model->LowEnergy();
110 emax =
model->HighEnergy();
120 model->SetLowEnergy(emin0);
136 epeak = std::min(
model->PeakEnergy(), emax);
141 G4cout <<
"LabSystem: emin(GeV)= " << lowKinEnergy/
GeV
142 <<
" epeak(GeV)= " << peakKinEnergy/
GeV
143 <<
" emax(GeV)= " << highKinEnergy/
GeV
145 G4cout <<
"SM System: emin(MeV)= " << emin/
MeV
146 <<
" epeak(MeV)= " << epeak/
MeV
147 <<
" emax(MeV)= " << emax/
MeV
151 if(lowKinEnergy < peakKinEnergy) {
152 crossBornPerElectron =
model->PhysicsVector(emin, emax);
153 crossPerElectron =
model->PhysicsVector(emin, emax);
155 for(
G4int i=0; i<nbins; i++) {
158 crossBornPerElectron->
PutValue(i, cs);
160 ComputeCMCrossSectionPerElectron();
163 G4cout <<
"G4eeToHadronsModel: Cross secsions per electron"
164 <<
" nbins= " << nbins
165 <<
" emin(MeV)= " << emin/
MeV
166 <<
" emax(MeV)= " << emax/
MeV
169 for(
G4int i=0; i<nbins; i++) {
175 <<
" crossBorn(nb)= " << s2/
nanobarn
212 if(crossPerElectron) {
216 cross = crossPerElectron->
GetValue(e, b);
230 if(crossPerElectron) {
243 model->SampleSecondaries(newp, mass, dir);
244 G4int np = newp->size();
245 for(
G4int j=0; j<np; j++) {
254 newp->push_back(gamma);
261 void G4eeToHadronsModel::ComputeCMCrossSectionPerElectron()
264 for(
G4int i=0; i<nbins; i++) {
275 cs += s1*(del*pow(x1,bt) - bt*(x1 - 0.25*x1*
x1));
280 G4double w2 = bt*(del*pow(x2,btm1) - 1.0 + 0.5*
x2);
283 for(
G4int j=i-2; j>=0; j--) {
286 s1 = crossBornPerElectron->
GetValue(e1, b);
287 w1 = bt*(del*pow(
x1,btm1) - 1.0 + 0.5*
x1);
288 cs += 0.5*(
x1 -
x2)*(w2*s2 + w1*s1);
317 *(del*pow(x0,bt) - bt*(x0 - 0.25*x0*x0));
326 G4double w1 = bt*(del*pow(x,btm1) - 1.0 + 0.5*
x);
336 G4double w2 = bt*(del*pow(x,btm1) - 1.0 + 0.5*
x);
345 G4double w2 = bt*(del*pow(x,btm1) - 1.0 + 0.5*
x);
346 grej = max(grej,s2*w2);
351 if(e1 > emax) xmin = 1. - emax/
e;
356 G4double w2 = bt*(del*pow(x,btm1) - 1.0 + 0.5*
x);
362 G4cout <<
"G4DynamicParticle* G4eeToHadronsModel:WARNING "
363 << f <<
" > " << grej <<
" majorant is`small!"