| 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 | // By JPW, working, but to be cleaned up. @@@
|
|---|
| 27 | // 22 Dec 2006 - DHW added isotope dependence
|
|---|
| 28 | // G.Folger, 25-Nov-2009: extend to 100TeV, using a constant above 20GeV
|
|---|
| 29 | //
|
|---|
| 30 |
|
|---|
| 31 | #include "G4NeutronInelasticCrossSection.hh"
|
|---|
| 32 | #include "globals.hh"
|
|---|
| 33 |
|
|---|
| 34 | G4double G4NeutronInelasticCrossSection::
|
|---|
| 35 | GetCrossSection(const G4DynamicParticle* aPart,
|
|---|
| 36 | const G4Element* anEle, G4double /*aTemperature*/)
|
|---|
| 37 | {
|
|---|
| 38 | G4int nIso = anEle->GetNumberOfIsotopes();
|
|---|
| 39 | G4double KE = aPart->GetKineticEnergy();
|
|---|
| 40 | G4double cross_section = 0;
|
|---|
| 41 |
|
|---|
| 42 | if (nIso) {
|
|---|
| 43 | G4double psig;
|
|---|
| 44 | G4IsotopeVector* isoVector = anEle->GetIsotopeVector();
|
|---|
| 45 | G4double* abundVector = anEle->GetRelativeAbundanceVector();
|
|---|
| 46 | G4double ZZ;
|
|---|
| 47 | G4double AA;
|
|---|
| 48 |
|
|---|
| 49 | for (G4int i = 0; i < nIso; i++) {
|
|---|
| 50 | ZZ = G4double( (*isoVector)[i]->GetZ() );
|
|---|
| 51 | AA = G4double( (*isoVector)[i]->GetN() );
|
|---|
| 52 | psig = GetCrossSection(KE, AA, ZZ);
|
|---|
| 53 | cross_section += psig*abundVector[i];
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | } else {
|
|---|
| 57 | cross_section = GetCrossSection(KE, anEle->GetN(), anEle->GetZ());
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | return cross_section;
|
|---|
| 61 | }
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | G4double G4NeutronInelasticCrossSection::
|
|---|
| 65 | GetCrossSection(G4double anEnergy, G4double atomicNumber, G4double nOfProtons)
|
|---|
| 66 | {
|
|---|
| 67 | if (anEnergy > 19.9*GeV )
|
|---|
| 68 | { // constant cross section above ~20GeV.
|
|---|
| 69 | return GetCrossSection(19.8*GeV,atomicNumber,nOfProtons);
|
|---|
| 70 | }
|
|---|
| 71 | G4double kineticEnergy = std::log10(DBL_MIN/MeV);
|
|---|
| 72 | if (anEnergy > DBL_MIN/MeV) kineticEnergy = std::log10(anEnergy/MeV);
|
|---|
| 73 | G4double nOfNeutrons = atomicNumber-nOfProtons;
|
|---|
| 74 | const G4double p1=1.3773;
|
|---|
| 75 | const G4double p2=1.+10./atomicNumber-0.0006*atomicNumber;
|
|---|
| 76 | const G4double p3=0.6+13./atomicNumber-0.0005*atomicNumber;
|
|---|
| 77 | const G4double p4=7.2449-0.018242*atomicNumber;
|
|---|
| 78 | const G4double p5=1.64-1.8/atomicNumber-0.0005*atomicNumber;
|
|---|
| 79 | const G4double p6=1.+200./atomicNumber+0.02*atomicNumber;
|
|---|
| 80 | const G4double p7=(atomicNumber-70.)*(atomicNumber-200.)/11000.;
|
|---|
| 81 |
|
|---|
| 82 | G4double logN = 1.0;
|
|---|
| 83 | if (nOfNeutrons > 1.5) logN = std::log(nOfNeutrons);
|
|---|
| 84 | G4double part1 = pi*(p1*p1)*logN;
|
|---|
| 85 | G4double part2 = 1.+ std::pow(atomicNumber, 1./3.)
|
|---|
| 86 | - p2*(1.-1./std::pow(atomicNumber, 1./3.));
|
|---|
| 87 |
|
|---|
| 88 | G4double firstexp = -p4*(kineticEnergy-p5);
|
|---|
| 89 | G4double first=1.+std::exp(firstexp);
|
|---|
| 90 | G4double corr = 1.+p3*(1.-1./first);
|
|---|
| 91 |
|
|---|
| 92 | G4double secondexp = -p6*(kineticEnergy-p7);
|
|---|
| 93 | G4double second=1.+std::exp(secondexp);
|
|---|
| 94 | G4double corr2 =1./second;
|
|---|
| 95 |
|
|---|
| 96 | G4double xsec = corr*corr2*part1*part2*10.*millibarn;
|
|---|
| 97 | return xsec;
|
|---|
| 98 | }
|
|---|