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

#include <G4LPhysicsFreeVector.hh>

Inheritance diagram for G4LPhysicsFreeVector:
G4PhysicsVector

Public Member Functions

 G4LPhysicsFreeVector ()
 
 G4LPhysicsFreeVector (size_t nbin, G4double binmin, G4double binmax)
 
virtual ~G4LPhysicsFreeVector ()
 
void PutValues (size_t binNumber, G4double binValue, G4double dataValue)
 
void DumpValues ()
 
- 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 54 of file G4LPhysicsFreeVector.hh.

Constructor & Destructor Documentation

G4LPhysicsFreeVector::G4LPhysicsFreeVector ( )

Definition at line 49 of file G4LPhysicsFreeVector.cc.

References T_G4LPhysicsFreeVector, and G4PhysicsVector::type.

50  : G4PhysicsVector()
51 {
53 }
G4PhysicsVector(G4bool spline=false)
G4PhysicsVectorType type
G4LPhysicsFreeVector::G4LPhysicsFreeVector ( size_t  nbin,
G4double  binmin,
G4double  binmax 
)

Definition at line 57 of file G4LPhysicsFreeVector.cc.

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

60  : G4PhysicsVector()
61 {
63 
64  edgeMin = binmin;
65  edgeMax = binmax;
66  numberOfNodes = nbin;
67  binVector.reserve(numberOfNodes);
68  dataVector.reserve(numberOfNodes);
69  for (size_t i=0; i<numberOfNodes; i++)
70  {
71  binVector.push_back(0.0);
72  dataVector.push_back(0.0);
73  }
74 }
G4PVDataVector dataVector
G4PhysicsVector(G4bool spline=false)
G4PVDataVector binVector
G4PhysicsVectorType type
G4LPhysicsFreeVector::~G4LPhysicsFreeVector ( )
virtual

Definition at line 78 of file G4LPhysicsFreeVector.cc.

79 {
80 }

Member Function Documentation

void G4LPhysicsFreeVector::DumpValues ( )

Definition at line 84 of file G4LPhysicsFreeVector.cc.

References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4cout, G4endl, python.hepunit::millibarn, and G4PhysicsVector::numberOfNodes.

85 {
86  for (size_t i = 0; i < numberOfNodes; i++)
87  {
88  G4cout << binVector[i] << " " << dataVector[i]/millibarn << G4endl;
89  }
90 }
G4PVDataVector dataVector
G4PVDataVector binVector
int millibarn
Definition: hepunit.py:40
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void G4LPhysicsFreeVector::PutValues ( size_t  binNumber,
G4double  binValue,
G4double  dataValue 
)

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