[1199] | 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: geant4-09-03-cand-01 $ |
---|
| 29 | // |
---|
| 30 | // |
---|
| 31 | // G4 Physics class: G4QHyperonNuclearCrossSection 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 property of the CHIPS hadronic package in Geant4 (M. Kosov) ***** |
---|
| 37 | // *********** DO NOT MAKE ANY CHANGE without approval of Mikhail.Kossov@cern.ch ********** |
---|
| 38 | // **************************************************************************************** |
---|
| 39 | // Short description: CHIPS cross-sections for Hyperon(minus&neutral)-nuclear interactions |
---|
| 40 | // ------------------------------------------------------------------------------------- |
---|
| 41 | // |
---|
| 42 | //#define debug |
---|
| 43 | //#define pdebug |
---|
| 44 | //#define debug3 |
---|
| 45 | //#define debugn |
---|
| 46 | //#define debugs |
---|
| 47 | |
---|
| 48 | #include "G4QHyperonNuclearCrossSection.hh" |
---|
| 49 | |
---|
| 50 | // Initialization of the |
---|
| 51 | G4double* G4QHyperonNuclearCrossSection::lastLEN=0; // Pointer to the lastArray of LowEn CS |
---|
| 52 | G4double* G4QHyperonNuclearCrossSection::lastHEN=0; // Pointer to the lastArray of HighEn CS |
---|
| 53 | G4int G4QHyperonNuclearCrossSection::lastN=0; // The last N of calculated nucleus |
---|
| 54 | G4int G4QHyperonNuclearCrossSection::lastZ=0; // The last Z of calculated nucleus |
---|
| 55 | G4double G4QHyperonNuclearCrossSection::lastP=0.; // Last used in cross section Momentum |
---|
| 56 | G4double G4QHyperonNuclearCrossSection::lastTH=0.; // Last threshold momentum |
---|
| 57 | G4double G4QHyperonNuclearCrossSection::lastCS=0.; // Last value of the Cross Section |
---|
| 58 | G4int G4QHyperonNuclearCrossSection::lastI=0; // The last position in the DAMDB |
---|
| 59 | std::vector<G4double*>* G4QHyperonNuclearCrossSection::LEN = new std::vector<G4double*>; |
---|
| 60 | std::vector<G4double*>* G4QHyperonNuclearCrossSection::HEN = new std::vector<G4double*>; |
---|
| 61 | |
---|
| 62 | // Returns Pointer to the G4VQCrossSection class |
---|
| 63 | G4VQCrossSection* G4QHyperonNuclearCrossSection::GetPointer() |
---|
| 64 | { |
---|
| 65 | static G4QHyperonNuclearCrossSection theCrossSection; //**Static body of Cross Section** |
---|
| 66 | return &theCrossSection; |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | G4QHyperonNuclearCrossSection::~G4QHyperonNuclearCrossSection() |
---|
| 70 | { |
---|
| 71 | G4int lens=LEN->size(); |
---|
| 72 | for(G4int i=0; i<lens; ++i) delete[] (*LEN)[i]; |
---|
| 73 | delete LEN; |
---|
| 74 | G4int hens=HEN->size(); |
---|
| 75 | for(G4int i=0; i<hens; ++i) delete[] (*HEN)[i]; |
---|
| 76 | delete HEN; |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | // The main member function giving the collision cross section (P is in IU, CS is in mb) |
---|
| 80 | // Make pMom in independent units ! (Now it is MeV) |
---|
| 81 | G4double G4QHyperonNuclearCrossSection::GetCrossSection(G4bool fCS, G4double pMom, |
---|
| 82 | G4int tgZ, G4int tgN, G4int PDG) |
---|
| 83 | { |
---|
| 84 | static G4double tolerance=0.001; // Tolerance (0.1%) to consider as "the same mom" |
---|
| 85 | static G4int j; // A#0f Z/N-records already tested in AMDB |
---|
| 86 | static std::vector <G4int> colN; // Vector of N for calculated nuclei (isotops) |
---|
| 87 | static std::vector <G4int> colZ; // Vector of Z for calculated nuclei (isotops) |
---|
| 88 | static std::vector <G4double> colP; // Vector of last momenta for the reaction |
---|
| 89 | static std::vector <G4double> colTH; // Vector of energy thresholds for the reaction |
---|
| 90 | static std::vector <G4double> colCS; // Vector of last cross sections for the reaction |
---|
| 91 | // ***---*** End of the mandatory Static Definitions of the Associative Memory ***---*** |
---|
| 92 | #ifdef debug |
---|
| 93 | G4cout<<"G4QPrCS::GetCS:>>> f="<<fCS<<", p="<<pMom<<", Z="<<tgZ<<"("<<lastZ<<") ,N="<<tgN |
---|
| 94 | <<"("<<lastN<<"),PDG=2212, thresh="<<lastTH<<",Sz="<<colN.size()<<G4endl; |
---|
| 95 | #endif |
---|
| 96 | if(PDG!=3122 && PDG!=3212 && PDG!=3112 && PDG!=3322 && PDG!=3312 && PDG!=3334) |
---|
| 97 | G4cout<<"-Warning-G4QHyperonCS::GetCS:Not a Zero or Negative Hyperon,PDG="<<PDG<<G4endl; |
---|
| 98 | G4bool in=false; // By default the isotope must be found in the AMDB |
---|
| 99 | if(tgN!=lastN || tgZ!=lastZ) // The nucleus was not the last used isotope |
---|
| 100 | { |
---|
| 101 | in = false; // By default the isotope haven't be found in AMDB |
---|
| 102 | lastP = 0.; // New momentum history (nothing to compare with) |
---|
| 103 | lastN = tgN; // The last N of the calculated nucleus |
---|
| 104 | lastZ = tgZ; // The last Z of the calculated nucleus |
---|
| 105 | lastI = colN.size(); // Size of the Associative Memory DB in the heap |
---|
| 106 | j = 0; // A#0f records found in DB for this projectile |
---|
| 107 | #ifdef debug |
---|
| 108 | G4cout<<"G4QPrCS::GetCS: the amount of records in the AMDB lastI="<<lastI<<G4endl; |
---|
| 109 | #endif |
---|
| 110 | if(lastI) for(G4int i=0; i<lastI; i++) // AMDB exists, try to find the (Z,N) isotope |
---|
| 111 | { |
---|
| 112 | if(colN[i]==tgN && colZ[i]==tgZ) // Try the record "i" in the AMDB |
---|
| 113 | { |
---|
| 114 | lastI=i; // Remember the index for future fast/last use |
---|
| 115 | lastTH =colTH[i]; // The last THreshold (A-dependent) |
---|
| 116 | #ifdef debug |
---|
| 117 | G4cout<<"G4QPrCS::GetCS:*Found* P="<<pMom<<",Threshold="<<lastTH<<",j="<<j<<G4endl; |
---|
| 118 | #endif |
---|
| 119 | if(pMom<=lastTH) |
---|
| 120 | { |
---|
| 121 | #ifdef debug |
---|
| 122 | G4cout<<"G4QPCS::GetCS:Found,P="<<pMom<<" < Threshold="<<lastTH<<",CS=0"<<G4endl; |
---|
| 123 | #endif |
---|
| 124 | return 0.; // Energy is below the Threshold value |
---|
| 125 | } |
---|
| 126 | lastP =colP [i]; // Last Momentum (A-dependent) |
---|
| 127 | lastCS =colCS[i]; // Last CrossSect (A-dependent) |
---|
| 128 | if(std::fabs(lastP-pMom)<tolerance*pMom) |
---|
| 129 | //if(lastP==pMom) // VI do not use tolerance |
---|
| 130 | { |
---|
| 131 | #ifdef debug |
---|
| 132 | G4cout<<"..G4QPrCS::GetCS:.DoNothing.P="<<pMom<<",CS="<<lastCS*millibarn<<G4endl; |
---|
| 133 | #endif |
---|
| 134 | //CalculateCrossSection(fCS,-1,j,2212,lastZ,lastN,pMom); // Update param's only |
---|
| 135 | return lastCS*millibarn; // Use theLastCS |
---|
| 136 | } |
---|
| 137 | in = true; // This is the case when the isotop is found in DB |
---|
| 138 | // Momentum pMom is in IU ! @@ Units |
---|
| 139 | #ifdef debug |
---|
| 140 | G4cout<<"G4QPrCS::G:UpdatDB P="<<pMom<<",f="<<fCS<<",lI="<<lastI<<",j="<<j<<G4endl; |
---|
| 141 | #endif |
---|
| 142 | lastCS=CalculateCrossSection(fCS,-1,j,2212,lastZ,lastN,pMom); // read & update |
---|
| 143 | #ifdef debug |
---|
| 144 | G4cout<<"G4QPrCS::GetCrosSec: *****> New (inDB) Calculated CS="<<lastCS<<G4endl; |
---|
| 145 | #endif |
---|
| 146 | if(lastCS<=0. && pMom>lastTH) // Correct the threshold (@@ No intermediate Zeros) |
---|
| 147 | { |
---|
| 148 | #ifdef debug |
---|
| 149 | G4cout<<"G4QPrCS::GetCS: New P="<<pMom<<"(CS=0) > Threshold="<<lastTH<<G4endl; |
---|
| 150 | #endif |
---|
| 151 | lastCS=0.; |
---|
| 152 | lastTH=pMom; |
---|
| 153 | } |
---|
| 154 | break; // Go out of the LOOP |
---|
| 155 | } |
---|
| 156 | #ifdef debug |
---|
| 157 | G4cout<<"-->G4QPrCrossSec::GetCrosSec: pPDG=2212, j="<<j<<", N="<<colN[i] |
---|
| 158 | <<",Z["<<i<<"]="<<colZ[i]<<G4endl; |
---|
| 159 | #endif |
---|
| 160 | j++; // Increment a#0f records found in DB |
---|
| 161 | } |
---|
| 162 | #ifdef debug |
---|
| 163 | G4cout<<"-?-G4QPrCS::GetCS:RC Z="<<tgZ<<",N="<<tgN<<",in="<<in<<",j="<<j<<" ?"<<G4endl; |
---|
| 164 | #endif |
---|
| 165 | if(!in) // This isotope has not been calculated previously |
---|
| 166 | { |
---|
| 167 | #ifdef debug |
---|
| 168 | G4cout<<"^^^G4QPrCS::GetCS:CalcNew P="<<pMom<<", f="<<fCS<<", lastI="<<lastI<<G4endl; |
---|
| 169 | #endif |
---|
| 170 | //!!The slave functions must provide cross-sections in millibarns (mb) !! (not in IU) |
---|
| 171 | lastCS=CalculateCrossSection(fCS,0,j,2212,lastZ,lastN,pMom); //calculate & create |
---|
| 172 | //if(lastCS>0.) // It means that the AMBD was initialized |
---|
| 173 | //{ |
---|
| 174 | |
---|
| 175 | lastTH = ThresholdEnergy(tgZ, tgN); // The Threshold Energy which is now the last |
---|
| 176 | #ifdef debug |
---|
| 177 | G4cout<<"G4QPrCrossSection::GetCrossSect: NewThresh="<<lastTH<<",P="<<pMom<<G4endl; |
---|
| 178 | #endif |
---|
| 179 | colN.push_back(tgN); |
---|
| 180 | colZ.push_back(tgZ); |
---|
| 181 | colP.push_back(pMom); |
---|
| 182 | colTH.push_back(lastTH); |
---|
| 183 | colCS.push_back(lastCS); |
---|
| 184 | #ifdef debug |
---|
| 185 | G4cout<<"G4QPrCS::GetCrosSec:recCS="<<lastCS<<",lZ="<<lastN<<",lN="<<lastZ<<G4endl; |
---|
| 186 | #endif |
---|
| 187 | //} // M.K. Presence of H1 with high threshold breaks the syncronization |
---|
| 188 | #ifdef pdebug |
---|
| 189 | G4cout<<"G4QPrCS::GetCS:1st,P="<<pMom<<"(MeV),CS="<<lastCS*millibarn<<"(mb)"<<G4endl; |
---|
| 190 | #endif |
---|
| 191 | return lastCS*millibarn; |
---|
| 192 | } // End of creation of the new set of parameters |
---|
| 193 | else |
---|
| 194 | { |
---|
| 195 | #ifdef debug |
---|
| 196 | G4cout<<"G4QPrCS::GetCS: Update lastI="<<lastI<<",j="<<j<<G4endl; |
---|
| 197 | #endif |
---|
| 198 | colP[lastI]=pMom; |
---|
| 199 | colCS[lastI]=lastCS; |
---|
| 200 | } |
---|
| 201 | } // End of parameters udate |
---|
| 202 | else if(pMom<=lastTH) |
---|
| 203 | { |
---|
| 204 | #ifdef debug |
---|
| 205 | G4cout<<"G4QPrCS::GetCS: Current P="<<pMom<<" < Threshold="<<lastTH<<", CS=0"<<G4endl; |
---|
| 206 | #endif |
---|
| 207 | return 0.; // Momentum is below the Threshold Value -> CS=0 |
---|
| 208 | } |
---|
| 209 | else if(std::fabs(lastP-pMom)<tolerance*pMom) |
---|
| 210 | //else if(lastP==pMom) // VI do not use tolerance |
---|
| 211 | { |
---|
| 212 | #ifdef debug |
---|
| 213 | G4cout<<"..G4QPCS::GetCS:OldNZ&P="<<lastP<<"="<<pMom<<",CS="<<lastCS*millibarn<<G4endl; |
---|
| 214 | #endif |
---|
| 215 | return lastCS*millibarn; // Use theLastCS |
---|
| 216 | } |
---|
| 217 | else // It is the last used -> use the current tables |
---|
| 218 | { |
---|
| 219 | #ifdef debug |
---|
| 220 | G4cout<<"-!-G4QPCS::GetCS:UseCur P="<<pMom<<",f="<<fCS<<",I="<<lastI<<",j="<<j<<G4endl; |
---|
| 221 | #endif |
---|
| 222 | lastCS=CalculateCrossSection(fCS,1,j,2212,lastZ,lastN,pMom); // Only read and UpdateDB |
---|
| 223 | lastP=pMom; |
---|
| 224 | } |
---|
| 225 | #ifdef debug |
---|
| 226 | G4cout<<"==>G4QPrCS::GetCroSec: P="<<pMom<<"(MeV),CS="<<lastCS*millibarn<<"(mb)"<<G4endl; |
---|
| 227 | #endif |
---|
| 228 | return lastCS*millibarn; |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | // The main member function giving the gamma-A cross section (E in GeV, CS in mb) |
---|
| 232 | G4double G4QHyperonNuclearCrossSection::CalculateCrossSection(G4bool, G4int F, G4int I, |
---|
| 233 | G4int, G4int targZ, G4int targN, G4double Momentum) |
---|
| 234 | { |
---|
| 235 | static const G4double THmin=27.; // default minimum Momentum (MeV/c) Threshold |
---|
| 236 | static const G4double THmiG=THmin*.001; // minimum Momentum (GeV/c) Threshold |
---|
| 237 | static const G4double dP=10.; // step for the LEN (Low ENergy) table MeV/c |
---|
| 238 | static const G4double dPG=dP*.001; // step for the LEN (Low ENergy) table GeV/c |
---|
| 239 | static const G4int nL=105; // A#of LEN points in E (step 10 MeV/c) |
---|
| 240 | static const G4double Pmin=THmin+(nL-1)*dP; // minP for the HighE part with safety |
---|
| 241 | static const G4double Pmax=227000.; // maxP for the HEN (High ENergy) part 227 GeV |
---|
| 242 | static const G4int nH=224; // A#of HEN points in lnE |
---|
| 243 | static const G4double milP=std::log(Pmin);// Low logarithm energy for the HEN part |
---|
| 244 | static const G4double malP=std::log(Pmax);// High logarithm energy (each 2.75 percent) |
---|
| 245 | static const G4double dlP=(malP-milP)/(nH-1); // Step in log energy in the HEN part |
---|
| 246 | static const G4double milPG=std::log(.001*Pmin);// Low logarithmEnergy for HEN part GeV/c |
---|
| 247 | #ifdef debug |
---|
| 248 | G4cout<<"G4QProtNCS::CalCS:N="<<targN<<",Z="<<targZ<<",P="<<Momentum<<">"<<THmin<<G4endl; |
---|
| 249 | #endif |
---|
| 250 | G4double sigma=0.; |
---|
| 251 | if(F&&I) sigma=0.; // @@ *!* Fake line *!* to use F & I !!!Temporary!!! |
---|
| 252 | G4double A=targN+targZ; // A of the target |
---|
| 253 | #ifdef debug |
---|
| 254 | G4cout<<"G4QProtNucCS::CalCS: A="<<A<<",F="<<F<<",I="<<I<<",nL="<<nL<<",nH="<<nH<<G4endl; |
---|
| 255 | #endif |
---|
| 256 | if(F<=0) // This isotope was not the last used isotop |
---|
| 257 | { |
---|
| 258 | if(F<0) // This isotope was found in DAMDB =======> RETRIEVE |
---|
| 259 | { |
---|
| 260 | G4int sync=LEN->size(); |
---|
| 261 | if(sync<=I) G4cerr<<"*!*G4QPiMinusNuclCS::CalcCrosSect:Sync="<<sync<<"<="<<I<<G4endl; |
---|
| 262 | lastLEN=(*LEN)[I]; // Pointer to prepared LowEnergy cross sections |
---|
| 263 | lastHEN=(*HEN)[I]; // Pointer to prepared High Energy cross sections |
---|
| 264 | } |
---|
| 265 | else // This isotope wasn't calculated before => CREATE |
---|
| 266 | { |
---|
| 267 | lastLEN = new G4double[nL]; // Allocate memory for the new LEN cross sections |
---|
| 268 | lastHEN = new G4double[nH]; // Allocate memory for the new HEN cross sections |
---|
| 269 | // --- Instead of making a separate function --- |
---|
| 270 | G4double P=THmiG; // Table threshold in GeV/c |
---|
| 271 | for(G4int m=0; m<nL; m++) |
---|
| 272 | { |
---|
| 273 | lastLEN[m] = CrossSectionLin(targZ, targN, P); |
---|
| 274 | P+=dPG; |
---|
| 275 | } |
---|
| 276 | G4double lP=milPG; |
---|
| 277 | for(G4int n=0; n<nH; n++) |
---|
| 278 | { |
---|
| 279 | lastHEN[n] = CrossSectionLog(targZ, targN, lP); |
---|
| 280 | lP+=dlP; |
---|
| 281 | } |
---|
| 282 | #ifdef debug |
---|
| 283 | G4cout<<"-*->G4QPr0tNucCS::CalcCS:Tab for Z="<<targZ<<",N="<<targN<<",I="<<I<<G4endl; |
---|
| 284 | #endif |
---|
| 285 | // --- End of possible separate function |
---|
| 286 | // *** The synchronization check *** |
---|
| 287 | G4int sync=LEN->size(); |
---|
| 288 | if(sync!=I) |
---|
| 289 | { |
---|
| 290 | G4cerr<<"***G4QPiMinusNuclCS::CalcCrossSect: Sinc="<<sync<<"#"<<I<<", Z=" <<targZ |
---|
| 291 | <<", N="<<targN<<", F="<<F<<G4endl; |
---|
| 292 | //G4Exception("G4PiMinusNuclearCS::CalculateCS:","39",FatalException,"DBoverflow"); |
---|
| 293 | } |
---|
| 294 | LEN->push_back(lastLEN); // remember the Low Energy Table |
---|
| 295 | HEN->push_back(lastHEN); // remember the High Energy Table |
---|
| 296 | } // End of creation of the new set of parameters |
---|
| 297 | } // End of parameters udate |
---|
| 298 | // ============================== NOW the Magic Formula ================================= |
---|
| 299 | #ifdef debug |
---|
| 300 | G4cout<<"G4QPrNCS::CalcCS:lTH="<<lastTH<<",Pmi="<<Pmin<<",dP="<<dP<<",dlP="<<dlP<<G4endl; |
---|
| 301 | #endif |
---|
| 302 | if (Momentum<lastTH) return 0.; // It must be already checked in the interface class |
---|
| 303 | else if (Momentum<Pmin) // High Energy region |
---|
| 304 | { |
---|
| 305 | #ifdef debug |
---|
| 306 | G4cout<<"G4QPrNCS::CalcCS:bLEN A="<<A<<", nL="<<nL<<",TH="<<THmin<<",dP="<<dP<<G4endl; |
---|
| 307 | #endif |
---|
| 308 | if(A<=1.) sigma=0.; |
---|
| 309 | else sigma=EquLinearFit(Momentum,nL,THmin,dP,lastLEN); |
---|
| 310 | #ifdef debugn |
---|
| 311 | if(sigma<0.) |
---|
| 312 | G4cout<<"G4QPrNuCS::CalcCS:A="<<A<<",E="<<Momentum<<",T="<<THmin<<",dP="<<dP<<G4endl; |
---|
| 313 | #endif |
---|
| 314 | } |
---|
| 315 | else if (Momentum<Pmax) // High Energy region |
---|
| 316 | { |
---|
| 317 | G4double lP=std::log(Momentum); |
---|
| 318 | #ifdef debug |
---|
| 319 | G4cout<<"G4QProtNucCS::CalcCS: before HEN nH="<<nH<<",iE="<<milP<<",dlP="<<dlP<<G4endl; |
---|
| 320 | #endif |
---|
| 321 | sigma=EquLinearFit(lP,nH,milP,dlP,lastHEN); |
---|
| 322 | } |
---|
| 323 | else // UHE region (calculation, not frequent) |
---|
| 324 | { |
---|
| 325 | G4double P=0.001*Momentum; // Approximation formula is for P in GeV/c |
---|
| 326 | sigma=CrossSectionFormula(targZ, targN, P, std::log(P)); |
---|
| 327 | } |
---|
| 328 | #ifdef debug |
---|
| 329 | G4cout<<"G4QHyperonNuclearCrossSection::CalcCS: CS="<<sigma<<G4endl; |
---|
| 330 | #endif |
---|
| 331 | if(sigma<0.) return 0.; |
---|
| 332 | return sigma; |
---|
| 333 | } |
---|
| 334 | |
---|
| 335 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) (P in GeV/c) |
---|
| 336 | G4double G4QHyperonNuclearCrossSection::CrossSectionLin(G4int tZ, G4int tN, G4double P) |
---|
| 337 | { |
---|
| 338 | G4double lP=std::log(P); |
---|
| 339 | return CrossSectionFormula(tZ, tN, P, lP); |
---|
| 340 | } |
---|
| 341 | |
---|
| 342 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) log(P in GeV/c) |
---|
| 343 | G4double G4QHyperonNuclearCrossSection::CrossSectionLog(G4int tZ, G4int tN, G4double lP) |
---|
| 344 | { |
---|
| 345 | G4double P=std::exp(lP); |
---|
| 346 | return CrossSectionFormula(tZ, tN, P, lP); |
---|
| 347 | } |
---|
| 348 | // Calculation formula for piMinus-nuclear inelastic cross-section (mb) log(P in GeV/c) |
---|
| 349 | G4double G4QHyperonNuclearCrossSection::CrossSectionFormula(G4int tZ, G4int tN, |
---|
| 350 | G4double P, G4double lP) |
---|
| 351 | { |
---|
| 352 | G4double sigma=0.; |
---|
| 353 | if(tZ==1 && !tN) // Hyperon-P interaction from G4QuasiElastRatios |
---|
| 354 | { |
---|
| 355 | G4double ld=lP-3.5; |
---|
| 356 | G4double ld2=ld*ld; |
---|
| 357 | G4double p2=P*P; |
---|
| 358 | G4double p4=p2*p2; |
---|
| 359 | G4double sp=std::sqrt(P); |
---|
| 360 | G4double El=(.0557*ld2+6.72+99./p2)/(1.+2./sp+2./p4); |
---|
| 361 | G4double To=(.3*ld2+38.2+900./sp)/(1.+27./sp+3./p4); |
---|
| 362 | sigma=To-El; |
---|
| 363 | } |
---|
| 364 | else if(tZ<97 && tN<152) // General solution |
---|
| 365 | { |
---|
| 366 | G4double d=lP-4.2; |
---|
| 367 | G4double p2=P*P; |
---|
| 368 | G4double p4=p2*p2; |
---|
| 369 | G4double sp=std::sqrt(P); |
---|
| 370 | G4double ssp=std::sqrt(sp); |
---|
| 371 | G4double a=tN+tZ; // A of the target |
---|
| 372 | G4double al=std::log(a); |
---|
| 373 | G4double sa=std::sqrt(a); |
---|
| 374 | G4double a2=a*a; |
---|
| 375 | G4double a2s=a2*sa; |
---|
| 376 | G4double a4=a2*a2; |
---|
| 377 | G4double a8=a4*a4; |
---|
| 378 | G4double c=(170.+3600./a2s)/(1.+65./a2s); |
---|
| 379 | G4double g=42.*(std::exp(al*0.8)+4.E-8*a4)/(1.+28./a)/(1.+5.E-5*a2); |
---|
| 380 | G4double e=390.; // Defolt values for deutrons |
---|
| 381 | G4double r=0.27; |
---|
| 382 | G4double h=2.E-7; |
---|
| 383 | G4double t=0.3; |
---|
| 384 | if(tZ>1 || tN>1) |
---|
| 385 | { |
---|
| 386 | e=380.+18.*a2/(1.+a2/60.)/(1.+2.E-19*a8); |
---|
| 387 | r=0.15; |
---|
| 388 | h=1.E-8*a2/(1.+a2/17.)/(1.+3.E-20*a8); |
---|
| 389 | t=(.2+.00056*a2)/(1.+a2*.0006); |
---|
| 390 | } |
---|
| 391 | sigma=(c+d*d)/(1.+t/ssp+r/p4)+(g+e*std::exp(-6.*P))/(1.+h/p4/p4); |
---|
| 392 | #ifdef pdebug |
---|
| 393 | G4cout<<"G4QHyperonNucCS::CSForm: A="<<a<<",P="<<P<<",CS="<<sigma<<",c="<<c<<",g="<<g |
---|
| 394 | <<",d="<<d<<",r="<<r<<",e="<<e<<",h="<<h<<G4endl; |
---|
| 395 | #endif |
---|
| 396 | } |
---|
| 397 | else |
---|
| 398 | { |
---|
| 399 | G4cerr<<"-Warning-G4QHyperonNuclearCroSect::CSForm:*Bad A* Z="<<tZ<<", N="<<tN<<G4endl; |
---|
| 400 | sigma=0.; |
---|
| 401 | } |
---|
| 402 | if(sigma<0.) return 0.; |
---|
| 403 | return sigma; |
---|
| 404 | } |
---|