Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PhysicsFreeVector Class Reference

#include <G4PhysicsFreeVector.hh>

+ Inheritance diagram for G4PhysicsFreeVector:

Public Member Functions

 G4PhysicsFreeVector ()
 
 G4PhysicsFreeVector (std::size_t length)
 
 G4PhysicsFreeVector (const G4DataVector &eVector, const G4DataVector &dataVector)
 
virtual ~G4PhysicsFreeVector ()
 
void PutValue (std::size_t index, G4double energy, G4double dValue)
 
- Public Member Functions inherited from G4PhysicsVector
 G4PhysicsVector (G4bool spline=false)
 
 G4PhysicsVector (const G4PhysicsVector &)
 
G4PhysicsVectoroperator= (const G4PhysicsVector &)
 
G4bool operator== (const G4PhysicsVector &right) const
 
G4bool operator!= (const G4PhysicsVector &right) const
 
virtual ~G4PhysicsVector ()
 
G4double Value (G4double theEnergy, std::size_t &lastidx) const
 
G4double LogVectorValue (const G4double theEnergy, const G4double theLogEnergy) const
 
G4double Value (G4double theEnergy) const
 
G4double GetValue (G4double theEnergy, G4bool &isOutRange) const
 
G4double operator[] (const std::size_t index) const
 
G4double operator() (const std::size_t index) const
 
void PutValue (std::size_t index, G4double theValue)
 
virtual void ScaleVector (G4double factorE, G4double factorV)
 
G4double Energy (std::size_t index) const
 
G4double GetMaxEnergy () const
 
G4double GetLowEdgeEnergy (std::size_t binNumber) const
 
std::size_t GetVectorLength () const
 
std::size_t FindBin (const G4double energy, const std::size_t idx) const
 
std::size_t ComputeLogVectorBin (const G4double logenergy) const
 
void FillSecondDerivatives ()
 
void ComputeSecDerivatives ()
 
void ComputeSecondDerivatives (G4double firstPointDerivative, G4double endPointDerivative)
 
G4double FindLinearEnergy (G4double rand) const
 
G4bool IsFilledVectorExist () const
 
G4PhysicsVectorType GetType () const
 
void SetSpline (G4bool)
 
G4bool Store (std::ofstream &fOut, G4bool ascii=false) const
 
virtual G4bool Retrieve (std::ifstream &fIn, G4bool ascii=false)
 
void DumpValues (G4double unitE=1.0, G4double unitV=1.0) const
 
void SetVerboseLevel (G4int value)
 

Additional Inherited Members

- Protected Member Functions inherited from G4PhysicsVector
void DeleteData ()
 
void CopyData (const G4PhysicsVector &vec)
 
void PrintPutValueError (std::size_t index)
 
- Protected Attributes inherited from G4PhysicsVector
G4PhysicsVectorType type = T_G4PhysicsVector
 
G4double edgeMin = 0.0
 
G4double edgeMax = 0.0
 
G4double invdBin = 0.0
 
G4double baseBin = 0.0
 
G4int verboseLevel = 0
 
std::size_t numberOfNodes = 0
 
G4PVDataVector dataVector
 
G4PVDataVector binVector
 
G4PVDataVector secDerivative
 

Detailed Description

Definition at line 51 of file G4PhysicsFreeVector.hh.

Constructor & Destructor Documentation

◆ G4PhysicsFreeVector() [1/3]

G4PhysicsFreeVector::G4PhysicsFreeVector ( )

Definition at line 38 of file G4PhysicsFreeVector.cc.

40{
42}
@ T_G4PhysicsFreeVector
G4PhysicsVectorType type

◆ G4PhysicsFreeVector() [2/3]

G4PhysicsFreeVector::G4PhysicsFreeVector ( std::size_t  length)
explicit

Definition at line 45 of file G4PhysicsFreeVector.cc.

47{
49 numberOfNodes = length;
50
52 binVector.reserve(numberOfNodes);
53
54 for(std::size_t i = 0; i < numberOfNodes; ++i)
55 {
56 binVector.push_back(0.0);
57 dataVector.push_back(0.0);
58 }
59}
G4PVDataVector binVector
std::size_t numberOfNodes
G4PVDataVector dataVector

◆ G4PhysicsFreeVector() [3/3]

G4PhysicsFreeVector::G4PhysicsFreeVector ( const G4DataVector eVector,
const G4DataVector dataVector 
)

Definition at line 62 of file G4PhysicsFreeVector.cc.

65{
67 numberOfNodes = theBinVector.size();
68
70 binVector.reserve(numberOfNodes);
71
72 for(std::size_t i = 0; i < numberOfNodes; ++i)
73 {
74 binVector.push_back(theBinVector[i]);
75 dataVector.push_back(theDataVector[i]);
76 }
77 if(numberOfNodes > 0)
78 {
79 edgeMin = binVector[0];
81 }
82}

◆ ~G4PhysicsFreeVector()

G4PhysicsFreeVector::~G4PhysicsFreeVector ( )
virtual

Definition at line 85 of file G4PhysicsFreeVector.cc.

85{}

Member Function Documentation

◆ PutValue()

void G4PhysicsFreeVector::PutValue ( std::size_t  index,
G4double  energy,
G4double  dValue 
)
inline

Definition at line 77 of file G4PhysicsFreeVector.hh.

79{
80 if(index >= numberOfNodes)
81 {
82 PrintPutValueError(index);
83 }
84 binVector[index] = e;
85 dataVector[index] = value;
86 if(index == 0)
87 {
88 edgeMin = e;
89 }
90 else if(numberOfNodes - 1 == index)
91 {
92 edgeMax = e;
93 }
94}
void PrintPutValueError(std::size_t index)

Referenced by G4PenelopeCrossSection::AddCrossSectionPoint(), G4PenelopeCrossSection::AddShellCrossSectionPoint(), G4PartialWidthTable::AddWidths(), G4DiffuseElastic::BuildAngleTable(), G4NuclNuclDiffuseElastic::BuildAngleTable(), G4PenelopeBremsstrahlungFS::BuildScaledXSTable(), G4hhElastic::BuildTableT(), G4hhElastic::BuildTableTest(), G4XDeltaDeltaTable::CrossSectionTable(), G4XNDeltaTable::CrossSectionTable(), G4XDeltaDeltastarTable::CrossSectionTable(), G4XDeltaNstarTable::CrossSectionTable(), G4XNDeltastarTable::CrossSectionTable(), G4XNNstarTable::CrossSectionTable(), G4VXTRenergyLoss::GetAngleVector(), G4EMDissociationCrossSection::GetCrossSectionForProjectile(), G4NeutronElectronElModel::Initialise(), G4PAIPhotData::Initialise(), G4PAIModelData::Initialise(), G4FastPathHadronicCrossSection::fastPathEntry::Initialize(), G4BaryonPartialWidth::MassDependentWidth(), G4BaryonWidth::MassDependentWidth(), G4PenelopeCrossSection::NormalizeShellCrossSections(), G4PenelopeBremsstrahlungAngular::PrepareTables(), G4LPhysicsFreeVector::PutValues(), G4PenelopeBremsstrahlungFS::SampleGammaEnergy(), G4DiffuseElastic::TestAngleTable(), and G4NuclNuclDiffuseElastic::TestAngleTable().


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