[1316] | 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 | // |
---|
[1337] | 26 | // $Id: G4AnalyticalEcpssrLiCrossSection.hh,v 1.2 2010/06/25 09:41:09 gunter Exp $ |
---|
[1347] | 27 | // GEANT4 tag $Name: geant4-09-04-ref-00 $ |
---|
[1316] | 28 | // |
---|
| 29 | // Author: Haifa Ben Abdelouahed |
---|
| 30 | // |
---|
| 31 | // |
---|
| 32 | // History: |
---|
| 33 | // ----------- |
---|
| 34 | // 23 Apr 2008 H. Ben Abdelouahed 1st implementation |
---|
| 35 | // 28 Apr 2008 MGP Major revision according to a design iteration |
---|
| 36 | // 29 Apr 2009 ALF Updated Desing for Integration |
---|
| 37 | // 01 Sep 2009 ALF Updated to G4AnalyticalEcpssrLiCrossSection |
---|
| 38 | // |
---|
| 39 | // ------------------------------------------------------------------- |
---|
| 40 | |
---|
| 41 | // Class description: |
---|
| 42 | // Low Energy Electromagnetic Physics, Cross section, p and alpha ionisation, L shell |
---|
| 43 | // Further documentation available from http://www.ge.infn.it/geant4/lowE |
---|
| 44 | |
---|
| 45 | // ------------------------------------------------------------------- |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | #ifndef G4ANALYTICALECPSSRLICROSSSECTION_HH |
---|
| 49 | #define G4ANALYTICALECPSSRLICROSSSECTION_HH 1 |
---|
| 50 | |
---|
| 51 | #include "G4VecpssrLiModel.hh" |
---|
| 52 | #include "globals.hh" |
---|
| 53 | #include <map> |
---|
| 54 | #include <vector> |
---|
| 55 | |
---|
| 56 | class G4AnalyticalEcpssrLiCrossSection : public G4VecpssrLiModel |
---|
| 57 | |
---|
| 58 | { |
---|
| 59 | public: |
---|
| 60 | |
---|
| 61 | G4AnalyticalEcpssrLiCrossSection(); |
---|
| 62 | |
---|
| 63 | ~G4AnalyticalEcpssrLiCrossSection(); |
---|
| 64 | |
---|
| 65 | G4double CalculateL1CrossSection(G4int zTarget,G4double massIncident, G4double energyIncident);//according to W.Brandt and G.Lapicki, Phys.Rev.A23(1981) |
---|
| 66 | |
---|
| 67 | G4double CalculateL2CrossSection(G4int zTarget,G4double massIncident, G4double energyIncident);//according to W.Brandt and G.Lapicki, Phys.Rev.A23(1981) |
---|
| 68 | |
---|
| 69 | G4double CalculateL3CrossSection(G4int zTarget,G4double massIncident, G4double energyIncident);//according to W.Brandt and G.Lapicki, Phys.Rev.A23(1981) |
---|
| 70 | |
---|
| 71 | G4double CalculateVelocity(G4int subShell, G4int zTarget,G4double massIncident, G4double energyIncident); |
---|
| 72 | |
---|
| 73 | G4double ExpIntFunction(G4int n,G4double x);//Exponential Integral Function |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | private: |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | G4AnalyticalEcpssrLiCrossSection(const G4AnalyticalEcpssrLiCrossSection&); |
---|
| 81 | G4AnalyticalEcpssrLiCrossSection & operator = (const G4AnalyticalEcpssrLiCrossSection &right); |
---|
| 82 | |
---|
| 83 | G4double FunctionFL1(G4double k, G4double theta); |
---|
| 84 | |
---|
| 85 | G4double FunctionFL2(G4double k, G4double theta); |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | G4double LogLogInterpolate(G4double e1, G4double e2, G4double e, G4double xs1, G4double xs2); |
---|
| 89 | |
---|
| 90 | G4double LinLogInterpolate(G4double e1, G4double e2, G4double e, G4double xs1, G4double xs2); |
---|
| 91 | |
---|
| 92 | G4double LinLinInterpolate(G4double e1, G4double e2, G4double e, G4double xs1, G4double xs2); |
---|
| 93 | |
---|
| 94 | G4double QuadInterpolator(G4double e11, |
---|
| 95 | G4double e12, |
---|
| 96 | G4double e21, |
---|
| 97 | G4double e22, |
---|
| 98 | G4double x11, |
---|
| 99 | G4double x12, |
---|
| 100 | G4double x21, |
---|
| 101 | G4double x22, |
---|
| 102 | G4double t1, |
---|
| 103 | G4double t2, |
---|
| 104 | G4double t, |
---|
| 105 | G4double e); |
---|
| 106 | |
---|
| 107 | typedef std::map<double, std::map<double, double> > TriDimensionMap; |
---|
| 108 | |
---|
| 109 | TriDimensionMap FL1Data; |
---|
| 110 | |
---|
| 111 | TriDimensionMap FL2Data; |
---|
| 112 | std::vector<double> dummyVec1; |
---|
| 113 | std::vector<double> dummyVec2; |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | typedef std::map<double, std::vector<double> > VecMap; |
---|
| 118 | VecMap aVecMap1; |
---|
| 119 | VecMap aVecMap2; |
---|
| 120 | |
---|
| 121 | G4int verboseLevel; |
---|
| 122 | |
---|
| 123 | }; |
---|
| 124 | |
---|
| 125 | #endif |
---|