65 LEN =
new std::vector<G4double*>;
66 HEN =
new std::vector<G4double*>;
71 G4int lens=LEN->size();
72 for(
G4int i=0; i<lens; ++i)
delete[] (*LEN)[i];
75 G4int hens=HEN->size();
76 for(
G4int i=0; i<hens; ++i)
delete[] (*HEN)[i];
82 outFile <<
"G4ChipsHyperonInelasticXS provides the inelastic cross\n"
83 <<
"section for hyperon nucleus scattering as a function of incident\n"
84 <<
"momentum. The cross section is calculated using M. Kossov's\n"
85 <<
"CHIPS parameterization of cross section data.\n";
144 if(tgN!=lastN || tgZ!=lastZ)
153 if(lastI)
for(
G4int i=0; i<lastI; i++)
155 if(colN[i]==tgN && colZ[i]==tgZ)
168 lastCS=CalculateCrossSection(-1,j,PDG,lastZ,lastN,pMom);
170 if(lastCS<=0. && pMom>lastTH)
182 lastCS=CalculateCrossSection(0,j,PDG,lastZ,lastN,pMom);
189 colP.push_back(pMom);
190 colTH.push_back(lastTH);
191 colCS.push_back(lastCS);
193 return lastCS*millibarn;
201 else if(pMom<=lastTH)
207 lastCS=CalculateCrossSection(1,j,PDG,lastZ,lastN,pMom);
210 return lastCS*millibarn;
218 static const G4double THmiG=THmin*.001;
221 static const G4int nL=105;
222 static const G4double Pmin=THmin+(nL-1)*dP;
224 static const G4int nH=224;
227 static const G4double dlP=(malP-milP)/(nH-1);
236 G4int sync=LEN->size();
237 if(sync<=I)
G4cerr<<
"*!*G4QPiMinusNuclCS::CalcCrosSect:Sync="<<sync<<
"<="<<I<<
G4endl;
247 for(
G4int k=0; k<nL; k++)
249 lastLEN[k] = CrossSectionLin(targZ, targN, P);
255 lastHEN[
n] = CrossSectionLog(targZ, targN, lP);
260 G4int sync=LEN->size();
263 G4cerr<<
"***G4QHyperNuclCS::CalcCrossSect: Sinc="<<sync<<
"#"<<I<<
", Z=" <<targZ
264 <<
", N="<<targN<<
", F="<<F<<
G4endl;
267 LEN->push_back(lastLEN);
268 HEN->push_back(lastHEN);
272 if (Momentum<lastTH)
return 0.;
273 else if (Momentum<Pmin)
275 sigma=EquLinearFit(Momentum,nL,THmin,dP,lastLEN);
277 else if (Momentum<Pmax)
280 sigma=EquLinearFit(lP,nH,milP,dlP,lastHEN);
285 sigma=CrossSectionFormula(targZ, targN, P,
G4Log(P));
287 if(sigma<0.)
return 0.;
295 return CrossSectionFormula(tZ, tN, P, lP);
302 return CrossSectionFormula(tZ, tN, P, lP);
311 const G4bool isHeavyElementAllowed =
true;
320 G4double El=(.0557*ld2+6.72+99./p2)/(1.+2./sp+2./p4);
321 G4double To=(.3*ld2+38.2+900./
sp)/(1.+27./sp+3./p4);
324 else if((tZ<97 && tN<152) || isHeavyElementAllowed)
338 G4double c=(170.+3600./a2s)/(1.+65./a2s);
339 G4double gg=42.*(
G4Exp(al*0.8)+4.E-8*a4)/(1.+28./a)/(1.+5.E-5*a2);
346 e=380.+18.*a2/(1.+a2/60.)/(1.+2.E-19*a8);
348 h=1.E-8*a2/(1.+a2/17.)/(1.+3.E-20*a8);
349 t=(.2+.00056*a2)/(1.+a2*.0006);
351 sigma=(c+d*d)/(1.+t/ssp+r/p4)+(gg+e*
G4Exp(-6.*P))/(1.+h/p4/p4);
353 G4cout<<
"G4QHyperonNucCS::CSForm: A="<<a<<
",P="<<P<<
",CS="<<sigma<<
",c="<<c<<
",g="<<gg
354 <<
",d="<<d<<
",r="<<r<<
",e="<<e<<
",h="<<h<<
G4endl;
359 G4cerr<<
"-Warning-G4QHyperonNuclearCroSect::CSForm:*Bad A* Z="<<tZ<<
", N="<<tN<<
G4endl;
362 if(sigma<0.)
return 0.;
370 G4cerr<<
"***G4ChipsHyperonInelasticXS::EquLinearFit: DX="<<DX<<
", N="<<N<<
G4endl;
376 G4int jj=
static_cast<int>(d);
378 else if(jj>N2) jj=N2;
#define G4_DECLARE_XS_FACTORY(cross_section)
double A(double temperature)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg)
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int tgZ, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
virtual G4bool IsIsoApplicable(const G4DynamicParticle *Pt, G4int Z, G4int A, const G4Element *elm, const G4Material *mat)
G4ChipsHyperonInelasticXS()
virtual void CrossSectionDescription(std::ostream &) const
~G4ChipsHyperonInelasticXS()
G4ParticleDefinition * GetDefinition() const
G4double GetTotalMomentum() const
G4int GetPDGEncoding() const