64 LEN =
new std::vector<G4double*>;
65 HEN =
new std::vector<G4double*>;
70 G4int lens=LEN->size();
71 for(
G4int i=0; i<lens; ++i)
delete[] (*LEN)[i];
74 G4int hens=HEN->size();
75 for(
G4int i=0; i<hens; ++i)
delete[] (*HEN)[i];
132 static std::vector <G4int> colN;
133 static std::vector <G4int> colZ;
134 static std::vector <G4double> colP;
135 static std::vector <G4double> colTH;
136 static std::vector <G4double> colCS;
140 if(tgN!=lastN || tgZ!=lastZ)
149 if(lastI)
for(
G4int i=0; i<lastI; i++)
151 if(colN[i]==tgN && colZ[i]==tgZ)
164 lastCS=CalculateCrossSection(-1,j,PDG,lastZ,lastN,pMom);
166 if(lastCS<=0. && pMom>lastTH)
178 lastCS=CalculateCrossSection(0,j,PDG,lastZ,lastN,pMom);
185 colP.push_back(pMom);
186 colTH.push_back(lastTH);
187 colCS.push_back(lastCS);
189 return lastCS*millibarn;
197 else if(pMom<=lastTH)
203 lastCS=CalculateCrossSection(1,j,PDG,lastZ,lastN,pMom);
206 return lastCS*millibarn;
214 static const G4double THmiG=THmin*.001;
217 static const G4int nL=105;
218 static const G4double Pmin=THmin+(nL-1)*dP;
220 static const G4int nH=224;
221 static const G4double milP=std::log(Pmin);
222 static const G4double malP=std::log(Pmax);
223 static const G4double dlP=(malP-milP)/(nH-1);
224 static const G4double milPG=std::log(.001*Pmin);
232 G4int sync=LEN->size();
233 if(sync<=I)
G4cerr<<
"*!*G4QPiMinusNuclCS::CalcCrosSect:Sync="<<sync<<
"<="<<I<<
G4endl;
243 for(
G4int k=0; k<nL; k++)
245 lastLEN[k] = CrossSectionLin(targZ, targN, P);
251 lastHEN[
n] = CrossSectionLog(targZ, targN, lP);
256 G4int sync=LEN->size();
259 G4cerr<<
"***G4QHyperNuclCS::CalcCrossSect: Sinc="<<sync<<
"#"<<I<<
", Z=" <<targZ
260 <<
", N="<<targN<<
", F="<<F<<
G4endl;
263 LEN->push_back(lastLEN);
264 HEN->push_back(lastHEN);
268 if (Momentum<lastTH)
return 0.;
269 else if (Momentum<Pmin)
271 sigma=EquLinearFit(Momentum,nL,THmin,dP,lastLEN);
273 else if (Momentum<Pmax)
276 sigma=EquLinearFit(lP,nH,milP,dlP,lastHEN);
281 sigma=CrossSectionFormula(targZ, targN, P, std::log(P));
283 if(sigma<0.)
return 0.;
291 return CrossSectionFormula(tZ, tN, P, lP);
298 return CrossSectionFormula(tZ, tN, P, lP);
312 G4double El=(.0557*ld2+6.72+99./p2)/(1.+2./sp+2./p4);
313 G4double To=(.3*ld2+38.2+900./
sp)/(1.+27./sp+3./p4);
316 else if(tZ<97 && tN<152)
330 G4double c=(170.+3600./a2s)/(1.+65./a2s);
331 G4double gg=42.*(std::exp(al*0.8)+4.E-8*a4)/(1.+28./a)/(1.+5.E-5*a2);
338 e=380.+18.*a2/(1.+a2/60.)/(1.+2.E-19*a8);
340 h=1.E-8*a2/(1.+a2/17.)/(1.+3.E-20*a8);
341 t=(.2+.00056*a2)/(1.+a2*.0006);
343 sigma=(c+d*d)/(1.+t/ssp+r/p4)+(gg+e*std::exp(-6.*P))/(1.+h/p4/p4);
345 G4cout<<
"G4QHyperonNucCS::CSForm: A="<<a<<
",P="<<P<<
",CS="<<sigma<<
",c="<<c<<
",g="<<gg
346 <<
",d="<<d<<
",r="<<r<<
",e="<<e<<
",h="<<h<<
G4endl;
351 G4cerr<<
"-Warning-G4QHyperonNuclearCroSect::CSForm:*Bad A* Z="<<tZ<<
", N="<<tN<<
G4endl;
354 if(sigma<0.)
return 0.;
362 G4cerr<<
"***G4ChipsHyperonInelasticXS::EquLinearFit: DX="<<DX<<
", N="<<N<<
G4endl;
368 G4int j=
static_cast<int>(d);
#define G4_DECLARE_XS_FACTORY(cross_section)
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT 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()
~G4ChipsHyperonInelasticXS()
G4ParticleDefinition * GetDefinition() const
G4double GetTotalMomentum() const
static G4Lambda * Lambda()
static G4OmegaMinus * OmegaMinus()
G4int GetPDGEncoding() const
static G4SigmaMinus * SigmaMinus()
static G4SigmaPlus * SigmaPlus()
static G4SigmaZero * SigmaZero()
static G4XiMinus * XiMinus()
static G4XiZero * XiZero()