#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 () |
Definition at line 52 of file G4LPhysicsFreeVector.hh.
G4LPhysicsFreeVector::G4LPhysicsFreeVector | ( | ) |
Definition at line 48 of file G4LPhysicsFreeVector.cc.
References T_G4LPhysicsFreeVector, and G4PhysicsVector::type.
00049 : G4PhysicsVector() 00050 { 00051 type = T_G4LPhysicsFreeVector; 00052 }
Definition at line 56 of file G4LPhysicsFreeVector.cc.
References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::edgeMax, G4PhysicsVector::edgeMin, G4PhysicsVector::numberOfNodes, T_G4LPhysicsFreeVector, and G4PhysicsVector::type.
00059 : G4PhysicsVector() 00060 { 00061 type = T_G4LPhysicsFreeVector; 00062 00063 edgeMin = binmin; 00064 edgeMax = binmax; 00065 numberOfNodes = nbin; 00066 binVector.reserve(numberOfNodes); 00067 dataVector.reserve(numberOfNodes); 00068 for (size_t i=0; i<numberOfNodes; i++) 00069 { 00070 binVector.push_back(0.0); 00071 dataVector.push_back(0.0); 00072 } 00073 }
G4LPhysicsFreeVector::~G4LPhysicsFreeVector | ( | ) |
void G4LPhysicsFreeVector::DumpValues | ( | ) |
Definition at line 83 of file G4LPhysicsFreeVector.cc.
References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4cout, G4endl, and G4PhysicsVector::numberOfNodes.
00084 { 00085 for (size_t i = 0; i < numberOfNodes; i++) 00086 { 00087 G4cout << binVector[i] << " " << dataVector[i]/millibarn << G4endl; 00088 } 00089 }
void G4LPhysicsFreeVector::PutValues | ( | size_t | binNumber, | |
G4double | binValue, | |||
G4double | dataValue | |||
) | [inline] |
Definition at line 44 of file G4LPhysicsFreeVector.icc.
References G4PhysicsVector::binVector, G4PhysicsVector::dataVector, G4PhysicsVector::edgeMax, G4PhysicsVector::edgeMin, and G4PhysicsVector::numberOfNodes.
Referenced by G4LossTableBuilder::BuildInverseRangeTable(), G4NeutronHPorLEInelasticData::BuildPhysicsTable(), G4NeutronHPData::DoPhysicsVector(), and G4HadronNucleonXsc::InitialiseKaonNucleonTotXsc().
00048 { 00049 binVector[binNumber] = binValue; 00050 dataVector[binNumber] = dataValue; 00051 if(binNumber == 0) 00052 { edgeMin = binValue; } 00053 else if( numberOfNodes - 1 == binNumber) 00054 { edgeMax = binValue; } 00055 }