source: trunk/source/processes/hadronic/cross_sections/src/G4IonsSihverCrossSection.cc@ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 15 years ago

update ti head

File size: 3.4 KB
Line 
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// 18-Sep-2003 First version is written by T. Koi
27// 23-Dec-2006 Isotope dependence added by D. Wright
28//
29
30#include "G4IonsSihverCrossSection.hh"
31#include "G4ParticleTable.hh"
32#include "G4IonTable.hh"
33#include "G4HadTmpUtil.hh"
34
35G4double G4IonsSihverCrossSection::
36GetZandACrossSection(const G4DynamicParticle* aParticle,
37 G4int /*ZZ*/, G4int AA, G4double /*aTemperature*/)
38{
39 G4double xsection = 0.0;
40 G4int At = AA;
41
42 G4int Ap = aParticle->GetDefinition()->GetBaryonNumber();
43
44 G4double one_third = 1.0 / 3.0;
45
46 G4double cubicrAt = std::pow ( G4double(At) , G4double(one_third) );
47 G4double cubicrAp = std::pow ( G4double(Ap) , G4double(one_third) );
48
49 G4double b0 = 1.581 - 0.876 * (1.0/cubicrAp + 1.0/cubicrAt);
50
51 xsection = pi * square_r0
52 * std::pow(G4double(cubicrAp + cubicrAt - b0 * (1.0/cubicrAp + 1.0/cubicrAt)), G4double(2));
53
54 return xsection;
55}
56
57
58G4double G4IonsSihverCrossSection::
59GetCrossSection(const G4DynamicParticle* aParticle,
60 const G4Element* anElement, G4double temperature)
61{
62 G4int nIso = anElement->GetNumberOfIsotopes();
63 G4double xsection = 0;
64
65 if (nIso) {
66 G4double sig;
67 G4IsotopeVector* isoVector = anElement->GetIsotopeVector();
68 G4double* abundVector = anElement->GetRelativeAbundanceVector();
69 G4int ZZ;
70 G4int AA;
71
72 for (G4int i = 0; i < nIso; i++) {
73 ZZ = (*isoVector)[i]->GetZ();
74 AA = (*isoVector)[i]->GetN();
75 sig = GetIsoZACrossSection(aParticle, ZZ, AA, temperature);
76 xsection += sig*abundVector[i];
77 }
78
79 } else {
80 G4int ZZ = G4lrint(anElement->GetZ());
81 G4int AA = G4lrint(anElement->GetN());
82 xsection = GetIsoZACrossSection(aParticle, ZZ, AA, temperature);
83 }
84
85 return xsection;
86}
Note: See TracBrowser for help on using the repository browser.