Geant4-11
|
#include <G4Physics2DVector.hh>
Public Member Functions | |
std::size_t | FindBinLocationX (const G4double x, const std::size_t lastidx) const |
std::size_t | FindBinLocationY (const G4double y, const std::size_t lastidy) const |
G4double | FindLinearX (G4double rand, G4double y) const |
G4double | FindLinearX (G4double rand, G4double y, std::size_t &lastidy) const |
G4Physics2DVector () | |
G4Physics2DVector (const G4Physics2DVector &) | |
G4Physics2DVector (std::size_t nx, std::size_t ny) | |
std::size_t | GetLengthX () const |
std::size_t | GetLengthY () const |
G4PhysicsVectorType | GetType () const |
G4double | GetValue (std::size_t idx, std::size_t idy) const |
G4double | GetX (std::size_t index) const |
G4double | GetY (std::size_t index) const |
G4bool | operator!= (const G4Physics2DVector &right) const =delete |
G4Physics2DVector & | operator= (const G4Physics2DVector &) |
G4bool | operator== (const G4Physics2DVector &right) const =delete |
void | PutValue (std::size_t idx, std::size_t idy, G4double value) |
void | PutVectors (const std::vector< G4double > &vecX, const std::vector< G4double > &vecY) |
void | PutX (std::size_t idx, G4double value) |
void | PutY (std::size_t idy, G4double value) |
G4bool | Retrieve (std::ifstream &fIn) |
void | ScaleVector (G4double factor) |
void | SetBicubicInterpolation (G4bool) |
void | SetVerboseLevel (G4int value) |
void | Store (std::ofstream &fOut) const |
G4double | Value (G4double x, G4double y) const |
G4double | Value (G4double x, G4double y, std::size_t &lastidx, std::size_t &lastidy) const |
~G4Physics2DVector () | |
Protected Member Functions | |
G4double | BicubicInterpolation (const G4double x, const G4double y, const std::size_t idx, const std::size_t idy) const |
void | ClearVectors () |
void | CopyData (const G4Physics2DVector &vec) |
std::size_t | FindBin (const G4double z, const G4PV2DDataVector &, const std::size_t idz, const std::size_t idzmax) const |
void | PrepareVectors () |
Private Member Functions | |
G4double | DerivativeX (std::size_t idx, std::size_t idy, G4double fac) const |
G4double | DerivativeXY (std::size_t idx, std::size_t idy, G4double fac) const |
G4double | DerivativeY (std::size_t idx, std::size_t idy, G4double fac) const |
G4double | InterpolateLinearX (G4PV2DDataVector &v, G4double rand) const |
Private Attributes | |
std::size_t | numberOfXNodes = 0 |
std::size_t | numberOfYNodes = 0 |
G4PhysicsVectorType | type = T_G4PhysicsFreeVector |
G4bool | useBicubic = false |
std::vector< G4PV2DDataVector * > | value |
G4int | verboseLevel = 0 |
G4PV2DDataVector | xVector |
G4PV2DDataVector | yVector |
Definition at line 47 of file G4Physics2DVector.hh.
G4Physics2DVector::G4Physics2DVector | ( | ) |
Definition at line 37 of file G4Physics2DVector.cc.
References PrepareVectors().
|
explicit |
Definition at line 41 of file G4Physics2DVector.cc.
References FatalException, G4Exception(), numberOfXNodes, numberOfYNodes, and PrepareVectors().
G4Physics2DVector::G4Physics2DVector | ( | const G4Physics2DVector & | right | ) |
Definition at line 61 of file G4Physics2DVector.cc.
References CopyData(), numberOfXNodes, numberOfYNodes, PrepareVectors(), type, useBicubic, verboseLevel, xVector, and yVector.
G4Physics2DVector::~G4Physics2DVector | ( | ) |
Definition at line 57 of file G4Physics2DVector.cc.
References ClearVectors().
|
protected |
Definition at line 182 of file G4Physics2DVector.cc.
References DerivativeX(), DerivativeXY(), DerivativeY(), GetValue(), xVector, and yVector.
Referenced by Value().
|
protected |
Definition at line 117 of file G4Physics2DVector.cc.
References numberOfYNodes, and value.
Referenced by operator=(), PutVectors(), Retrieve(), and ~G4Physics2DVector().
|
protected |
Definition at line 127 of file G4Physics2DVector.cc.
References numberOfXNodes, numberOfYNodes, PutValue(), value, xVector, and yVector.
Referenced by G4Physics2DVector(), and operator=().
|
inlineprivate |
Referenced by BicubicInterpolation().
|
inlineprivate |
Referenced by BicubicInterpolation().
|
inlineprivate |
Referenced by BicubicInterpolation().
|
inlineprotected |
|
inline |
Referenced by Value().
|
inline |
Referenced by FindLinearX(), and Value().
Definition at line 388 of file G4Physics2DVector.cc.
References FindBinLocationY(), InterpolateLinearX(), G4INCL::Math::max(), G4INCL::Math::min(), numberOfYNodes, value, and yVector.
Referenced by G4MuPairProductionModel::FindScaledEnergy().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by G4MuonVDNuclearModel::CalculateEMVertex(), and G4OpticalSurface::ReadDichroicFile().
|
inline |
|
private |
Definition at line 409 of file G4Physics2DVector.cc.
References G4InuclParticleNames::nn, and xVector.
Referenced by FindLinearX().
|
delete |
G4Physics2DVector & G4Physics2DVector::operator= | ( | const G4Physics2DVector & | right | ) |
Definition at line 80 of file G4Physics2DVector.cc.
References ClearVectors(), CopyData(), numberOfXNodes, numberOfYNodes, PrepareVectors(), type, useBicubic, and verboseLevel.
|
delete |
|
protected |
Definition at line 104 of file G4Physics2DVector.cc.
References numberOfXNodes, numberOfYNodes, value, xVector, and yVector.
Referenced by G4Physics2DVector(), operator=(), PutVectors(), and Retrieve().
|
inline |
void G4Physics2DVector::PutVectors | ( | const std::vector< G4double > & | vecX, |
const std::vector< G4double > & | vecY | ||
) |
Definition at line 258 of file G4Physics2DVector.cc.
References ClearVectors(), FatalException, G4Exception(), numberOfXNodes, numberOfYNodes, PrepareVectors(), xVector, and yVector.
|
inline |
|
inline |
G4bool G4Physics2DVector::Retrieve | ( | std::ifstream & | fIn | ) |
Definition at line 320 of file G4Physics2DVector.cc.
References ClearVectors(), INT_MAX, numberOfXNodes, numberOfYNodes, PrepareVectors(), PutValue(), type, xVector, and yVector.
Referenced by G4SeltzerBergerModel::ReadData(), G4LivermoreBremsstrahlungModel::ReadData(), G4OpticalSurface::ReadDichroicFile(), and G4MuPairProductionModel::RetrieveTables().
void G4Physics2DVector::ScaleVector | ( | G4double | factor | ) |
Definition at line 373 of file G4Physics2DVector.cc.
References GetValue(), numberOfXNodes, numberOfYNodes, and PutValue().
|
inline |
|
inline |
void G4Physics2DVector::Store | ( | std::ofstream & | fOut | ) | const |
Definition at line 287 of file G4Physics2DVector.cc.
References G4endl, GetValue(), numberOfXNodes, numberOfYNodes, CLHEP::prec, type, xVector, and yVector.
Referenced by G4MuPairProductionModel::StoreTables().
G4double G4Physics2DVector::Value | ( | G4double | x, |
G4double | y, | ||
std::size_t & | lastidx, | ||
std::size_t & | lastidy | ||
) | const |
Definition at line 146 of file G4Physics2DVector.cc.
References BicubicInterpolation(), FindBinLocationX(), FindBinLocationY(), GetValue(), G4INCL::Math::max(), G4INCL::Math::min(), numberOfXNodes, numberOfYNodes, useBicubic, xVector, and yVector.
Referenced by G4eDPWAElasticDCS::ComputeCSPerAtom(), G4LivermoreBremsstrahlungModel::ComputeDXSectionPerAtom(), G4SeltzerBergerModel::ComputeDXSectionPerAtom(), G4OpBoundaryProcess::DielectricDichroic(), G4MuPairProductionModel::FindScaledEnergy(), G4ChannelingECHARM::GetEC(), G4eDPWAElasticDCS::LoadDCSForZ(), G4SeltzerBergerModel::ReadData(), G4LivermoreBremsstrahlungModel::ReadData(), G4SeltzerBergerModel::SampleEnergyTransfer(), and G4LivermoreBremsstrahlungModel::SampleSecondaries().
|
private |
Definition at line 148 of file G4Physics2DVector.hh.
Referenced by CopyData(), G4Physics2DVector(), operator=(), PrepareVectors(), PutVectors(), Retrieve(), ScaleVector(), Store(), and Value().
|
private |
Definition at line 149 of file G4Physics2DVector.hh.
Referenced by ClearVectors(), CopyData(), FindLinearX(), G4Physics2DVector(), operator=(), PrepareVectors(), PutVectors(), Retrieve(), ScaleVector(), Store(), and Value().
|
private |
Definition at line 145 of file G4Physics2DVector.hh.
Referenced by G4Physics2DVector(), operator=(), Retrieve(), and Store().
|
private |
Definition at line 156 of file G4Physics2DVector.hh.
Referenced by G4Physics2DVector(), operator=(), and Value().
|
private |
Definition at line 153 of file G4Physics2DVector.hh.
Referenced by ClearVectors(), CopyData(), FindLinearX(), and PrepareVectors().
|
private |
Definition at line 155 of file G4Physics2DVector.hh.
Referenced by G4Physics2DVector(), and operator=().
|
private |
Definition at line 151 of file G4Physics2DVector.hh.
Referenced by BicubicInterpolation(), CopyData(), G4Physics2DVector(), InterpolateLinearX(), PrepareVectors(), PutVectors(), Retrieve(), Store(), and Value().
|
private |
Definition at line 152 of file G4Physics2DVector.hh.
Referenced by BicubicInterpolation(), CopyData(), FindLinearX(), G4Physics2DVector(), PrepareVectors(), PutVectors(), Retrieve(), Store(), and Value().