Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 18-Sep-2003 First version is written by T. 26 // 18-Sep-2003 First version is written by T. Koi 27 // 12-Nov-2003 Add energy check at lower side 27 // 12-Nov-2003 Add energy check at lower side T. Koi 28 // 15-Nov-2006 Above 10GeV/n Cross Section bec 28 // 15-Nov-2006 Above 10GeV/n Cross Section become constant T. Koi (SLAC/SCCS) 29 // 23-Dec-2006 Isotope dependence adde by D. W 29 // 23-Dec-2006 Isotope dependence adde by D. Wright 30 // 14-Mar-2011 Moved constructor, destructor a << 31 // 19-Aug-2011 V.Ivanchenko move to new design << 32 // 30 // 33 31 34 #include "G4IonsShenCrossSection.hh" 32 #include "G4IonsShenCrossSection.hh" 35 #include "G4PhysicalConstants.hh" << 33 #include "G4ParticleTable.hh" 36 #include "G4SystemOfUnits.hh" << 34 #include "G4IonTable.hh" 37 #include "G4DynamicParticle.hh" << 38 #include "G4NucleiProperties.hh" << 39 #include "G4HadTmpUtil.hh" << 40 #include "G4NistManager.hh" << 41 << 42 G4IonsShenCrossSection::G4IonsShenCrossSection << 43 : G4VCrossSectionDataSet("IonsShen"), << 44 upperLimit( 10*GeV ), << 45 // lowerLimit( 10*MeV ), << 46 r0 ( 1.1 ) << 47 {} << 48 35 49 G4IonsShenCrossSection::~G4IonsShenCrossSectio << 50 {} << 51 << 52 void << 53 G4IonsShenCrossSection::CrossSectionDescriptio << 54 { << 55 outFile << "G4IonsShenCrossSection calculate << 56 << "section for nucleus-nucleus scat << 57 << "parameterization. It is valid f << 58 << "all Z, and projectile energies u << 59 << "the cross section is constant. << 60 << "is returned.\n"; << 61 } << 62 << 63 G4bool G4IonsShenCrossSection::IsElementApplic << 64 G4int, const G4Material*) << 65 { << 66 return (1 <= aDP->GetDefinition()->GetBaryon << 67 } << 68 << 69 G4double << 70 G4IonsShenCrossSection::GetElementCrossSection << 71 G4int Z, << 72 const G4Material*) << 73 { << 74 G4int A = G4lrint(G4NistManager::Instance()- << 75 return GetIsoCrossSection(aParticle, Z, A); << 76 } << 77 << 78 G4double G4IonsShenCrossSection::GetIsoCrossSe << 79 G4int Zt, G4int At, << 80 const G4Isotope*, << 81 const G4Element*, << 82 const G4Material*) << 83 36 >> 37 G4double G4IonsShenCrossSection:: >> 38 GetIsoZACrossSection(const G4DynamicParticle* aParticle, G4double ZZ, >> 39 G4double AA, G4double /*temperature*/) 84 { 40 { 85 G4double xsection = 0.0; 41 G4double xsection = 0.0; 86 42 87 G4int Ap = aParticle->GetDefinition()->GetB 43 G4int Ap = aParticle->GetDefinition()->GetBaryonNumber(); 88 G4int Zp = G4lrint(aParticle->GetDefinition << 44 G4int Zp = int ( aParticle->GetDefinition()->GetPDGCharge() / eplus + 0.5 ); 89 G4double ke_per_N = aParticle->GetKineticEn 45 G4double ke_per_N = aParticle->GetKineticEnergy() / Ap; 90 if ( ke_per_N > upperLimit ) { ke_per_N = u << 46 if ( ke_per_N > 10*GeV ) ke_per_N = 10*GeV; 91 47 92 // Apply energy check, if less than lower l << 48 // Apply energy check, if less than lower limit then 0 value is returned 93 //if ( ke_per_N < lowerLimit ) { return xs << 49 if ( ke_per_N < lowerLimit ) >> 50 return xsection; 94 51 95 G4Pow* g4pow = G4Pow::GetInstance(); << 52 G4int At = G4int(AA); 96 << 53 G4int Zt = G4int(ZZ); 97 G4double cubicrAt = g4pow->Z13(At); << 98 G4double cubicrAp = g4pow->Z13(Ap); << 99 54 >> 55 G4double one_third = 1.0 / 3.0; >> 56 >> 57 G4double cubicrAt = std::pow ( G4double(At) , G4double(one_third) ); >> 58 G4double cubicrAp = std::pow ( G4double(Ap) , G4double(one_third) ); >> 59 100 G4double Rt = 1.12 * cubicrAt - 0.94 * ( 1. 60 G4double Rt = 1.12 * cubicrAt - 0.94 * ( 1.0 / cubicrAt ); 101 G4double Rp = 1.12 * cubicrAp - 0.94 * ( 1. 61 G4double Rp = 1.12 * cubicrAp - 0.94 * ( 1.0 / cubicrAp ); 102 62 103 G4double r = Rt + Rp + 3.2; // in fm 63 G4double r = Rt + Rp + 3.2; // in fm 104 G4double b = 1.0; // in MeV/fm 64 G4double b = 1.0; // in MeV/fm 105 G4double targ_mass = G4NucleiProperties::Ge << 106 << 107 G4double proj_mass = aParticle->GetMass(); << 108 G4double proj_momentum = aParticle->GetMome << 109 << 110 G4double Ecm = calEcmValue (proj_mass, targ << 111 65 112 G4double B = 1.44 * Zt * Zp / r - b * Rt * 66 G4double B = 1.44 * Zt * Zp / r - b * Rt * Rp / ( Rt + Rp ); 113 if(Ecm <= B) { return xsection; } << 67 >> 68 //G4double ke_per_N = aParticle->GetKineticEnergy() / Ap; 114 69 115 G4double c = calCeValue ( ke_per_N / MeV ) 70 G4double c = calCeValue ( ke_per_N / MeV ); 116 71 117 G4double R1 = r0 * (cubicrAt + cubicrAp + 1 << 72 G4double R1 = r0 * ( cubicrAt + cubicrAp + 1.85 * cubicrAt * cubicrAp / ( cubicrAt + cubicrAp ) - c); 118 73 119 G4double R2 = 1.0 * ( At - 2 * Zt ) * Zp / 74 G4double R2 = 1.0 * ( At - 2 * Zt ) * Zp / ( Ap * At ); 120 75 >> 76 G4double targ_mass = G4ParticleTable::GetParticleTable()->GetIonTable()->GetIonMass( Zt , At ); >> 77 G4double proj_mass = aParticle->GetMass(); >> 78 G4double proj_momentum = aParticle->GetMomentum().mag(); >> 79 >> 80 G4double Ecm = calEcmValue ( proj_mass , targ_mass , proj_momentum ); 121 81 122 G4double R3 = (0.176 / g4pow->A13(Ecm)) * c << 82 G4double R3 = 0.176 / std::pow ( G4double(Ecm) , G4double(one_third) ) * cubicrAt * cubicrAp / ( cubicrAt + cubicrAp ); 123 83 124 G4double R = R1 + R2 + R3; 84 G4double R = R1 + R2 + R3; 125 85 126 xsection = 10 * pi * R * R * ( 1 - B / Ecm 86 xsection = 10 * pi * R * R * ( 1 - B / Ecm ); 127 xsection = xsection * millibarn; // mulit << 87 xsection = xsection * millibarn; // mulitply xsection by millibarn 128 << 88 129 return xsection; 89 return xsection; 130 } 90 } 131 91 132 G4double << 92 133 G4IonsShenCrossSection::calEcmValue(const G4do << 93 G4double G4IonsShenCrossSection:: 134 const G4do << 94 GetCrossSection(const G4DynamicParticle* aParticle, const G4Element* anElement, >> 95 G4double temperature) >> 96 { >> 97 G4int nIso = anElement->GetNumberOfIsotopes(); >> 98 G4double xsection = 0; >> 99 >> 100 if (nIso) { >> 101 G4double sig; >> 102 G4IsotopeVector* isoVector = anElement->GetIsotopeVector(); >> 103 G4double* abundVector = anElement->GetRelativeAbundanceVector(); >> 104 G4double ZZ; >> 105 G4double AA; >> 106 >> 107 for (G4int i = 0; i < nIso; i++) { >> 108 ZZ = G4double( (*isoVector)[i]->GetZ() ); >> 109 AA = G4double( (*isoVector)[i]->GetN() ); >> 110 sig = GetIsoZACrossSection(aParticle, ZZ, AA, temperature); >> 111 xsection += sig*abundVector[i]; >> 112 } >> 113 >> 114 } else { >> 115 xsection = >> 116 GetIsoZACrossSection(aParticle, anElement->GetZ(), anElement->GetN(), >> 117 temperature); >> 118 } >> 119 >> 120 return xsection; >> 121 } >> 122 >> 123 >> 124 G4double G4IonsShenCrossSection::calEcmValue( const G4double mp , const G4double mt , const G4double Plab ) 135 { 125 { 136 G4double Elab = std::sqrt ( mp * mp + Plab 126 G4double Elab = std::sqrt ( mp * mp + Plab * Plab ); 137 G4double Ecm = std::sqrt ( mp * mp + mt * m 127 G4double Ecm = std::sqrt ( mp * mp + mt * mt + 2 * Elab * mt ); 138 G4double Pcm = Plab * mt / Ecm; 128 G4double Pcm = Plab * mt / Ecm; 139 G4double KEcm = std::sqrt ( Pcm * Pcm + mp 129 G4double KEcm = std::sqrt ( Pcm * Pcm + mp * mp ) - mp; 140 return KEcm; 130 return KEcm; 141 } 131 } 142 132 143 133 144 G4double G4IonsShenCrossSection::calCeValue(co << 134 G4double G4IonsShenCrossSection::calCeValue( const G4double ke ) 145 { 135 { 146 // Calculate c value << 136 // Calculate c value 147 // This value is indepenent from projectile << 137 // This value is indepenent from projectile and target particle 148 // ke is projectile kinetic energy per nucle << 138 // ke is projectile kinetic energy per nucleon in the Lab system with MeV unit 149 // with MeV unit << 139 // fitting function is made by T. Koi 150 // fitting function is made by T. Koi << 140 // There are no data below 30 MeV/n in Kox et al., 151 // There are no data below 30 MeV/n in Kox e << 152 141 153 G4double Ce; 142 G4double Ce; 154 G4double log10_ke = std::log10 ( ke ); 143 G4double log10_ke = std::log10 ( ke ); 155 if (log10_ke > 1.5) << 144 if ( log10_ke > 1.5 ) 156 { 145 { 157 Ce = -10.0/std::pow(G4double(log10_ke), G << 146 Ce = - 10.0 / std::pow ( G4double(log10_ke) , G4double(5) ) + 2.0; 158 } 147 } 159 else 148 else 160 { 149 { 161 Ce = (-10.0/std::pow(G4double(1.5), G4dou << 150 Ce = ( - 10.0 / std::pow ( G4double(1.5) , G4double(5) ) + 2.0 ) / std::pow ( G4double(1.5) , G4double(3) ) * std::pow ( G4double(log10_ke) , G4double(3) ); 162 std::pow(G4double(1.5) , G4double(3)) << 163 } 151 } 164 return Ce; 152 return Ce; 165 } 153 } 166 << 167 154