#include <G4PhysicsVector.hh>
Definition at line 76 of file G4PhysicsVector.hh.
◆ G4PhysicsVector() [1/2]
G4PhysicsVector::G4PhysicsVector |
( |
G4bool |
spline = false | ) |
|
◆ G4PhysicsVector() [2/2]
◆ ~G4PhysicsVector()
G4PhysicsVector::~G4PhysicsVector |
( |
| ) |
|
|
virtual |
◆ ComputeSecDerivatives()
void G4PhysicsVector::ComputeSecDerivatives |
( |
| ) |
|
Definition at line 431 of file G4PhysicsVector.cc.
446 for(
size_t i=1; i<
n; ++i)
G4PVDataVector dataVector
G4PVDataVector secDerivative
◆ ComputeSecondDerivatives()
void G4PhysicsVector::ComputeSecondDerivatives |
( |
G4double |
firstPointDerivative, |
|
|
G4double |
endPointDerivative |
|
) |
| |
Definition at line 294 of file G4PhysicsVector.cc.
319 - firstPointDerivative);
337 p = sig*secDerivative[n-2] + 2.0;
339 *(endPointDerivative -
341 secDerivative[
n] = un/(secDerivative[n-1] + 2.0);
346 for(
G4int k=n-1; k>0; --k)
349 (secDerivative[k+1] -
352 secDerivative[0] = 0.5*(u[0] - secDerivative[1]);
G4PVDataVector dataVector
G4PVDataVector secDerivative
void ComputeSecDerivatives()
◆ CopyData()
Definition at line 126 of file G4PhysicsVector.cc.
G4PVDataVector dataVector
G4PVDataVector secDerivative
◆ DeleteData()
void G4PhysicsVector::DeleteData |
( |
| ) |
|
|
protected |
◆ Energy()
G4double G4PhysicsVector::Energy |
( |
size_t |
index | ) |
const |
|
inline |
◆ FillSecondDerivatives()
void G4PhysicsVector::FillSecondDerivatives |
( |
| ) |
|
Definition at line 359 of file G4PhysicsVector.cc.
391 for(
G4int i=2; i<n-1; ++i)
406 - (2.0*sig - 1.0)*u[n-2]/p;
414 for(
G4int k=n-2; k>1; --k)
G4PVDataVector dataVector
G4PVDataVector secDerivative
void ComputeSecDerivatives()
◆ FindBin()
size_t G4PhysicsVector::FindBin |
( |
G4double |
energy, |
|
|
size_t |
idx |
|
) |
| const |
|
inline |
◆ FindBinLocation()
size_t G4PhysicsVector::FindBinLocation |
( |
G4double |
theEnergy | ) |
const |
|
inlineprivate |
◆ FindLinearEnergy()
Definition at line 516 of file G4PhysicsVector.cc.
520 size_t bin = std::lower_bound(dataVector.begin(), dataVector.end(),
y)
521 - dataVector.begin() - 1;
524 G4double del = dataVector[bin+1] - dataVector[
bin];
526 res += (y - dataVector[
bin])*(
binVector[bin+1] - res)/del;
G4PVDataVector dataVector
◆ GetLowEdgeEnergy()
G4double G4PhysicsVector::GetLowEdgeEnergy |
( |
size_t |
binNumber | ) |
const |
◆ GetMaxEnergy()
G4double G4PhysicsVector::GetMaxEnergy |
( |
| ) |
const |
|
inline |
◆ GetType()
◆ GetValue()
◆ GetVectorLength()
size_t G4PhysicsVector::GetVectorLength |
( |
| ) |
const |
|
inline |
◆ GetVerboseLevel()
◆ Interpolation()
◆ IsFilledVectorExist()
G4bool G4PhysicsVector::IsFilledVectorExist |
( |
| ) |
const |
|
inline |
◆ LinearInterpolation()
G4double G4PhysicsVector::LinearInterpolation |
( |
size_t |
idx, |
|
|
G4double |
energy |
|
) |
| const |
|
inlineprivate |
◆ operator!=()
◆ operator()()
G4double G4PhysicsVector::operator() |
( |
const size_t |
binNumber | ) |
const |
|
inline |
◆ operator=()
Definition at line 90 of file G4PhysicsVector.cc.
92 if (&right==
this) {
return *
this; }
void CopyData(const G4PhysicsVector &vec)
◆ operator==()
◆ operator[]()
G4double G4PhysicsVector::operator[] |
( |
const size_t |
binNumber | ) |
const |
|
inline |
◆ PutValue()
void G4PhysicsVector::PutValue |
( |
size_t |
index, |
|
|
G4double |
theValue |
|
) |
| |
|
inline |
◆ Retrieve()
G4bool G4PhysicsVector::Retrieve |
( |
std::ifstream & |
fIn, |
|
|
G4bool |
ascii = false |
|
) |
| |
|
virtual |
Reimplemented in G4PhysicsLogVector, G4PhysicsLinearVector, and G4PhysicsLnVector.
Definition at line 193 of file G4PhysicsVector.cc.
204 if (fIn.fail()) {
return false; }
208 if (fIn.fail()) {
return false; }
212 G4cerr <<
"G4PhysicsVector::Retrieve():";
222 for(
G4int i = 0; i < siz ; i++)
226 fIn >> vBin >> vData;
227 if (fIn.fail()) {
return false; }
243 fIn.read((
char*)(&numberOfNodes),
sizeof numberOfNodes );
247 fIn.read((
char*)(&size),
sizeof size);
250 fIn.read((
char*)(value), 2*size*(
sizeof(
G4double)) );
259 for(
size_t i = 0; i < size; ++i)
267 numberOfNodes = size;
G4PVDataVector dataVector
G4PVDataVector secDerivative
G4GLOB_DLL std::ostream G4cerr
◆ ScaleVector()
◆ SetSpline()
void G4PhysicsVector::SetSpline |
( |
G4bool |
| ) |
|
|
inline |
◆ SetVerboseLevel()
void G4PhysicsVector::SetVerboseLevel |
( |
G4int |
value | ) |
|
|
inline |
◆ SplineInterpolation()
G4double G4PhysicsVector::SplineInterpolation |
( |
size_t |
idx, |
|
|
G4double |
energy |
|
) |
| const |
|
inlineprivate |
◆ SplinePossible()
G4bool G4PhysicsVector::SplinePossible |
( |
| ) |
|
|
private |
◆ Store()
G4bool G4PhysicsVector::Store |
( |
std::ofstream & |
fOut, |
|
|
G4bool |
ascii = false |
|
) |
| |
|
virtual |
Definition at line 160 of file G4PhysicsVector.cc.
177 fOut.write((
char*)(&size),
sizeof size);
180 for(
size_t i = 0; i < size; ++i)
185 fOut.write((
char*)(value), 2*size*(
sizeof (
G4double)));
G4PVDataVector dataVector
◆ Value() [1/2]
Definition at line 498 of file G4PhysicsVector.cc.
504 }
else if(theEnergy >=
edgeMax) {
508 lastIdx =
FindBin(theEnergy, lastIdx);
G4PVDataVector dataVector
G4double Interpolation(size_t idx, G4double energy) const
size_t FindBin(G4double energy, size_t idx) const
◆ Value() [2/2]
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const G4PhysicsVector & |
pv |
|
) |
| |
|
friend |
Definition at line 479 of file G4PhysicsVector.cc.
482 out << std::setprecision(12) << pv.
edgeMin <<
" " 487 for(
size_t i = 0; i < pv.
dataVector.size(); i++)
491 out << std::setprecision(6);
G4PVDataVector dataVector
◆ baseBin
◆ binVector
◆ dataVector
◆ dBin
◆ edgeMax
◆ edgeMin
◆ numberOfNodes
size_t G4PhysicsVector::numberOfNodes |
|
protected |
◆ secDerivative
◆ type
◆ useSpline
G4bool G4PhysicsVector::useSpline |
|
private |
◆ verboseLevel
G4int G4PhysicsVector::verboseLevel |
|
protected |
The documentation for this class was generated from the following files: