54 : edgeMin(0.), edgeMax(0.), numberOfNodes(0),
55 dBin(0.), baseBin(0.),
56 lastEnergy(-
DBL_MAX), lastValue(0.), lastBin(0),
57 maxT( 1000.0 ), minT( 0.0001 ), NbinT( 500 )
85 const G4double g4log10 = std::log(10.);
102 dataVector[i]= c_light*std::sqrt(T*(T+2.))/(T+1.0);
120 return size_t( std::log10(theEnergy)/
dBin -
baseBin );
137 }
else if( theEnergy <=
edgeMin ) {
142 }
else if( theEnergy >=
edgeMax ){
178 G4Exception(
"G4VelocityTable::SetVelocityTableProperties",
180 "Can modify only in PreInit or Idle state : Method ignored.");
185 if ((t_min < t_max)&&(t_min>0.)) {
static G4VelocityTable * GetVelocityTable()
static G4double GetMinTOfVelocityTable()
void PrepareVelocityTable()
G4VTDataVector dataVector
static G4StateManager * GetStateManager()
size_t FindBinLocation(G4double theEnergy) const
static G4int GetNbinOfVelocityTable()
G4ApplicationState GetCurrentState() const
static void SetVelocityTableProperties(G4double t_max, G4double t_min, G4int nbin)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ThreadLocal G4VelocityTable * theInstance
static G4double GetMaxTOfVelocityTable()
G4double Value(G4double theEnergy)
G4double Interpolation() const