Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4PhysicsFreeVector Class Reference

#include <G4PhysicsFreeVector.hh>

Inheritance diagram for G4PhysicsFreeVector:
G4PhysicsVector

Public Member Functions

 G4PhysicsFreeVector ()
 
 G4PhysicsFreeVector (size_t theNbin)
 
 G4PhysicsFreeVector (const G4DataVector &binVector, const G4DataVector &dataVector)
 
virtual ~G4PhysicsFreeVector ()
 
void PutValue (size_t binNumber, G4double binValue, G4double dataValue)
 
- Public Member Functions inherited from G4PhysicsVector
 G4PhysicsVector (G4bool spline=false)
 
 G4PhysicsVector (const G4PhysicsVector &)
 
G4PhysicsVectoroperator= (const G4PhysicsVector &)
 
virtual ~G4PhysicsVector ()
 
voidoperator new (size_t)
 
void operator delete (void *)
 
G4double Value (G4double theEnergy, size_t &lastidx) const
 
G4double Value (G4double theEnergy) const
 
G4double GetValue (G4double theEnergy, G4bool &isOutRange) const
 
G4int operator== (const G4PhysicsVector &right) const
 
G4int operator!= (const G4PhysicsVector &right) const
 
G4double operator[] (const size_t binNumber) const
 
G4double operator() (const size_t binNumber) const
 
void PutValue (size_t index, G4double theValue)
 
virtual void ScaleVector (G4double factorE, G4double factorV)
 
G4double Energy (size_t index) const
 
G4double GetMaxEnergy () const
 
G4double GetLowEdgeEnergy (size_t binNumber) const
 
size_t GetVectorLength () const
 
size_t FindBin (G4double energy, size_t idx) 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)
 
virtual G4bool Store (std::ofstream &fOut, G4bool ascii=false)
 
virtual G4bool Retrieve (std::ifstream &fIn, G4bool ascii=false)
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel (G4int)
 

Additional Inherited Members

- Protected Member Functions inherited from G4PhysicsVector
void DeleteData ()
 
void CopyData (const G4PhysicsVector &vec)
 
- Protected Attributes inherited from G4PhysicsVector
G4PhysicsVectorType type
 
G4double edgeMin
 
G4double edgeMax
 
size_t numberOfNodes
 
G4PVDataVector dataVector
 
G4PVDataVector binVector
 
G4PVDataVector secDerivative
 
G4double dBin
 
G4double baseBin
 
G4int verboseLevel
 

Detailed Description

Definition at line 63 of file G4PhysicsFreeVector.hh.

Constructor & Destructor Documentation

G4PhysicsFreeVector::G4PhysicsFreeVector ( )

Definition at line 49 of file G4PhysicsFreeVector.cc.

References T_G4PhysicsFreeVector, and G4PhysicsVector::type.

50  : G4PhysicsVector()
51 {
53 }
G4PhysicsVector(G4bool spline=false)
G4PhysicsVectorType type
G4PhysicsFreeVector::G4PhysicsFreeVector ( size_t  theNbin)
explicit

Definition at line 55 of file G4PhysicsFreeVector.cc.

References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::numberOfNodes, T_G4PhysicsFreeVector, and G4PhysicsVector::type.

56  : G4PhysicsVector()
57 {
59  numberOfNodes = theNbin;
60 
61  dataVector.reserve(numberOfNodes);
62  binVector.reserve(numberOfNodes);
63 
64  for (size_t i=0; i<numberOfNodes; i++)
65  {
66  binVector.push_back(0.0);
67  dataVector.push_back(0.0);
68  }
69 }
G4PVDataVector dataVector
G4PhysicsVector(G4bool spline=false)
G4PVDataVector binVector
G4PhysicsVectorType type
G4PhysicsFreeVector::G4PhysicsFreeVector ( const G4DataVector binVector,
const G4DataVector dataVector 
)

Definition at line 71 of file G4PhysicsFreeVector.cc.

References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::edgeMax, G4PhysicsVector::edgeMin, G4PhysicsVector::numberOfNodes, T_G4PhysicsFreeVector, and G4PhysicsVector::type.

73 {
75  numberOfNodes = theBinVector.size();
76 
77  dataVector.reserve(numberOfNodes);
78  binVector.reserve(numberOfNodes);
79 
80  for (size_t i=0; i<numberOfNodes; i++)
81  {
82  binVector.push_back(theBinVector[i]);
83  dataVector.push_back(theDataVector[i]);
84  }
85 
86  edgeMin = binVector[0];
87  edgeMax = binVector[numberOfNodes-1];
88 }
G4PhysicsVectorType type
G4PhysicsFreeVector::~G4PhysicsFreeVector ( )
virtual

Definition at line 90 of file G4PhysicsFreeVector.cc.

91 {
92 }

Member Function Documentation

void G4PhysicsFreeVector::PutValue ( size_t  binNumber,
G4double  binValue,
G4double  dataValue 
)

Definition at line 94 of file G4PhysicsFreeVector.cc.

References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::edgeMax, G4PhysicsVector::edgeMin, and G4PhysicsVector::numberOfNodes.

Referenced by G4PenelopeCrossSection::AddCrossSectionPoint(), G4PenelopeCrossSection::AddShellCrossSectionPoint(), G4PartialWidthTable::AddWidths(), G4NuclNuclDiffuseElastic::BuildAngleTable(), G4DiffuseElastic::BuildAngleTable(), G4PAIPhotonModel::BuildPAIonisationTable(), G4PenelopeBremsstrahlungFS::BuildScaledXSTable(), G4XDeltaNstarTable::CrossSectionTable(), G4XDeltaDeltaTable::CrossSectionTable(), G4XNNstarTable::CrossSectionTable(), G4XDeltaDeltastarTable::CrossSectionTable(), G4XNDeltaTable::CrossSectionTable(), G4XNDeltastarTable::CrossSectionTable(), G4VXTRenergyLoss::GetAngleVector(), G4EMDissociationCrossSection::GetCrossSectionForProjectile(), G4PAIPhotData::Initialise(), G4PAIModelData::Initialise(), G4BaryonWidth::MassDependentWidth(), G4BaryonPartialWidth::MassDependentWidth(), G4PenelopeCrossSection::NormalizeShellCrossSections(), G4PenelopeBremsstrahlungAngular::PrepareTables(), G4PenelopeBremsstrahlungFS::SampleGammaEnergy(), G4NuclNuclDiffuseElastic::TestAngleTable(), and G4DiffuseElastic::TestAngleTable().

97 {
98  binVector[theBinNumber] = theBinValue;
99  dataVector[theBinNumber] = theDataValue;
100 
101  if( theBinNumber == numberOfNodes-1 )
102  {
104  }
105 
106  if( theBinNumber == 0 )
107  {
108  edgeMin = binVector[0];
109  }
110 }
G4PVDataVector dataVector
G4PVDataVector binVector

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