- Timestamp:
- Apr 6, 2009, 12:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4BGGPionElasticXS.cc
r819 r962 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BGGPionElasticXS.cc,v 1. 1 2007/03/13 15:19:30vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: G4BGGPionElasticXS.cc,v 1.3 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 46 46 #include "G4GlauberGribovCrossSection.hh" 47 47 #include "G4UPiNuclearCrossSection.hh" 48 #include "G4HadronNucleonXsc.hh" 48 49 #include "G4PionPlus.hh" 49 50 #include "G4PionMinus.hh" … … 52 53 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 53 54 54 G4BGGPionElasticXS::G4BGGPionElasticXS(const G4ParticleDefinition* p)55 G4BGGPionElasticXS::G4BGGPionElasticXS(const G4ParticleDefinition*) 55 56 { 56 57 verboseLevel = 0; 57 thEnergy = 100.*GeV; 58 if(p == G4PionPlus::PionPlus() || p == G4PionMinus::PionMinus()) { 59 fPion = new G4UPiNuclearCrossSection(); 60 fGlauber = new G4GlauberGribovCrossSection(); 61 particle = p; 62 Initialise(); 63 } else { 64 fPion = 0; 65 fGlauber = 0; 66 particle = 0; 67 if(p) G4cout << "### G4BGGPionElasticXS WARNING: is not applicable to " 68 << p->GetParticleName() 69 << G4endl; 70 else G4cout << "### G4BGGPionElasticXS WARNING: particle is not defined " 71 << G4endl; 72 } 58 fGlauberEnergy = 91.*GeV; 59 fLowEnergy = 20.*MeV; 60 fPion = 0; 61 fGlauber = 0; 62 fHadron = 0; 63 particle = 0; 64 isPiplus = false; 65 isInitialized = false; 73 66 } 74 67 … … 79 72 delete fGlauber; 80 73 delete fPion; 74 delete fHadron; 81 75 } 82 76 … … 90 84 G4double cross = 0.0; 91 85 G4double ekin = dp->GetKineticEnergy(); 92 G4int iz = G4int(Z + 0.5);86 G4int iz = G4int(Z); 93 87 if(iz > 92) iz = 92; 94 88 95 if(ekin > thEnergy) { 96 cross = theFac[iz]*fGlauber->GetElasticGlauberGribov(dp, Z, A); 89 if(ekin <= fLowEnergy) { 90 cross = theCoulombFac[iz]; 91 if(isPiplus) { cross *= CoulombFactor(ekin, A); } 92 93 } else if(iz == 1) { 94 if( A < 1.5) { 95 //fHadron->GetHadronNucleonXscPDG(dp, G4Proton::Proton()); 96 //fHadron->GetHadronNucleonXscEL(dp, G4Proton::Proton()); 97 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton()); 98 //fHadron->GetHadronNucleonXscVU(dp, G4Proton::Proton()); 99 //fHadron->GetHadronNucleonXscMK(dp, G4Proton::Proton()); 100 cross = fHadron->GetElasticHadronNucleonXsc(); 101 } else { 102 fHadron->GetHadronNucleonXscNS(dp, G4Proton::Proton()); 103 cross = fHadron->GetElasticHadronNucleonXsc(); 104 fHadron->GetHadronNucleonXscNS(dp, G4Neutron::Neutron()); 105 cross += fHadron->GetElasticHadronNucleonXsc(); 106 } 107 } else if(ekin > fGlauberEnergy) { 108 cross = theGlauberFac[iz]*fGlauber->GetElasticGlauberGribov(dp, Z, A); 97 109 } else { 98 110 cross = fPion->GetElasticCrossSection(dp, Z, A); … … 112 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 113 125 114 void G4BGGPionElasticXS::BuildPhysicsTable(const G4ParticleDefinition&) 115 { 126 void G4BGGPionElasticXS::BuildPhysicsTable(const G4ParticleDefinition& p) 127 { 128 if(&p == G4PionPlus::PionPlus() || &p == G4PionMinus::PionMinus()) { 129 particle = &p; 130 Initialise(); 131 } else { 132 G4cout << "### G4BGGPionElasticXS WARNING: is not applicable to " 133 << p.GetParticleName() 134 << G4endl; 135 } 116 136 } 117 137 … … 127 147 void G4BGGPionElasticXS::Initialise() 128 148 { 149 if(isInitialized) return; 150 isInitialized = true; 151 152 fPion = new G4UPiNuclearCrossSection(); 153 fGlauber = new G4GlauberGribovCrossSection(); 154 fHadron = new G4HadronNucleonXsc(); 155 fPion->BuildPhysicsTable(*particle); 156 fGlauber->BuildPhysicsTable(*particle); 157 if(particle == G4PionPlus::PionPlus()) isPiplus = true; 158 129 159 G4ParticleDefinition* part = const_cast<G4ParticleDefinition*>(particle); 130 160 G4ThreeVector mom(0.0,0.0,1.0); 131 G4DynamicParticle dp(part, mom, thEnergy);161 G4DynamicParticle dp(part, mom, fGlauberEnergy); 132 162 133 163 G4NistManager* nist = G4NistManager::Instance(); 134 G4double A = nist->GetAtomicMassAmu(2); 135 136 G4double csup, csdn; 164 165 G4double A, csup, csdn; 137 166 138 167 if(verboseLevel > 0) G4cout << "### G4BGGPionElasticXS::Initialise for " … … 147 176 csdn = fPion->GetElasticCrossSection(&dp, Z, A); 148 177 149 the Fac[iz] = csdn/csup;178 theGlauberFac[iz] = csdn/csup; 150 179 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A 151 << " factor= " << theFac[iz] << G4endl; 152 } 153 } 154 155 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 156 157 180 << " factor= " << theGlauberFac[iz] << G4endl; 181 } 182 dp.SetKineticEnergy(fLowEnergy); 183 fHadron->GetHadronNucleonXscNS(&dp, G4Proton::Proton()); 184 theCoulombFac[1] = fHadron->GetElasticHadronNucleonXsc(); 185 if(isPiplus) { theCoulombFac[1] /= CoulombFactor(fLowEnergy,1.0); } 186 187 for(G4int iz=2; iz<93; iz++) { 188 189 G4double Z = G4double(iz); 190 A = nist->GetAtomicMassAmu(iz); 191 192 theCoulombFac[iz] = fPion->GetElasticCrossSection(&dp, Z, A); 193 if(isPiplus) { theCoulombFac[iz] /= CoulombFactor(fLowEnergy,A); } 194 if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A 195 << " factor= " << theCoulombFac[iz] << G4endl; 196 } 197 } 198 199 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 200 201 G4double G4BGGPionElasticXS::CoulombFactor(G4double kinEnergy, G4double A) 202 { 203 G4double res= 0.0; 204 if(kinEnergy <= DBL_MIN) return res; 205 else if(A < 1.5) return kinEnergy*kinEnergy; 206 207 G4double elog = std::log10(kinEnergy/GeV); 208 209 // from G4ProtonInelasticCrossSection 210 G4double f1 = 8.0 - 8.0/A - 0.008*A; 211 G4double f2 = 2.34 - 5.4/A - 0.0028*A; 212 213 res = 1.0/(1.0 + std::exp(-f1*(elog + f2))); 214 215 f1 = 5.6 - 0.016*A; 216 f2 = 1.37 + 1.37/A; 217 res *= ( 1.0 + (0.8 + 18./A - 0.002*A)/(1.0 + std::exp(f1*(elog + f2)))); 218 return res; 219 } 220 221 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 222 223
Note: See TracChangeset
for help on using the changeset viewer.