#include <G4ElementData.hh>
|
| G4ElementData () |
|
| ~G4ElementData () |
|
void | InitialiseForElement (G4int Z, G4PhysicsVector *v) |
|
void | InitialiseForElement (G4int Z, G4Physics2DVector *v) |
|
void | InitialiseForComponent (G4int Z, G4int nComponents=0) |
|
void | AddComponent (G4int Z, G4int id, G4PhysicsVector *v) |
|
void | SetName (const G4String &nam) |
|
G4PhysicsVector * | GetElementData (G4int Z) |
|
G4Physics2DVector * | GetElement2DData (G4int Z) |
|
size_t | GetNumberOfComponents (G4int Z) |
|
G4int | GetComponentID (G4int Z, size_t idx) |
|
G4PhysicsVector * | GetComponentDataByIndex (G4int Z, size_t idx) |
|
G4PhysicsVector * | GetComponentDataByID (G4int Z, G4int id) |
|
G4double | GetValueForElement (G4int Z, G4double kinEnergy) |
|
G4double | GetValueForComponent (G4int Z, size_t idx, G4double kinEnergy) |
|
Definition at line 56 of file G4ElementData.hh.
G4ElementData::G4ElementData |
( |
| ) |
|
|
explicit |
Definition at line 48 of file G4ElementData.cc.
53 elm2Data[i] =
nullptr;
const G4int maxNumElements
G4ElementData::~G4ElementData |
( |
| ) |
|
Definition at line 60 of file G4ElementData.cc.
65 size_t n = compLength[i];
67 for(
size_t j=0; j<
n; ++j) {
69 delete (compData[i])[j];
const G4int maxNumElements
Definition at line 122 of file G4ElementData.cc.
125 G4cout <<
"G4ElementData::AddComponent ERROR for " <<
name
126 <<
" Z = " <<
Z <<
" is out of range!" <<
G4endl;
127 G4Exception(
"G4ElementData::AddComponent()",
"mat603",
131 (compData[
Z]).push_back(v);
132 (compID[
Z]).push_back(
id);
const G4int maxNumElements
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 155 of file G4ElementData.hh.
158 for(
size_t i=0; i<compLength[
Z]; ++i) {
159 if(
id == (compID[
Z])[i]) {
160 v = (compData[
Z])[i];
G4int G4ElementData::GetComponentID |
( |
G4int |
Z, |
|
|
size_t |
idx |
|
) |
| |
|
inline |
size_t G4ElementData::GetNumberOfComponents |
( |
G4int |
Z | ) |
|
|
inline |
Definition at line 168 of file G4ElementData.hh.
170 return elmData[
Z]->
Value(kinEnergy);
G4double Value(G4double theEnergy, size_t &lastidx) const
void G4ElementData::InitialiseForComponent |
( |
G4int |
Z, |
|
|
G4int |
nComponents = 0 |
|
) |
| |
Definition at line 100 of file G4ElementData.cc.
103 G4cout <<
"G4ElementData::InitialiseForComponent ERROR for " <<
name
104 <<
" Z = " <<
Z <<
" is out of range!" <<
G4endl;
105 G4Exception(
"G4ElementData::InitialiseForComponent()",
"mat602",
111 size_t n = compLength[
Z];
113 for(
size_t i=0; i<
n; ++i) {
delete (compData[
Z])[i]; }
114 (compData[
Z]).clear();
117 (compData[
Z]).reserve(nComponents);
118 (compID[
Z]).reserve(nComponents);
const G4int maxNumElements
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 74 of file G4ElementData.cc.
77 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
78 <<
" Z = " <<
Z <<
" is out of range!" <<
G4endl;
79 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
83 if(elmData[
Z]) {
delete elmData[
Z]; }
const G4int maxNumElements
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition at line 87 of file G4ElementData.cc.
90 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
91 <<
" Z = " <<
Z <<
" is out of range!" <<
G4endl;
92 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
96 if(elm2Data[
Z]) {
delete elm2Data[
Z]; }
const G4int maxNumElements
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
The documentation for this class was generated from the following files: