Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4PhysicsFreeVector Class Reference

#include <G4PhysicsFreeVector.hh>

Inheritance diagram for G4PhysicsFreeVector:
Collaboration diagram for G4PhysicsFreeVector:

Public Member Functions

 G4PhysicsFreeVector ()
 
 G4PhysicsFreeVector (size_t length)
 
 G4PhysicsFreeVector (const G4DataVector &eVector, const G4DataVector &dataVector)
 
virtual ~G4PhysicsFreeVector ()
 
void PutValue (size_t index, G4double energy, G4double dataValue)
 
- Public Member Functions inherited from G4PhysicsVector
 G4PhysicsVector (G4bool spline=false)
 
 G4PhysicsVector (const G4PhysicsVector &)
 
G4PhysicsVectoroperator= (const G4PhysicsVector &)
 
virtual ~G4PhysicsVector ()
 
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 index) const
 
G4double operator() (const size_t index) 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)
 
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 (size_t index)
 
- 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 48 of file G4PhysicsFreeVector.cc.

49  : G4PhysicsVector()
50 {
52 }
G4PhysicsVector(G4bool spline=false)
G4PhysicsVectorType type
G4PhysicsFreeVector::G4PhysicsFreeVector ( size_t  length)
explicit

Definition at line 54 of file G4PhysicsFreeVector.cc.

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

Definition at line 70 of file G4PhysicsFreeVector.cc.

72  : G4PhysicsVector()
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  if(numberOfNodes > 0)
86  {
87  edgeMin = binVector[0];
88  edgeMax = binVector[numberOfNodes-1];
89  }
90 }
G4PhysicsVector(G4bool spline=false)
G4PVDataVector binVector
G4PhysicsVectorType type
G4PhysicsFreeVector::~G4PhysicsFreeVector ( )
virtual

Definition at line 92 of file G4PhysicsFreeVector.cc.

93 {}

Member Function Documentation

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

Definition at line 87 of file G4PhysicsFreeVector.hh.

88 {
89  if(index >= numberOfNodes) { PrintPutValueError(index); }
90  binVector[index] = e;
91  dataVector[index] = value;
92  if(index == 0) { edgeMin = e; }
93  else if( numberOfNodes - 1 == index) { edgeMax = e; }
94 }
void PrintPutValueError(size_t index)
G4PVDataVector dataVector
G4PVDataVector binVector
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the call graph for this function:

Here is the caller graph for this function:


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