Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4PWATotalXsecZ Class Reference

#include <G4PWATotalXsecTable.hh>

Public Member Functions

G4int GetLowestEnergyBinIndex () const
 
G4int GetHighestEnergyBinIndex () const
 
G4double GetLowestEnergy () const
 
G4double GetHighestEnergy () const
 
G4double GetLowestXsecValue (G4int j) const
 
G4double GetHighestXsecValue (G4int j) const
 
G4int GetPWATotalXsecEnergyBinIndex (G4double energy) const
 
G4double GetInterpXsec (G4double energy, G4int elowindex, G4int j) const
 
G4double GetInterpXsec (G4double energy, G4int j) const
 

Friends

class G4PWATotalXsecTable
 

Detailed Description

Definition at line 64 of file G4PWATotalXsecTable.hh.

Member Function Documentation

G4double G4PWATotalXsecZ::GetHighestEnergy ( ) const
inline

Definition at line 73 of file G4PWATotalXsecTable.hh.

73 {return fgPWATotalXsecEnergyGrid[fgNumTotalXsecBins-1];}

Here is the caller graph for this function:

G4int G4PWATotalXsecZ::GetHighestEnergyBinIndex ( ) const
inline

Definition at line 71 of file G4PWATotalXsecTable.hh.

71 {return fgNumTotalXsecBins-1;}
G4double G4PWATotalXsecZ::GetHighestXsecValue ( G4int  j) const
inline

Definition at line 77 of file G4PWATotalXsecTable.hh.

77 {return fPWAXsecs[(j+1)*fgNumTotalXsecBins-1];}

Here is the caller graph for this function:

G4double G4PWATotalXsecZ::GetInterpXsec ( G4double  energy,
G4int  elowindex,
G4int  j 
) const

Definition at line 166 of file G4PWATotalXsecTable.cc.

166  {
167  // protection : out of energy grid range
168  if(energy < GetLowestEnergy())
169  return GetLowestXsecValue(j);
170  if(energy >= GetHighestEnergy())
171  return GetHighestXsecValue(j);
172 
173  // normal case log-log linear intrp.
174  G4int k = j*fgNumTotalXsecBins+elowindex;
175  return G4Exp(G4Log(energy)*fInterpParamA[k])*fInterpParamB[k];
176 }
G4double GetHighestEnergy() const
G4double GetLowestEnergy() const
int G4int
Definition: G4Types.hh:78
G4double GetLowestXsecValue(G4int j) const
G4double G4Log(G4double x)
Definition: G4Log.hh:230
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:183
G4double energy(const ThreeVector &p, const G4double m)
G4double GetHighestXsecValue(G4int j) const

Here is the call graph for this function:

G4double G4PWATotalXsecZ::GetInterpXsec ( G4double  energy,
G4int  j 
) const

Definition at line 179 of file G4PWATotalXsecTable.cc.

179  {
180  // protection : out of energy grid range
181  if(energy < GetLowestEnergy())
182  return GetLowestXsecValue(j);
183  if(energy >= GetHighestEnergy())
184  return GetHighestXsecValue(j);
185 
186  // normal case log-log linear intrp.
188  G4int k = j*fgNumTotalXsecBins+elowindex;
189  return G4Exp(G4Log(energy)*fInterpParamA[k])*fInterpParamB[k];
190 }
G4double GetHighestEnergy() const
G4double GetLowestEnergy() const
int G4int
Definition: G4Types.hh:78
G4int GetPWATotalXsecEnergyBinIndex(G4double energy) const
G4double GetLowestXsecValue(G4int j) const
G4double G4Log(G4double x)
Definition: G4Log.hh:230
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:183
G4double energy(const ThreeVector &p, const G4double m)
G4double GetHighestXsecValue(G4int j) const

Here is the call graph for this function:

G4double G4PWATotalXsecZ::GetLowestEnergy ( ) const
inline

Definition at line 72 of file G4PWATotalXsecTable.hh.

72 {return fgPWATotalXsecEnergyGrid[0];}

Here is the caller graph for this function:

G4int G4PWATotalXsecZ::GetLowestEnergyBinIndex ( ) const
inline

Definition at line 70 of file G4PWATotalXsecTable.hh.

70 {return 0;}
G4double G4PWATotalXsecZ::GetLowestXsecValue ( G4int  j) const
inline

Definition at line 76 of file G4PWATotalXsecTable.hh.

76 {return fPWAXsecs[j*fgNumTotalXsecBins];}

Here is the caller graph for this function:

G4int G4PWATotalXsecZ::GetPWATotalXsecEnergyBinIndex ( G4double  energy) const

Definition at line 154 of file G4PWATotalXsecTable.cc.

154  {
155  // log(fgPWATotalXsecEnergyGrid[0]);
156  const G4double lne0 = -9.21034037197618e+00;
157  // 1./log(fgPWATotalXsecEnergyGrid[i+1]/fgPWATotalXsecEnergyGrid[i]);
158  const G4double invlnde = 6.51441722854880e+00;
159 
160  return (G4int)((G4Log(energy)-lne0)*invlnde);
161 }
int G4int
Definition: G4Types.hh:78
G4double G4Log(G4double x)
Definition: G4Log.hh:230
G4double energy(const ThreeVector &p, const G4double m)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4PWATotalXsecTable
friend

Definition at line 66 of file G4PWATotalXsecTable.hh.


The documentation for this class was generated from the following files: