| 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 | // 12.08.06 V.Ivanchenko - first implementation
|
|---|
| 28 | // 22.01.07 V.Ivanchenko - add GetIsoZACrossSection
|
|---|
| 29 | // 05.03.07 V.Ivanchenko - use G4NucleonNuclearCrossSection
|
|---|
| 30 | // 06.03.07 V.Ivanchenko - add Initialise function
|
|---|
| 31 | //
|
|---|
| 32 | //
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | #include "G4UElasticCrossSection.hh"
|
|---|
| 36 |
|
|---|
| 37 | #include "G4ParticleTable.hh"
|
|---|
| 38 | #include "G4GlauberGribovCrossSection.hh"
|
|---|
| 39 | #include "G4NucleonNuclearCrossSection.hh"
|
|---|
| 40 | #include "G4UPiNuclearCrossSection.hh"
|
|---|
| 41 | #include "G4HadronCrossSections.hh"
|
|---|
| 42 | #include "G4ParticleDefinition.hh"
|
|---|
| 43 | #include "G4Element.hh"
|
|---|
| 44 | #include "G4Proton.hh"
|
|---|
| 45 | #include "G4Neutron.hh"
|
|---|
| 46 | #include "G4PionPlus.hh"
|
|---|
| 47 | #include "G4PionMinus.hh"
|
|---|
| 48 | #include "G4NistManager.hh"
|
|---|
| 49 |
|
|---|
| 50 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 51 |
|
|---|
| 52 | G4UElasticCrossSection::G4UElasticCrossSection(const G4ParticleDefinition*)
|
|---|
| 53 | {
|
|---|
| 54 | verboseLevel = 0;
|
|---|
| 55 | hasGlauber = false;
|
|---|
| 56 | thEnergy = 90.*GeV;
|
|---|
| 57 | fGlauber = new G4GlauberGribovCrossSection();
|
|---|
| 58 | fGheisha = G4HadronCrossSections::Instance();
|
|---|
| 59 | fNucleon = 0;
|
|---|
| 60 | fUPi = 0;
|
|---|
| 61 | }
|
|---|
| 62 |
|
|---|
| 63 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 64 |
|
|---|
| 65 | G4UElasticCrossSection::~G4UElasticCrossSection()
|
|---|
| 66 | {
|
|---|
| 67 | delete fGlauber;
|
|---|
| 68 | if(fNucleon) delete fNucleon;
|
|---|
| 69 | if(fUPi) delete fUPi;
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 73 |
|
|---|
| 74 | G4bool G4UElasticCrossSection::IsApplicable(const G4DynamicParticle* dp,
|
|---|
| 75 | const G4Element* elm)
|
|---|
| 76 | {
|
|---|
| 77 | return IsZAApplicable(dp, elm->GetZ(), elm->GetN());
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 81 |
|
|---|
| 82 | G4bool G4UElasticCrossSection::IsZAApplicable(const G4DynamicParticle* dp,
|
|---|
| 83 | G4double Z, G4double A)
|
|---|
| 84 | {
|
|---|
| 85 | G4bool res = false;
|
|---|
| 86 | if(fNucleon || fUPi) res = true;
|
|---|
| 87 | else res = fGheisha->IsApplicable(dp, Z, A);
|
|---|
| 88 | if(verboseLevel > 1)
|
|---|
| 89 | G4cout << "G4UElasticCrossSection::IsApplicable for "
|
|---|
| 90 | << dp->GetDefinition()->GetParticleName()
|
|---|
| 91 | << " Ekin(GeV)= " << dp->GetKineticEnergy()
|
|---|
| 92 | << G4endl;
|
|---|
| 93 | return res;
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 97 |
|
|---|
| 98 | G4double G4UElasticCrossSection::GetCrossSection(const G4DynamicParticle* dp,
|
|---|
| 99 | const G4Element* elm,
|
|---|
| 100 | G4double temp)
|
|---|
| 101 | {
|
|---|
| 102 | return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
|
|---|
| 103 | }
|
|---|
| 104 |
|
|---|
| 105 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 106 |
|
|---|
| 107 | G4double G4UElasticCrossSection::GetIsoZACrossSection(const G4DynamicParticle* dp,
|
|---|
| 108 | G4double Z,
|
|---|
| 109 | G4double A,
|
|---|
| 110 | G4double)
|
|---|
| 111 | {
|
|---|
| 112 | G4double cross = 0.0;
|
|---|
| 113 | G4double ekin = dp->GetKineticEnergy();
|
|---|
| 114 | G4int iz = G4int(Z);
|
|---|
| 115 | if(iz > 92) iz = 92;
|
|---|
| 116 |
|
|---|
| 117 | // proton and neutron
|
|---|
| 118 | if(fNucleon) {
|
|---|
| 119 | if(iz == 1) cross = fGheisha->GetElasticCrossSection(dp, Z, A);
|
|---|
| 120 | else if(ekin > thEnergy) {
|
|---|
| 121 | cross = theFac[iz]*fGlauber->GetElasticGlauberGribov(dp, Z, A);
|
|---|
| 122 | } else {
|
|---|
| 123 | cross = fNucleon->GetElasticCrossSection(dp, Z, A);
|
|---|
| 124 | }
|
|---|
| 125 |
|
|---|
| 126 | // pions
|
|---|
| 127 | } else if(fUPi) {
|
|---|
| 128 | if(iz == 1) cross = fGheisha->GetElasticCrossSection(dp, Z, A);
|
|---|
| 129 | else if(ekin > thEnergy) {
|
|---|
| 130 | cross = theFac[iz]*fGlauber->GetElasticGlauberGribov(dp, Z, A);
|
|---|
| 131 | } else {
|
|---|
| 132 | cross = fUPi->GetElasticCrossSection(dp, Z, A);
|
|---|
| 133 | }
|
|---|
| 134 |
|
|---|
| 135 | //others
|
|---|
| 136 | } else {
|
|---|
| 137 | if(hasGlauber && ekin > thEnergy) {
|
|---|
| 138 | cross = theFac[iz]*fGlauber->GetElasticGlauberGribov(dp, Z, A);
|
|---|
| 139 | } else if(fGheisha->IsApplicable(dp, Z, A)) {
|
|---|
| 140 | cross = fGheisha->GetElasticCrossSection(dp, Z, A);
|
|---|
| 141 | }
|
|---|
| 142 | }
|
|---|
| 143 |
|
|---|
| 144 | if(verboseLevel > 1)
|
|---|
| 145 | G4cout << "G4UElasticCrossSection::GetCrossSection for "
|
|---|
| 146 | << dp->GetDefinition()->GetParticleName()
|
|---|
| 147 | << " Ekin(GeV)= " << dp->GetKineticEnergy()
|
|---|
| 148 | << " in nucleus Z= " << Z << " A= " << A
|
|---|
| 149 | << " XS(b)= " << cross/barn
|
|---|
| 150 | << G4endl;
|
|---|
| 151 |
|
|---|
| 152 | return cross;
|
|---|
| 153 | }
|
|---|
| 154 |
|
|---|
| 155 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 156 |
|
|---|
| 157 | void G4UElasticCrossSection::BuildPhysicsTable(const G4ParticleDefinition& p)
|
|---|
| 158 | {
|
|---|
| 159 | if(&p == G4Proton::Proton() || &p == G4Neutron::Neutron()) {
|
|---|
| 160 | fNucleon = new G4NucleonNuclearCrossSection();
|
|---|
| 161 | } else if(&p == G4PionPlus::PionPlus() || &p == G4PionMinus::PionMinus()) {
|
|---|
| 162 | fUPi = new G4UPiNuclearCrossSection();
|
|---|
| 163 | }
|
|---|
| 164 | Initialise(&p);
|
|---|
| 165 | }
|
|---|
| 166 |
|
|---|
| 167 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 168 |
|
|---|
| 169 | void G4UElasticCrossSection::DumpPhysicsTable(const G4ParticleDefinition&)
|
|---|
| 170 | {
|
|---|
| 171 | G4cout << "G4UElasticCrossSection:"<<G4endl;
|
|---|
| 172 | }
|
|---|
| 173 |
|
|---|
| 174 |
|
|---|
| 175 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 176 |
|
|---|
| 177 | void G4UElasticCrossSection::Initialise(const G4ParticleDefinition* p)
|
|---|
| 178 | {
|
|---|
| 179 | G4ParticleDefinition* part = const_cast<G4ParticleDefinition*>(p);
|
|---|
| 180 | G4ThreeVector mom(0.0,0.0,1.0);
|
|---|
| 181 | G4DynamicParticle dp(part, mom, thEnergy);
|
|---|
| 182 |
|
|---|
| 183 | G4NistManager* nist = G4NistManager::Instance();
|
|---|
| 184 | G4double A = nist->GetAtomicMassAmu(2);
|
|---|
| 185 |
|
|---|
| 186 | if(fGlauber->IsZAApplicable(&dp, 2.0, A)) {
|
|---|
| 187 | hasGlauber = true;
|
|---|
| 188 |
|
|---|
| 189 | if(verboseLevel > 0) G4cout << "### G4UElasticCrossSection::Initialise for "
|
|---|
| 190 | << p->GetParticleName() << G4endl;
|
|---|
| 191 | G4double csup, csdn;
|
|---|
| 192 | for(G4int iz=2; iz<93; iz++) {
|
|---|
| 193 |
|
|---|
| 194 | G4double Z = G4double(iz);
|
|---|
| 195 | A = nist->GetAtomicMassAmu(iz);
|
|---|
| 196 | csup = fGlauber->GetElasticGlauberGribov(&dp, Z, A);
|
|---|
| 197 | // proton and neutron
|
|---|
| 198 | if(fNucleon) {
|
|---|
| 199 | csdn = fNucleon->GetElasticCrossSection(&dp, Z, A);
|
|---|
| 200 |
|
|---|
| 201 | // pions
|
|---|
| 202 | } else if(fUPi) {
|
|---|
| 203 | csdn = fUPi->GetElasticCrossSection(&dp, Z, A);
|
|---|
| 204 |
|
|---|
| 205 | // other
|
|---|
| 206 | } else if(fGheisha->IsApplicable(&dp, Z, A)) {
|
|---|
| 207 | csdn = fGheisha->GetElasticCrossSection(&dp, Z, A);
|
|---|
| 208 |
|
|---|
| 209 | } else {
|
|---|
| 210 | csdn = csup;
|
|---|
| 211 | }
|
|---|
| 212 | theFac[iz] = csdn/csup;
|
|---|
| 213 | if(verboseLevel > 0) G4cout << "Z= " << Z << " A= " << A
|
|---|
| 214 | << " factor= " << theFac[iz] << G4endl;
|
|---|
| 215 | }
|
|---|
| 216 | }
|
|---|
| 217 | }
|
|---|
| 218 |
|
|---|
| 219 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
|---|
| 220 |
|
|---|
| 221 |
|
|---|