00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // G4InitXscPAI.hh -- header file 00031 // 00032 // History: 00033 // 00034 // 02.04.04, V. Grichine: 1st version based on G4PAIxSection class 00035 00036 #ifndef G4INITXSCPAI_HH 00037 #define G4INITXSCPAI_HH 00038 00039 #include "G4ios.hh" 00040 #include "globals.hh" 00041 #include "Randomize.hh" 00042 #include "G4OrderedTable.hh" 00043 #include "G4PhysicsLogVector.hh" 00044 00045 class G4MaterialCutsCouple; 00046 class G4SandiaTable; 00047 00048 class G4InitXscPAI 00049 { 00050 public: 00051 // Constructors 00052 G4InitXscPAI( const G4MaterialCutsCouple* matCC); 00053 00054 virtual ~G4InitXscPAI() ; 00055 00056 // Methods 00057 // General control functions 00058 00059 void KillCloseIntervals(); 00060 00061 void Normalisation(); 00062 00063 00064 // Physical methods 00065 00066 00067 G4double RutherfordIntegral( G4int intervalNumber, 00068 G4double limitLow, 00069 G4double limitHigh ) ; 00070 00071 G4double IntegralTerm(G4double omega); 00072 00073 G4double ImPartDielectricConst( G4int intervalNumber, 00074 G4double energy ) ; 00075 00076 G4double RePartDielectricConst(G4double energy) ; 00077 00078 G4double ModuleSqDielectricConst( G4int intervalNumber, 00079 G4double energy ) ; 00080 00081 G4double DifPAIxSection( G4double omega ) ; 00082 G4double DifPAIdEdx( G4double omega ) ; 00083 00084 G4double PAIdNdxCherenkov( G4double omega ) ; 00085 00086 G4double PAIdNdxPlasmon( G4double omega ) ; 00087 00088 void IntegralPAIxSection(G4double bg2, G4double Tmax) ; 00089 void IntegralCherenkov(G4double bg2, G4double Tmax) ; 00090 void IntegralPlasmon(G4double bg2, G4double Tmax) ; 00091 00092 void IntegralPAIdEdx(G4double bg2, G4double Tmax) ; 00093 00094 00095 G4double GetPhotonLambda( G4double omega ) ; 00096 00097 00098 G4double GetStepEnergyLoss( G4double step ) ; 00099 G4double GetStepCerenkovLoss( G4double step ) ; 00100 G4double GetStepPlasmonLoss( G4double step ) ; 00101 00102 // Inline access functions 00103 00104 00105 G4int GetIntervalNumber() const { return fIntervalNumber ; } 00106 G4int GetBinPAI() const { return fPAIbin ; } 00107 00108 G4double GetNormalizationCof() const { return fNormalizationCof ; } 00109 00110 G4double GetMatSandiaMatrix(G4int i, G4int j) const 00111 { return (*(*fMatSandiaMatrix)[i])[j]; } 00112 00113 G4PhysicsLogVector* GetPAIxscVector() const { return fPAIxscVector;} 00114 G4PhysicsLogVector* GetPAIdEdxVector() const { return fPAIdEdxVector;} 00115 G4PhysicsLogVector* GetPAIphotonVector() const { return fPAIphotonVector;} 00116 G4PhysicsLogVector* GetPAIelectronVector() const { return fPAIelectronVector;} 00117 G4PhysicsLogVector* GetChCosSqVector() const { return fChCosSqVector;} 00118 G4PhysicsLogVector* GetChWidthVector() const { return fChWidthVector;} 00119 00120 protected : 00121 00122 private : 00123 00124 G4InitXscPAI & operator=(const G4InitXscPAI &right); 00125 G4InitXscPAI(const G4InitXscPAI&); 00126 00127 // Local class constants 00128 00129 static const G4double fDelta ; // energy shift from interval border = 0.001 00130 static const G4int fPAIbin; 00131 static const G4double fSolidDensity; // ~the border between gases and solids 00132 00133 G4int fIntervalNumber; // The number of energy intervals 00134 G4double fNormalizationCof; // Normalization cof for PhotoAbsorptionXsection 00135 G4int fCurrentInterval; 00136 G4int fIntervalTmax; 00137 G4double fBetaGammaSq ; // (beta*gamma)^2 00138 G4double fTmax; 00139 G4double fDensity ; // Current density 00140 G4double fElectronDensity ; // Current electron (number) density 00141 00142 // Arrays of Sandia coefficients 00143 00144 G4OrderedTable* fMatSandiaMatrix; 00145 G4SandiaTable* fSandia; 00146 00147 // vectors of integral cross-sections 00148 00149 G4PhysicsLogVector* fPAIxscVector; 00150 G4PhysicsLogVector* fPAIdEdxVector; 00151 G4PhysicsLogVector* fPAIphotonVector; 00152 G4PhysicsLogVector* fPAIelectronVector; 00153 G4PhysicsLogVector* fChCosSqVector; 00154 G4PhysicsLogVector* fChWidthVector; 00155 00156 }; 00157 00158 #endif 00159 00160 // 00161 //