GGEMS class handling material(s) for a specific navigator.
More...
#include "GGEMSMaterials.hh"
GGEMS class handling material(s) for a specific navigator.
Definition at line 48 of file GGEMSMaterials.hh.
◆ GGEMSMaterials() [1/3]
GGEMSMaterials::GGEMSMaterials |
( |
void |
| ) |
|
◆ ~GGEMSMaterials()
GGEMSMaterials::~GGEMSMaterials |
( |
void |
| ) |
|
◆ GGEMSMaterials() [2/3]
Avoid copy by reference.
- Parameters
-
materials | - reference on the GGEMS materials |
◆ GGEMSMaterials() [3/3]
Avoid copy by rvalue reference.
- Parameters
-
materials | - rvalue reference on the GGEMS materials |
◆ AddMaterial()
void GGEMSMaterials::AddMaterial |
( |
std::string const & |
material_name | ) |
|
Add a material associated to a phantom.
- Parameters
-
material_name | - name of the material |
Definition at line 102 of file GGEMSMaterials.cc.
◆ BuildMaterialTables()
void GGEMSMaterials::BuildMaterialTables |
( |
void |
| ) |
|
|
private |
◆ Clean()
void GGEMSMaterials::Clean |
( |
void |
| ) |
|
◆ GetAtomicNumberDensity()
GGfloat GGEMSMaterials::GetAtomicNumberDensity |
( |
std::string const & |
material_name, |
|
|
GGsize const & |
thread_index = 0 |
|
) |
| const |
get the atomic number density of material
- Parameters
-
material_name | - name of the material |
thread_index | - index of activated device (thread index) |
- Returns
- atomic number density of material in atom.cm-3
Definition at line 335 of file GGEMSMaterials.cc.
◆ GetDensity()
GGfloat GGEMSMaterials::GetDensity |
( |
std::string const & |
material_name, |
|
|
GGsize const & |
thread_index = 0 |
|
) |
| const |
get the density of material
- Parameters
-
material_name | - name of the material |
thread_index | - index of activated device (thread index) |
- Returns
- density of material in g.cm-3
Definition at line 307 of file GGEMSMaterials.cc.
◆ GetEnergyCut()
GGfloat GGEMSMaterials::GetEnergyCut |
( |
std::string const & |
material_name, |
|
|
std::string const & |
particle_type, |
|
|
GGfloat const & |
distance, |
|
|
std::string const & |
unit, |
|
|
GGsize const & |
thread_index = 0 |
|
) |
| |
Get the energy cut of material in keV.
- Parameters
-
material_name | - name of the material |
particle_type | - type of particle |
thread_index | - index of activated device (thread index) |
distance | - distance cut |
unit | - unit of the distance |
- Returns
- energy cut in keV
Definition at line 357 of file GGEMSMaterials.cc.
◆ GetMaterialIndex()
ptrdiff_t GGEMSMaterials::GetMaterialIndex |
( |
std::string const & |
material_name | ) |
const |
|
inline |
get the index of the material
- Parameters
-
material_name | - name of the material |
- Returns
- index of material
Definition at line 140 of file GGEMSMaterials.hh.
◆ GetMaterialName()
std::string GGEMSMaterials::GetMaterialName |
( |
GGsize |
i | ) |
const |
|
inline |
get the name of the material at position i
- Parameters
-
- Returns
- name of the material
Definition at line 132 of file GGEMSMaterials.hh.
◆ GetMaterialTables()
cl::Buffer * GGEMSMaterials::GetMaterialTables |
( |
GGsize const & |
thread_index | ) |
const |
|
inline |
get the pointer on material tables on OpenCL device
- Parameters
-
thread_index | - index of activated device (thread index) |
- Returns
- the pointer on material tables on OpenCL device
Definition at line 164 of file GGEMSMaterials.hh.
◆ GetNumberOfMaterials()
GGsize GGEMSMaterials::GetNumberOfMaterials |
( |
void |
| ) |
const |
|
inline |
Get the number of materials in the phantom.
- Returns
- the number of materials in the phantom
Definition at line 156 of file GGEMSMaterials.hh.
◆ GetRangeCuts()
get the pointer on range cuts
- Returns
- the pointer on range cuts
Definition at line 171 of file GGEMSMaterials.hh.
◆ Initialize()
void GGEMSMaterials::Initialize |
( |
void |
| ) |
|
◆ operator=() [1/2]
Avoid copy by rvalue reference.
- Parameters
-
materials | - rvalue reference on the GGEMS materials |
◆ operator=() [2/2]
Avoid assignement by reference.
- Parameters
-
materials | - reference on the GGEMS materials |
◆ PrintInfos()
void GGEMSMaterials::PrintInfos |
( |
void |
| ) |
const |
◆ SetDistanceCut()
void GGEMSMaterials::SetDistanceCut |
( |
std::string const & |
particle_name, |
|
|
GGfloat const & |
value, |
|
|
std::string const & |
unit |
|
) |
| |
set the cut for a particle in distance
- Parameters
-
particle_name | - type of particle gamma, e+, e- |
value | - value of cut |
unit | - length unit |
Definition at line 116 of file GGEMSMaterials.cc.
◆ material_tables_
cl::Buffer** GGEMSMaterials::material_tables_ |
|
private |
◆ materials_
std::vector<std::string> GGEMSMaterials::materials_ |
|
private |
◆ number_activated_devices_
GGsize GGEMSMaterials::number_activated_devices_ |
|
private |
◆ range_cuts_
The documentation for this class was generated from the following files: