1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // The lust update: M.V. Kossov, CERN/ITEP(Moscow) 17-June-02 |
---|
28 | // GEANT4 tag $Name: hadr-chips-V09-03-08 $ |
---|
29 | // |
---|
30 | // |
---|
31 | // G4 Physics class: G4QPionMinusNuclearCrossSection for gamma+A cross sections |
---|
32 | // Created: M.V. Kossov, CERN/ITEP(Moscow), 20-Dec-03 |
---|
33 | // The last update: M.V. Kossov, CERN/ITEP (Moscow) 15-Feb-04 |
---|
34 | // -------------------------------------------------------------------------------- |
---|
35 | // **************************************************************************************** |
---|
36 | // This Header is a part of the CHIPS physics package (author: M. Kosov) |
---|
37 | // **************************************************************************************** |
---|
38 | // Short description: CHIPS cross-sections for pi(minus)-nuclear interactions |
---|
39 | // ------------------------------------------------------------------------------------- |
---|
40 | // |
---|
41 | //#define debug |
---|
42 | //#define pdebug |
---|
43 | //#define debug3 |
---|
44 | //#define debugn |
---|
45 | //#define debugs |
---|
46 | |
---|
47 | #include "G4QPionMinusNuclearCrossSection.hh" |
---|
48 | |
---|
49 | // Initialization of the |
---|
50 | G4double* G4QPionMinusNuclearCrossSection::lastLEN=0; // Pointer to lastArray of LowEn CS |
---|
51 | G4double* G4QPionMinusNuclearCrossSection::lastHEN=0; // Pointer to lastArray of HighEn CS |
---|
52 | G4int G4QPionMinusNuclearCrossSection::lastN=0; // The last N of calculated nucleus |
---|
53 | G4int G4QPionMinusNuclearCrossSection::lastZ=0; // The last Z of calculated nucleus |
---|
54 | G4double G4QPionMinusNuclearCrossSection::lastP=0.; // Last used cross section Momentum |
---|
55 | G4double G4QPionMinusNuclearCrossSection::lastTH=0.; // Last threshold momentum |
---|
56 | G4double G4QPionMinusNuclearCrossSection::lastCS=0.; // Last value of the Cross Section |
---|
57 | G4int G4QPionMinusNuclearCrossSection::lastI=0; // The last position in the DAMDB |
---|
58 | std::vector<G4double*>* G4QPionMinusNuclearCrossSection::LEN = new std::vector<G4double*>; |
---|
59 | std::vector<G4double*>* G4QPionMinusNuclearCrossSection::HEN = new std::vector<G4double*>; |
---|
60 | |
---|
61 | // Returns Pointer to the G4VQCrossSection class |
---|
62 | G4VQCrossSection* G4QPionMinusNuclearCrossSection::GetPointer() |
---|
63 | { |
---|
64 | static G4QPionMinusNuclearCrossSection theCrossSection; //*Static body of Cross Section* |
---|
65 | return &theCrossSection; |
---|
66 | } |
---|
67 | |
---|
68 | G4QPionMinusNuclearCrossSection::~G4QPionMinusNuclearCrossSection() |
---|
69 | { |
---|
70 | G4int lens=LEN->size(); |
---|
71 | for(G4int i=0; i<lens; ++i) delete[] (*LEN)[i]; |
---|
72 | delete LEN; |
---|
73 | G4int hens=HEN->size(); |
---|
74 | for(G4int i=0; i<hens; ++i) delete[] (*HEN)[i]; |
---|
75 | delete HEN; |
---|
76 | } |
---|
77 | |
---|
78 | // The main member function giving the collision cross section (P is in IU, CS is in mb) |
---|
79 | // Make pMom in independent units ! (Now it is MeV) |
---|
80 | G4double G4QPionMinusNuclearCrossSection::GetCrossSection(G4bool fCS, G4double pMom, |
---|
81 | G4int tgZ, G4int tgN, G4int PDG) |
---|
82 | { |
---|
83 | static G4double tolerance=0.001; // Tolerance (0.1%) to consider as "the same mom" |
---|
84 | static G4int j; // A#0f Z/N-records already tested in AMDB |
---|
85 | static std::vector <G4int> colN; // Vector of N for calculated nuclei (isotops) |
---|
86 | static std::vector <G4int> colZ; // Vector of Z for calculated nuclei (isotops) |
---|
87 | static std::vector <G4double> colP; // Vector of last momenta for the reaction |
---|
88 | static std::vector <G4double> colTH; // Vector of energy thresholds for the reaction |
---|
89 | static std::vector <G4double> colCS; // Vector of last cross sections for the reaction |
---|
90 | // ***---*** End of the mandatory Static Definitions of the Associative Memory ***---*** |
---|
91 | #ifdef debug |
---|
92 | G4cout<<"G4QPimNCS::GetCS:>>>f="<<fCS<<",p="<<pMom<<", Z="<<tgZ<<"("<<lastZ<<") ,N="<<tgN |
---|
93 | <<"("<<lastN<<"), PDG=-211, thresh="<<lastTH<<",Sz="<<colN.size()<<G4endl; |
---|
94 | #endif |
---|
95 | if(PDG!=-211) G4cout<<"-Warning-G4QPiMinusCS::GetCS:**Not a PiMinus**,PDG="<<PDG<<G4endl; |
---|
96 | G4bool in=false; // By default the isotope must be found in the AMDB |
---|
97 | if(tgN!=lastN || tgZ!=lastZ) // The nucleus was not the last used isotope |
---|
98 | { |
---|
99 | in = false; // By default the isotope haven't be found in AMDB |
---|
100 | lastP = 0.; // New momentum history (nothing to compare with) |
---|
101 | lastN = tgN; // The last N of the calculated nucleus |
---|
102 | lastZ = tgZ; // The last Z of the calculated nucleus |
---|
103 | lastI = colN.size(); // Size of the Associative Memory DB in the heap |
---|
104 | j = 0; // A#0f records found in DB for this projectile |
---|
105 | #ifdef debug |
---|
106 | G4cout<<"G4QPimNucCS::GetCS: the amount of records in the AMDB lastI="<<lastI<<G4endl; |
---|
107 | #endif |
---|
108 | if(lastI) for(G4int i=0; i<lastI; i++) // AMDB exists, try to find the (Z,N) isotope |
---|
109 | { |
---|
110 | if(colN[i]==tgN && colZ[i]==tgZ) // Try the record "i" in the AMDB |
---|
111 | { |
---|
112 | lastI=i; // Remember the index for future fast/last use |
---|
113 | lastTH =colTH[i]; // The last THreshold (A-dependent) |
---|
114 | #ifdef debug |
---|
115 | G4cout<<"G4QPimCS::GetCS:*Found*P="<<pMom<<",Threshold="<<lastTH<<",j="<<j<<G4endl; |
---|
116 | #endif |
---|
117 | if(pMom<=lastTH) |
---|
118 | { |
---|
119 | #ifdef debug |
---|
120 | G4cout<<"G4QPCS::GetCS:Found,P="<<pMom<<" < Threshold="<<lastTH<<",CS=0"<<G4endl; |
---|
121 | #endif |
---|
122 | return 0.; // Energy is below the Threshold value |
---|
123 | } |
---|
124 | lastP =colP [i]; // Last Momentum (A-dependent) |
---|
125 | lastCS =colCS[i]; // Last CrossSect (A-dependent) |
---|
126 | if(std::fabs(lastP-pMom)<tolerance*pMom) |
---|
127 | //if(lastP==pMom) // VI do not use tolerance |
---|
128 | { |
---|
129 | #ifdef debug |
---|
130 | G4cout<<"G4QPimNCS::GetCS:.DoNothing.P="<<pMom<<",CS="<<lastCS*millibarn<<G4endl; |
---|
131 | #endif |
---|
132 | //CalculateCrossSection(fCS,-1,j,-211,lastZ,lastN,pMom); // Update param's only |
---|
133 | return lastCS*millibarn; // Use theLastCS |
---|
134 | } |
---|
135 | in = true; // This is the case when the isotop is found in DB |
---|
136 | // Momentum pMom is in IU ! @@ Units |
---|
137 | #ifdef debug |
---|
138 | G4cout<<"G4QPimNCS::G:UpdDB,P="<<pMom<<",f="<<fCS<<",lI="<<lastI<<",j="<<j<<G4endl; |
---|
139 | #endif |
---|
140 | lastCS=CalculateCrossSection(fCS,-1,j,-211,lastZ,lastN,pMom); // read & update |
---|
141 | #ifdef debug |
---|
142 | G4cout<<"G4QPimNucCS::GetCrosSec:*****> New (inDB) Calculated CS="<<lastCS<<G4endl; |
---|
143 | #endif |
---|
144 | if(lastCS<=0. && pMom>lastTH) // Correct the threshold (@@ No intermediate Zeros) |
---|
145 | { |
---|
146 | #ifdef debug |
---|
147 | G4cout<<"G4QPimNucCS::GetCS:New P="<<pMom<<"(CS=0) > Threshold="<<lastTH<<G4endl; |
---|
148 | #endif |
---|
149 | lastCS=0.; |
---|
150 | lastTH=pMom; |
---|
151 | } |
---|
152 | break; // Go out of the LOOP |
---|
153 | } |
---|
154 | #ifdef debug |
---|
155 | G4cout<<"-->G4QPimNucCrossSec::GetCrosSec: pPDG=-211, j="<<j<<", N="<<colN[i] |
---|
156 | <<",Z["<<i<<"]="<<colZ[i]<<G4endl; |
---|
157 | #endif |
---|
158 | j++; // Increment a#0f records found in DB |
---|
159 | } |
---|
160 | #ifdef debug |
---|
161 | G4cout<<"-?-G4QPimCS::GetCS:R,Z="<<tgZ<<",N="<<tgN<<",in="<<in<<",j="<<j<<" ?"<<G4endl; |
---|
162 | #endif |
---|
163 | if(!in) // This isotope has not been calculated previously |
---|
164 | { |
---|
165 | #ifdef debug |
---|
166 | G4cout<<"^^^G4QPimCS::GetCS:CalcNewP="<<pMom<<", f="<<fCS<<", lastI="<<lastI<<G4endl; |
---|
167 | #endif |
---|
168 | //!!The slave functions must provide cross-sections in millibarns (mb) !! (not in IU) |
---|
169 | lastCS=CalculateCrossSection(fCS,0,j,-211,lastZ,lastN,pMom); //calculate & create |
---|
170 | //if(lastCS>0.) // It means that the AMBD was initialized |
---|
171 | //{ |
---|
172 | |
---|
173 | lastTH = ThresholdEnergy(tgZ, tgN); // The Threshold Energy which is now the last |
---|
174 | #ifdef debug |
---|
175 | G4cout<<"G4QPimNucCrossSec::GetCrossSect: NewThresh="<<lastTH<<",P="<<pMom<<G4endl; |
---|
176 | #endif |
---|
177 | colN.push_back(tgN); |
---|
178 | colZ.push_back(tgZ); |
---|
179 | colP.push_back(pMom); |
---|
180 | colTH.push_back(lastTH); |
---|
181 | colCS.push_back(lastCS); |
---|
182 | #ifdef debug |
---|
183 | G4cout<<"G4QPimCS::GetCrosSec:reCS="<<lastCS<<",lZ="<<lastN<<",lN="<<lastZ<<G4endl; |
---|
184 | #endif |
---|
185 | //} // M.K. Presence of H1 with high threshold breaks the syncronization |
---|
186 | #ifdef pdebug |
---|
187 | G4cout<<"G4QPimCS::GeCS:1st,P="<<pMom<<"(MeV),CS="<<lastCS*millibarn<<"(mb)"<<G4endl; |
---|
188 | #endif |
---|
189 | return lastCS*millibarn; |
---|
190 | } // End of creation of the new set of parameters |
---|
191 | else |
---|
192 | { |
---|
193 | #ifdef debug |
---|
194 | G4cout<<"G4QPimNucCrossSect::GetCS: Update lastI="<<lastI<<", j="<<j<<G4endl; |
---|
195 | #endif |
---|
196 | colP[lastI]=pMom; |
---|
197 | colCS[lastI]=lastCS; |
---|
198 | } |
---|
199 | } // End of parameters udate |
---|
200 | else if(pMom<=lastTH) |
---|
201 | { |
---|
202 | #ifdef debug |
---|
203 | G4cout<<"G4QPimCS::GetCS: Current P="<<pMom<<" < Threshold="<<lastTH<<", CS=0"<<G4endl; |
---|
204 | #endif |
---|
205 | return 0.; // Momentum is below the Threshold Value -> CS=0 |
---|
206 | } |
---|
207 | else if(std::fabs(lastP-pMom)<tolerance*pMom) |
---|
208 | //else if(lastP==pMom) // VI do not use tolerance |
---|
209 | { |
---|
210 | #ifdef debug |
---|
211 | G4cout<<"..G4QPCS::GetCS:OldNZ&P="<<lastP<<"="<<pMom<<",CS="<<lastCS*millibarn<<G4endl; |
---|
212 | #endif |
---|
213 | return lastCS*millibarn; // Use theLastCS |
---|
214 | } |
---|
215 | else // It is the last used -> use the current tables |
---|
216 | { |
---|
217 | #ifdef debug |
---|
218 | G4cout<<"-!-G4QPCS::GetCS:UseCur P="<<pMom<<",f="<<fCS<<",I="<<lastI<<",j="<<j<<G4endl; |
---|
219 | #endif |
---|
220 | lastCS=CalculateCrossSection(fCS,1,j,-211,lastZ,lastN,pMom); // Only read and UpdateDB |
---|
221 | lastP=pMom; |
---|
222 | } |
---|
223 | #ifdef debug |
---|
224 | G4cout<<"==>G4QPimCS::GetCroSec:P="<<pMom<<"(MeV),CS="<<lastCS*millibarn<<"(mb)"<<G4endl; |
---|
225 | #endif |
---|
226 | return lastCS*millibarn; |
---|
227 | } |
---|
228 | |
---|
229 | // The main member function giving the gamma-A cross section (E in GeV, CS in mb) |
---|
230 | G4double G4QPionMinusNuclearCrossSection::CalculateCrossSection(G4bool, G4int F, G4int I, |
---|
231 | G4int, G4int targZ, G4int targN, G4double Momentum) |
---|
232 | { |
---|
233 | static const G4double THmin=27.; // default minimum Momentum (MeV/c) Threshold |
---|
234 | static const G4double THmiG=THmin*.001; // minimum Momentum (GeV/c) Threshold |
---|
235 | static const G4double dP=10.; // step for the LEN (Low ENergy) table MeV/c |
---|
236 | static const G4double dPG=dP*.001; // step for the LEN (Low ENergy) table GeV/c |
---|
237 | static const G4int nL=105; // A#of LEN points in E (step 10 MeV/c) |
---|
238 | static const G4double Pmin=THmin+(nL-1)*dP; // minP for the HighE part with safety |
---|
239 | static const G4double Pmax=227000.; // maxP for the HEN (High ENergy) part 227 GeV |
---|
240 | static const G4int nH=224; // A#of HEN points in lnE |
---|
241 | static const G4double milP=std::log(Pmin);// Low logarithm energy for the HEN part |
---|
242 | static const G4double malP=std::log(Pmax);// High logarithm energy (each 2.75 percent) |
---|
243 | static const G4double dlP=(malP-milP)/(nH-1); // Step in log energy in the HEN part |
---|
244 | static const G4double milPG=std::log(.001*Pmin);// Low logarithmEnergy for HEN part GeV/c |
---|
245 | #ifdef debug |
---|
246 | G4cout<<"G4QPimNCS::CalcCS:N="<<targN<<",Z="<<targZ<<",P="<<Momentum<<">"<<THmin<<G4endl; |
---|
247 | #endif |
---|
248 | G4double sigma=0.; |
---|
249 | if(F&&I) sigma=0.; // @@ *!* Fake line *!* to use F & I !!!Temporary!!! |
---|
250 | G4double A=targN+targZ; // A of the target |
---|
251 | #ifdef debug |
---|
252 | G4cout<<"G4QPimNucCS::CalcCS: A="<<A<<",F="<<F<<",I="<<I<<",nL="<<nL<<",nH="<<nH<<G4endl; |
---|
253 | #endif |
---|
254 | if(F<=0) // This isotope was not the last used isotop |
---|
255 | { |
---|
256 | if(F<0) // This isotope was found in DAMDB =======> RETRIEVE |
---|
257 | { |
---|
258 | G4int sync=LEN->size(); |
---|
259 | if(sync<=I) G4cerr<<"*!*G4QPiMinusNuclCS::CalcCrosSect:Sync="<<sync<<"<="<<I<<G4endl; |
---|
260 | lastLEN=(*LEN)[I]; // Pointer to prepared LowEnergy cross sections |
---|
261 | lastHEN=(*HEN)[I]; // Pointer to prepared High Energy cross sections |
---|
262 | } |
---|
263 | else // This isotope wasn't calculated before => CREATE |
---|
264 | { |
---|
265 | lastLEN = new G4double[nL]; // Allocate memory for the new LEN cross sections |
---|
266 | lastHEN = new G4double[nH]; // Allocate memory for the new HEN cross sections |
---|
267 | // --- Instead of making a separate function --- |
---|
268 | G4double P=THmiG; // Table threshold in GeV/c |
---|
269 | for(G4int m=0; m<nL; m++) |
---|
270 | { |
---|
271 | lastLEN[m] = CrossSectionLin(targZ, targN, P); |
---|
272 | P+=dPG; |
---|
273 | } |
---|
274 | G4double lP=milPG; |
---|
275 | for(G4int n=0; n<nH; n++) |
---|
276 | { |
---|
277 | lastHEN[n] = CrossSectionLog(targZ, targN, lP); |
---|
278 | lP+=dlP; |
---|
279 | } |
---|
280 | #ifdef debug |
---|
281 | G4cout<<"-*->G4QPimNucCS::CalcCS: Tab for Z="<<targZ<<",N="<<targN<<",I="<<I<<G4endl; |
---|
282 | #endif |
---|
283 | // --- End of possible separate function |
---|
284 | // *** The synchronization check *** |
---|
285 | G4int sync=LEN->size(); |
---|
286 | if(sync!=I) |
---|
287 | { |
---|
288 | G4cerr<<"***G4QPiMinusNuclCS::CalcCrossSect: Sinc="<<sync<<"#"<<I<<", Z=" <<targZ |
---|
289 | <<", N="<<targN<<", F="<<F<<G4endl; |
---|
290 | //G4Exception("G4PiMinusNuclearCS::CalculateCS:","39",FatalException,"DBoverflow"); |
---|
291 | } |
---|
292 | LEN->push_back(lastLEN); // remember the Low Energy Table |
---|
293 | HEN->push_back(lastHEN); // remember the High Energy Table |
---|
294 | } // End of creation of the new set of parameters |
---|
295 | } // End of parameters udate |
---|
296 | // ============================== NOW the Magic Formula ================================= |
---|
297 | #ifdef debug |
---|
298 | G4cout<<"G4QPimNCS::CalcCS:lTH="<<lastTH<<",Pi="<<Pmin<<",dP="<<dP<<",dlP="<<dlP<<G4endl; |
---|
299 | #endif |
---|
300 | if (Momentum<lastTH) return 0.; // It must be already checked in the interface class |
---|
301 | else if (Momentum<Pmin) // High Energy region |
---|
302 | { |
---|
303 | #ifdef debug |
---|
304 | G4cout<<"G4QPimNCS::CalcCS:bLEN A="<<A<<", nL="<<nL<<",TH="<<THmin<<",dP="<<dP<<G4endl; |
---|
305 | #endif |
---|
306 | if(A<=1.) sigma=0.; |
---|
307 | else sigma=EquLinearFit(Momentum,nL,THmin,dP,lastLEN); |
---|
308 | #ifdef debugn |
---|
309 | if(sigma<0.) |
---|
310 | G4cout<<"G4QPimNCS::CalcCS:A="<<A<<",E="<<Momentum<<",T="<<THmin<<",dP="<<dP<<G4endl; |
---|
311 | #endif |
---|
312 | } |
---|
313 | else if (Momentum<Pmax) // High Energy region |
---|
314 | { |
---|
315 | G4double lP=std::log(Momentum); |
---|
316 | #ifdef debug |
---|
317 | G4cout<<"G4QPimNucCS::CalcCS: before HEN nH="<<nH<<",iE="<<milP<<",dlP="<<dlP<<G4endl; |
---|
318 | #endif |
---|
319 | sigma=EquLinearFit(lP,nH,milP,dlP,lastHEN); |
---|
320 | } |
---|
321 | else // UHE region (calculation, not frequent) |
---|
322 | { |
---|
323 | G4double P=0.001*Momentum; // Approximation formula is for P in GeV/c |
---|
324 | sigma=CrossSectionFormula(targZ, targN, P, std::log(P)); |
---|
325 | } |
---|
326 | #ifdef debug |
---|
327 | G4cout<<"G4QPionMinusNuclearCrossSection::CalcCS: CS="<<sigma<<G4endl; |
---|
328 | #endif |
---|
329 | if(sigma<0.) return 0.; |
---|
330 | return sigma; |
---|
331 | } |
---|
332 | |
---|
333 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) (P in GeV/c) |
---|
334 | G4double G4QPionMinusNuclearCrossSection::CrossSectionLin(G4int tZ, G4int tN, G4double P) |
---|
335 | { |
---|
336 | G4double lP=std::log(P); |
---|
337 | return CrossSectionFormula(tZ, tN, P, lP); |
---|
338 | } |
---|
339 | |
---|
340 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) log(P in GeV/c) |
---|
341 | G4double G4QPionMinusNuclearCrossSection::CrossSectionLog(G4int tZ, G4int tN, G4double lP) |
---|
342 | { |
---|
343 | G4double P=std::exp(lP); |
---|
344 | return CrossSectionFormula(tZ, tN, P, lP); |
---|
345 | } |
---|
346 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) log(P in GeV/c) |
---|
347 | G4double G4QPionMinusNuclearCrossSection::CrossSectionFormula(G4int tZ, G4int tN, |
---|
348 | G4double P, G4double lP) |
---|
349 | { |
---|
350 | G4double sigma=0.; |
---|
351 | if(tZ==1 && !tN) // PiMin-Proton interaction from G4QuasiElRatios |
---|
352 | { |
---|
353 | G4double ld=lP-3.5; |
---|
354 | G4double ld2=ld*ld; |
---|
355 | G4double p2=P*P; |
---|
356 | G4double p4=p2*p2; |
---|
357 | G4double sp=std::sqrt(P); |
---|
358 | G4double lm=lP+.36; |
---|
359 | G4double md=lm*lm+.04; |
---|
360 | G4double lh=lP-.017; |
---|
361 | G4double hd=lh*lh+.0025; |
---|
362 | G4double El=(.0557*ld2+2.4+7./sp)/(1.+.7/p4); |
---|
363 | G4double To=(.3*ld2+22.3+12./sp)/(1.+.4/p4); |
---|
364 | sigma=(To-El)+.4/md+.01/hd; |
---|
365 | } |
---|
366 | else if(tZ==1 && tN==1) // pimp_tot |
---|
367 | { |
---|
368 | G4double p2=P*P; |
---|
369 | G4double d=lP-2.7; |
---|
370 | G4double f=lP+1.25; |
---|
371 | G4double g=lP-.017; |
---|
372 | sigma=(.55*d*d+38.+23./std::sqrt(P))/(1.+.3/p2/p2)+18./(f*f+.1089)+.02/(g*g+.0025); |
---|
373 | } |
---|
374 | else if(tZ<97 && tN<152) // General solution |
---|
375 | { |
---|
376 | G4double d=lP-4.2; |
---|
377 | G4double p2=P*P; |
---|
378 | G4double p4=p2*p2; |
---|
379 | G4double a=tN+tZ; // A of the target |
---|
380 | G4double al=std::log(a); |
---|
381 | G4double sa=std::sqrt(a); |
---|
382 | G4double ssa=std::sqrt(sa); |
---|
383 | G4double a2=a*a; |
---|
384 | G4double c=41.*std::exp(al*.68)*(1.+44./a2)/(1.+8./a)/(1.+200./a2/a2); |
---|
385 | G4double f=120*sa/(1.+24./a/ssa); |
---|
386 | G4double g=-1.32-al*.043; |
---|
387 | G4double u=lP-g; |
---|
388 | G4double h=al*(.388-.046*al); |
---|
389 | sigma=(c+d*d)/(1.+.17/p4)+f/(u*u+h*h); |
---|
390 | #ifdef pdebug |
---|
391 | G4cout<<"G4QPiMinusNucCS::CSForm: A="<<a<<",P="<<P<<",CS="<<sigma<<",c="<<c<<",g="<<g |
---|
392 | <<",d="<<d<<",r="<<r<<",e="<<e<<",h="<<h<<G4endl; |
---|
393 | #endif |
---|
394 | } |
---|
395 | else |
---|
396 | { |
---|
397 | G4cerr<<"-Warning-G4QPiMinusNuclearCroSect::CSForm:*Bad A* Z="<<tZ<<", N="<<tN<<G4endl; |
---|
398 | sigma=0.; |
---|
399 | } |
---|
400 | if(sigma<0.) return 0.; |
---|
401 | return sigma; |
---|
402 | } |
---|