| [822] | 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 | // $Id: G4IonisParamElm.cc,v 1.14 2006/06/29 19:12:43 gunter Exp $
|
|---|
| 28 | // GEANT4 tag $Name: $
|
|---|
| 29 | //
|
|---|
| 30 | //
|
|---|
| 31 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 32 | //
|
|---|
| 33 | // 06-09-04, Update calculated values after any change of ionisation
|
|---|
| 34 | // potential change. V.Ivanchenko
|
|---|
| 35 | // 17-10-02, Fix excitation energy interpolation. V.Ivanchenko
|
|---|
| 36 | // 08-03-01, correct handling of fShellCorrectionVector. M.Maire
|
|---|
| 37 | // 22-11-00, tabulation of ionisation potential from
|
|---|
| 38 | // the ICRU Report N#37. V.Ivanchenko
|
|---|
| 39 | // 09-07-98, data moved from G4Element. M.Maire
|
|---|
| 40 | //
|
|---|
| 41 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 42 |
|
|---|
| 43 | #include "G4IonisParamElm.hh"
|
|---|
| 44 |
|
|---|
| 45 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 46 |
|
|---|
| 47 | G4IonisParamElm::G4IonisParamElm(G4double Z)
|
|---|
| 48 | {
|
|---|
| 49 | if (Z < 1.) G4Exception
|
|---|
| 50 | (" ERROR! It is not allowed to create an Element with Z < 1" );
|
|---|
| 51 |
|
|---|
| 52 | // some basic functions of the atomic number
|
|---|
| 53 | fZ = Z;
|
|---|
| 54 | fZ3 = std::pow(fZ, 1./3.);
|
|---|
| 55 | fZZ3 = std::pow(fZ*(fZ+1.), 1./3.);
|
|---|
| 56 | flogZ3 = std::log(fZ)/3.;
|
|---|
| 57 |
|
|---|
| 58 | // Parameters for energy loss by ionisation
|
|---|
| 59 |
|
|---|
| 60 | // Mean excitation energy
|
|---|
| 61 | // from "Stopping Powers for Electrons and Positrons"
|
|---|
| 62 | // ICRU Report N#37, 1984 (energy in eV)
|
|---|
| 63 | static double exc[100] = {
|
|---|
| 64 | 21.8, 20.9, 13.3, 15.9, 15.2, 13.0, 11.7, 11.9, 11.5, 13.7,
|
|---|
| 65 | 13.6, 13.0, 12.8, 12.4, 11.5, 11.3, 10.2, 10.4, 10.0, 9.6,
|
|---|
| 66 | 10.3, 10.6, 10.7, 10.7, 10.9, 11.0, 11.0, 11.1, 11.1, 11.0,
|
|---|
| 67 | 10.8, 10.4, 10.5, 10.2, 9.8, 9.8, 9.8, 9.6, 9.7, 9.8,
|
|---|
| 68 | 10.2, 10.1, 10.0, 10.0, 10.0, 10.2, 10.0, 9.8, 10.0, 9.8,
|
|---|
| 69 | 9.5, 9.3, 9.3, 8.9, 8.9, 8.8, 8.8, 8.8, 9.1, 9.1,
|
|---|
| 70 | 9.2, 9.3, 9.2, 9.2, 9.4, 9.5, 9.7, 9.7, 9.8, 9.8,
|
|---|
| 71 | 9.8, 9.8, 9.8, 9.8, 9.8, 9.8, 9.8, 10.1, 10.0, 10.0,
|
|---|
| 72 | 10.0, 10.0, 9.9, 9.9, 9.7, 9.2, 9.5, 9.4, 9.4, 9.4,
|
|---|
| 73 | 9.6, 9.7, 9.7, 9.8, 9.8, 9.8, 9.8, 9.9, 9.9, 9.9 };
|
|---|
| 74 |
|
|---|
| 75 | G4int iz = (G4int)Z - 1 ;
|
|---|
| 76 | if(0 > iz) iz = 0;
|
|---|
| 77 | else if(99 < iz) iz = 99 ;
|
|---|
| 78 | fMeanExcitationEnergy = fZ * exc[iz] * eV ;
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | fTau0 = 0.1*fZ3*MeV/proton_mass_c2;
|
|---|
| 82 | fTaul = 2.*MeV/proton_mass_c2;
|
|---|
| 83 |
|
|---|
| 84 | // compute the Bethe-Bloch formula for energy = fTaul*particle mass
|
|---|
| 85 | G4double rate = fMeanExcitationEnergy/electron_mass_c2 ;
|
|---|
| 86 | G4double w = fTaul*(fTaul+2.) ;
|
|---|
| 87 | fBetheBlochLow = (fTaul+1.)*(fTaul+1.)*std::log(2.*w/rate)/w - 1. ;
|
|---|
| 88 | fBetheBlochLow = 2.*fZ*twopi_mc2_rcl2*fBetheBlochLow ;
|
|---|
| 89 |
|
|---|
| 90 | fClow = std::sqrt(fTaul)*fBetheBlochLow;
|
|---|
| 91 | fAlow = 6.458040 * fClow/fTau0;
|
|---|
| 92 | G4double Taum = 0.035*fZ3*MeV/proton_mass_c2;
|
|---|
| 93 | fBlow =-3.229020*fClow/(fTau0*std::sqrt(Taum));
|
|---|
| 94 |
|
|---|
| 95 | // Shell correction factors
|
|---|
| 96 | fShellCorrectionVector = new G4double[3]; //[3]
|
|---|
| 97 | rate = 0.001*fMeanExcitationEnergy/eV;
|
|---|
| 98 | G4double rate2 = rate*rate;
|
|---|
| 99 | /*
|
|---|
| 100 | fShellCorrectionVector[0] = ( 1.10289e5 + 5.14781e8*rate)*rate2 ;
|
|---|
| 101 | fShellCorrectionVector[1] = ( 7.93805e3 - 2.22565e7*rate)*rate2 ;
|
|---|
| 102 | fShellCorrectionVector[2] = (-9.92256e1 + 2.10823e5*rate)*rate2 ;
|
|---|
| 103 | */
|
|---|
| 104 | fShellCorrectionVector[0] = ( 0.422377 + 3.858019*rate)*rate2 ;
|
|---|
| 105 | fShellCorrectionVector[1] = ( 0.0304043 - 0.1667989*rate)*rate2 ;
|
|---|
| 106 | fShellCorrectionVector[2] = (-0.00038106 + 0.00157955*rate)*rate2 ;
|
|---|
| 107 | }
|
|---|
| 108 |
|
|---|
| 109 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 110 |
|
|---|
| 111 | // Fake default constructor - sets only member data and allocates memory
|
|---|
| 112 | // for usage restricted to object persistency
|
|---|
| 113 |
|
|---|
| 114 | G4IonisParamElm::G4IonisParamElm(__void__&)
|
|---|
| 115 | : fShellCorrectionVector(0)
|
|---|
| 116 | {
|
|---|
| 117 | }
|
|---|
| 118 |
|
|---|
| 119 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 120 |
|
|---|
| 121 | G4IonisParamElm::~G4IonisParamElm()
|
|---|
| 122 | {
|
|---|
| 123 | if (fShellCorrectionVector) delete [] fShellCorrectionVector;
|
|---|
| 124 | }
|
|---|
| 125 |
|
|---|
| 126 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 127 |
|
|---|
| 128 | G4IonisParamElm::G4IonisParamElm(G4IonisParamElm& right)
|
|---|
| 129 | {
|
|---|
| 130 | *this = right;
|
|---|
| 131 | }
|
|---|
| 132 |
|
|---|
| 133 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 134 |
|
|---|
| 135 | const G4IonisParamElm& G4IonisParamElm::operator=(const G4IonisParamElm& right)
|
|---|
| 136 | {
|
|---|
| 137 | if (this != &right)
|
|---|
| 138 | {
|
|---|
| 139 | fZ = right.fZ;
|
|---|
| 140 | fZ3 = right.fZ3;
|
|---|
| 141 | fZZ3 = right.fZZ3;
|
|---|
| 142 | flogZ3 = right.flogZ3;
|
|---|
| 143 | fTau0 = right.fTau0;
|
|---|
| 144 | fTaul = right.fTaul;
|
|---|
| 145 | fBetheBlochLow = right.fBetheBlochLow;
|
|---|
| 146 | fAlow = right.fAlow;
|
|---|
| 147 | fBlow = right.fBlow;
|
|---|
| 148 | fClow = right.fClow;
|
|---|
| 149 | fMeanExcitationEnergy = right.fMeanExcitationEnergy;
|
|---|
| 150 | if (fShellCorrectionVector) delete [] fShellCorrectionVector;
|
|---|
| 151 | fShellCorrectionVector = new G4double[3];
|
|---|
| 152 | fShellCorrectionVector[0] = right.fShellCorrectionVector[0];
|
|---|
| 153 | fShellCorrectionVector[1] = right.fShellCorrectionVector[1];
|
|---|
| 154 | fShellCorrectionVector[2] = right.fShellCorrectionVector[2];
|
|---|
| 155 | }
|
|---|
| 156 | return *this;
|
|---|
| 157 | }
|
|---|
| 158 |
|
|---|
| 159 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 160 |
|
|---|
| 161 | G4int G4IonisParamElm::operator==(const G4IonisParamElm& right) const
|
|---|
| 162 | {
|
|---|
| 163 | return (this == (G4IonisParamElm *) &right);
|
|---|
| 164 | }
|
|---|
| 165 |
|
|---|
| 166 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|
| 167 |
|
|---|
| 168 | G4int G4IonisParamElm::operator!=(const G4IonisParamElm& right) const
|
|---|
| 169 | {
|
|---|
| 170 | return (this != (G4IonisParamElm *) &right);
|
|---|
| 171 | }
|
|---|
| 172 |
|
|---|
| 173 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
|
|---|