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

#include <G4LPhysicsFreeVector.hh>

+ Inheritance diagram for G4LPhysicsFreeVector:

Public Member Functions

 G4LPhysicsFreeVector ()
 
 G4LPhysicsFreeVector (size_t nbin, G4double binmin, G4double binmax)
 
 ~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 ()
 
void * operator new (size_t)
 
void operator delete (void *)
 
G4double Value (G4double theEnergy)
 
G4double GetValue (G4double theEnergy, G4bool &isOutRange)
 
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
 
virtual G4double GetLowEdgeEnergy (size_t binNumber) const
 
size_t GetVectorLength () const
 
void FillSecondDerivatives ()
 
void ComputeSecDerivatives ()
 
void ComputeSecondDerivatives (G4double firstPointDerivative, G4double endPointDerivative)
 
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)
 
G4double GetLastEnergy () const
 
G4double GetLastValue () const
 
size_t GetLastBin () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel (G4int)
 

Additional Inherited Members

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

Detailed Description

Definition at line 52 of file G4LPhysicsFreeVector.hh.

Constructor & Destructor Documentation

◆ G4LPhysicsFreeVector() [1/2]

G4LPhysicsFreeVector::G4LPhysicsFreeVector ( )

Definition at line 48 of file G4LPhysicsFreeVector.cc.

50{
52}
@ T_G4LPhysicsFreeVector
G4PhysicsVectorType type

◆ G4LPhysicsFreeVector() [2/2]

G4LPhysicsFreeVector::G4LPhysicsFreeVector ( size_t  nbin,
G4double  binmin,
G4double  binmax 
)

Definition at line 56 of file G4LPhysicsFreeVector.cc.

60{
62
63 edgeMin = binmin;
64 edgeMax = binmax;
65 numberOfNodes = nbin;
66 binVector.reserve(numberOfNodes);
68 for (size_t i=0; i<numberOfNodes; i++)
69 {
70 binVector.push_back(0.0);
71 dataVector.push_back(0.0);
72 }
73}
G4PVDataVector binVector
G4PVDataVector dataVector

◆ ~G4LPhysicsFreeVector()

G4LPhysicsFreeVector::~G4LPhysicsFreeVector ( )

Definition at line 77 of file G4LPhysicsFreeVector.cc.

78{
79}

Member Function Documentation

◆ DumpValues()

void G4LPhysicsFreeVector::DumpValues ( )

Definition at line 83 of file G4LPhysicsFreeVector.cc.

84{
85 for (size_t i = 0; i < numberOfNodes; i++)
86 {
87 G4cout << binVector[i] << " " << dataVector[i]/millibarn << G4endl;
88 }
89}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ PutValues()


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