#include <G4PenelopeSamplingData.hh>
Definition at line 49 of file G4PenelopeSamplingData.hh.
◆ G4PenelopeSamplingData() [1/2]
G4PenelopeSamplingData::G4PenelopeSamplingData |
( |
G4int |
npoints = 150 | ) |
|
Definition at line 37 of file G4PenelopeSamplingData.cc.
45 ITTL =
new std::vector<size_t>;
46 ITTU =
new std::vector<size_t>;
std::vector< size_t > * ITTL
std::vector< size_t > * ITTU
◆ ~G4PenelopeSamplingData()
G4PenelopeSamplingData::~G4PenelopeSamplingData |
( |
| ) |
|
◆ G4PenelopeSamplingData() [2/2]
◆ AddPoint()
Definition at line 97 of file G4PenelopeSamplingData.cc.
101 pac->push_back(pac0);
104 ITTL->push_back(ITTL0);
105 ITTU->push_back(ITTU0);
110 if (nOfPoints > ((
size_t)
np))
112 G4cout <<
"G4PenelopeSamplingData::AddPoint() " <<
G4endl;
113 G4cout <<
"WARNING: Up to now there are " << nOfPoints <<
" points in the table" <<
G4endl;
114 G4cout <<
"while the anticipated (declared) number is " << np <<
G4endl;
std::vector< size_t > * ITTL
size_t GetNumberOfStoredPoints()
G4GLOB_DLL std::ostream G4cout
std::vector< size_t > * ITTU
◆ Clear()
void G4PenelopeSamplingData::Clear |
( |
| ) |
|
Definition at line 79 of file G4PenelopeSamplingData.cc.
92 ITTL =
new std::vector<size_t>;
93 ITTU =
new std::vector<size_t>;
std::vector< size_t > * ITTL
std::vector< size_t > * ITTU
◆ DumpTable()
void G4PenelopeSamplingData::DumpTable |
( |
| ) |
|
Definition at line 120 of file G4PenelopeSamplingData.cc.
123 G4cout <<
"*************************************************************************" <<
G4endl;
125 G4cout <<
"*************************************************************************" <<
G4endl;
128 G4cout << i <<
" " << (*x)[i] <<
" " << (*pac)[i] <<
" " << (*a)[i] <<
" " <<
129 (*b)[i] <<
" " << (*ITTL)[i] <<
" " << (*ITTU)[i] <<
G4endl;
131 G4cout <<
"*************************************************************************" <<
G4endl;
size_t GetNumberOfStoredPoints()
G4GLOB_DLL std::ostream G4cout
◆ GetA()
G4double G4PenelopeSamplingData::GetA |
( |
size_t |
index | ) |
|
◆ GetB()
G4double G4PenelopeSamplingData::GetB |
( |
size_t |
index | ) |
|
◆ GetNumberOfStoredPoints()
size_t G4PenelopeSamplingData::GetNumberOfStoredPoints |
( |
| ) |
|
Definition at line 61 of file G4PenelopeSamplingData.cc.
63 size_t points =
x->size();
66 if (
pac->size() != points ||
a->size() != points ||
67 b->size() != points ||
ITTL->size() != points ||
68 ITTU->size() != points)
71 ed <<
"Data vectors look to have different dimensions !" <<
G4endl;
72 G4Exception(
"G4PenelopeSamplingData::GetNumberOfStoredPoints()",
"em2040",
std::vector< size_t > * ITTL
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::vector< size_t > * ITTU
◆ GetPAC()
G4double G4PenelopeSamplingData::GetPAC |
( |
size_t |
index | ) |
|
◆ GetX()
G4double G4PenelopeSamplingData::GetX |
( |
size_t |
index | ) |
|
◆ operator=()
◆ SampleValue()
Definition at line 171 of file G4PenelopeSamplingData.cc.
177 size_t itn = (size_t) (maxRand*(points-1));
178 size_t i = (*ITTL)[itn];
179 size_t j = (*ITTU)[itn];
184 if (maxRand > (*
pac)[k])
198 ((1.0+(*a)[i]+(*b)[i])*d*rr/
199 (d*d+((*
a)[i]*d+(*b)[i]*rr)*rr))*((*
x)[i+1]-(*x)[i]);
size_t GetNumberOfStoredPoints()
◆ ITTL
std::vector<size_t>* G4PenelopeSamplingData::ITTL |
|
private |
◆ ITTU
std::vector<size_t>* G4PenelopeSamplingData::ITTU |
|
private |
◆ np
G4int G4PenelopeSamplingData::np |
|
private |
◆ pac
The documentation for this class was generated from the following files: