Changeset 991 for trunk/source/processes/electromagnetic/lowenergy/src/G4eIonisationCrossSectionHandler.cc
- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4eIonisationCrossSectionHandler.cc
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eIonisationCrossSectionHandler.cc,v 1.1 2 2009/01/29 08:13:34 pandolaExp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eIonisationCrossSectionHandler.cc,v 1.11 2006/06/29 19:42:00 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 42 42 // 19 Jul 2002 VI Create composite data set for material 43 43 // 21 Jan 2003 V.Ivanchenko Cut per region 44 // 28 Jan 2009 L.Pandola Added public method to make a easier migration of45 // G4LowEnergyIonisation to G4LivermoreIonisationModel46 44 // 47 45 // ------------------------------------------------------------------- … … 100 98 G4int nElements = material->GetNumberOfElements(); 101 99 102 if(verbose > 0) 103 { 104 G4cout << "eIonisation CS for " << m << "th material " 105 << material->GetName() 106 << " eEl= " << nElements << G4endl; 107 } 100 if(verbose > 0) { 101 G4cout << "eIonisation CS for " << m << "th material " 102 << material->GetName() 103 << " eEl= " << nElements << G4endl; 104 } 108 105 109 106 G4double tcut = (*energyCuts)[m]; … … 132 129 value += cross * p * density; 133 130 134 if(verbose>0 && m == 0 && e>=1. && e<=0.) 135 { 131 if(verbose>0 && m == 0 && e>=1. && e<=0.) { 136 132 G4cout << "G4eIonCrossSH: e(MeV)= " << e/MeV 137 133 << " n= " << n … … 143 139 << " Z= " << Z 144 140 << G4endl; 145 141 } 146 142 147 143 } … … 159 155 } 160 156 161 G4double G4eIonisationCrossSectionHandler::GetCrossSectionAboveThresholdForElement(G4double energy, 162 G4double cutEnergy, 163 G4int Z) 164 { 165 G4int nShells = NumberOfComponents(Z); 166 G4double value = 0.; 167 if(energy > cutEnergy) 168 { 169 for (G4int n=0; n<nShells; n++) { 170 G4double cross = FindValue(Z, energy, n); 171 G4double p = theParam->Probability(Z, cutEnergy, energy, energy, n); 172 value += cross * p; 173 } 174 } 175 return value; 176 } 157
Note: See TracChangeset
for help on using the changeset viewer.