Geant4  10.03
G4VelocityTable Class Reference

#include <G4VelocityTable.hh>

+ Collaboration diagram for G4VelocityTable:

Public Member Functions

G4double Value (G4double theEnergy)
 

Static Public Member Functions

static G4VelocityTableGetVelocityTable ()
 
static void SetVelocityTableProperties (G4double t_max, G4double t_min, G4int nbin)
 
static G4double GetMaxTOfVelocityTable ()
 
static G4double GetMinTOfVelocityTable ()
 
static G4int GetNbinOfVelocityTable ()
 

Private Types

typedef std::vector< G4doubleG4VTDataVector
 

Private Member Functions

 G4VelocityTable ()
 
 ~G4VelocityTable ()
 
size_t FindBinLocation (G4double theEnergy) const
 
G4double Interpolation () const
 
void PrepareVelocityTable ()
 

Private Attributes

G4double edgeMin
 
G4double edgeMax
 
size_t numberOfNodes
 
G4VTDataVector dataVector
 
G4VTDataVector binVector
 
G4VTDataVector secDerivative
 
G4double dBin
 
G4double baseBin
 
G4double lastEnergy
 
G4double lastValue
 
size_t lastBin
 
G4double maxT
 
G4double minT
 
G4int NbinT
 

Static Private Attributes

static G4ThreadLocal
G4VelocityTable
theInstance = 0
 

Detailed Description

Definition at line 51 of file G4VelocityTable.hh.

Member Typedef Documentation

typedef std::vector<G4double> G4VelocityTable::G4VTDataVector
private

Definition at line 56 of file G4VelocityTable.hh.

Constructor & Destructor Documentation

G4VelocityTable::G4VelocityTable ( )
private

Definition at line 53 of file G4VelocityTable.cc.

References PrepareVelocityTable().

Referenced by GetVelocityTable(), and SetVelocityTableProperties().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VelocityTable::~G4VelocityTable ( )
private

Definition at line 64 of file G4VelocityTable.cc.

References binVector, and dataVector.

Member Function Documentation

size_t G4VelocityTable::FindBinLocation ( G4double  theEnergy) const
private

Definition at line 108 of file G4VelocityTable.cc.

References baseBin, dBin, and G4Log().

Referenced by Value().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4VelocityTable::GetMaxTOfVelocityTable ( )
static

Definition at line 194 of file G4VelocityTable.cc.

References GetVelocityTable(), and maxT.

Referenced by G4Track::GetMaxTOfVelocityTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4VelocityTable::GetMinTOfVelocityTable ( )
static

Definition at line 201 of file G4VelocityTable.cc.

References GetVelocityTable(), and minT.

Referenced by G4Track::GetMinTOfVelocityTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4VelocityTable::GetNbinOfVelocityTable ( )
static

Definition at line 208 of file G4VelocityTable.cc.

References GetVelocityTable(), and NbinT.

Referenced by G4Track::GetNbinOfVelocityTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VelocityTable * G4VelocityTable::GetVelocityTable ( )
static

Definition at line 161 of file G4VelocityTable.cc.

References G4VelocityTable(), and theInstance.

Referenced by G4Track::G4Track(), GetMaxTOfVelocityTable(), GetMinTOfVelocityTable(), GetNbinOfVelocityTable(), and G4Track::SetVelocityTableProperties().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4VelocityTable::Interpolation ( ) const
inlineprivate

Definition at line 110 of file G4VelocityTable.hh.

References binVector, dataVector, lastBin, and lastEnergy.

Referenced by Value().

+ Here is the caller graph for this function:

void G4VelocityTable::PrepareVelocityTable ( )
private

Definition at line 73 of file G4VelocityTable.cc.

References baseBin, binVector, dataVector, dBin, edgeMax, edgeMin, maxT, minT, NbinT, and numberOfNodes.

Referenced by G4VelocityTable(), and SetVelocityTableProperties().

+ Here is the caller graph for this function:

void G4VelocityTable::SetVelocityTableProperties ( G4double  t_max,
G4double  t_min,
G4int  nbin 
)
static

Definition at line 169 of file G4VelocityTable.cc.

References G4Exception(), G4State_Idle, G4State_PreInit, G4VelocityTable(), G4StateManager::GetCurrentState(), G4StateManager::GetStateManager(), JustWarning, maxT, minT, NbinT, PrepareVelocityTable(), and theInstance.

Referenced by G4Track::SetVelocityTableProperties().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double G4VelocityTable::Value ( G4double  theEnergy)

Definition at line 124 of file G4VelocityTable.cc.

References binVector, dataVector, edgeMax, edgeMin, FindBinLocation(), Interpolation(), lastBin, lastEnergy, lastValue, and numberOfNodes.

Referenced by G4Track::CalculateVelocity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4double G4VelocityTable::baseBin
private

Definition at line 94 of file G4VelocityTable.hh.

Referenced by FindBinLocation(), and PrepareVelocityTable().

G4VTDataVector G4VelocityTable::binVector
private

Definition at line 90 of file G4VelocityTable.hh.

Referenced by Interpolation(), PrepareVelocityTable(), Value(), and ~G4VelocityTable().

G4VTDataVector G4VelocityTable::dataVector
private

Definition at line 89 of file G4VelocityTable.hh.

Referenced by Interpolation(), PrepareVelocityTable(), Value(), and ~G4VelocityTable().

G4double G4VelocityTable::dBin
private

Definition at line 93 of file G4VelocityTable.hh.

Referenced by FindBinLocation(), and PrepareVelocityTable().

G4double G4VelocityTable::edgeMax
private

Definition at line 85 of file G4VelocityTable.hh.

Referenced by PrepareVelocityTable(), and Value().

G4double G4VelocityTable::edgeMin
private

Definition at line 84 of file G4VelocityTable.hh.

Referenced by PrepareVelocityTable(), and Value().

size_t G4VelocityTable::lastBin
private

Definition at line 98 of file G4VelocityTable.hh.

Referenced by Interpolation(), and Value().

G4double G4VelocityTable::lastEnergy
private

Definition at line 96 of file G4VelocityTable.hh.

Referenced by Interpolation(), and Value().

G4double G4VelocityTable::lastValue
private

Definition at line 97 of file G4VelocityTable.hh.

Referenced by Value().

G4double G4VelocityTable::maxT
private
G4double G4VelocityTable::minT
private
G4int G4VelocityTable::NbinT
private
size_t G4VelocityTable::numberOfNodes
private

Definition at line 87 of file G4VelocityTable.hh.

Referenced by PrepareVelocityTable(), and Value().

G4VTDataVector G4VelocityTable::secDerivative
private

Definition at line 91 of file G4VelocityTable.hh.

G4ThreadLocal G4VelocityTable * G4VelocityTable::theInstance = 0
staticprivate

Definition at line 103 of file G4VelocityTable.hh.

Referenced by GetVelocityTable(), and SetVelocityTableProperties().


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