Scintillator is a class to generate the energy response due to the scintillator of the X-Ray detector.
More...
#include <Scintillator.h>
Scintillator is a class to generate the energy response due to the scintillator of the X-Ray detector.
Definition at line 101 of file Scintillator.h.
◆ Scintillator()
gVirtualXRay::Scintillator::Scintillator |
( |
| ) |
|
|
inline |
◆ ~Scintillator()
gVirtualXRay::Scintillator::~Scintillator |
( |
| ) |
|
|
inline |
◆ applyEnergyResponse()
Apply the energy response if any.
- Parameters
-
- Returns
- the output energy
Definition at line 476 of file Scintillator.inl.
◆ findNearestEnergyIdx()
int gVirtualXRay::Scintillator::findNearestEnergyIdx |
( |
const RATIONAL_NUMBER & |
anEnergy | ) |
const |
|
inlineprotected |
Find the index of the closest input energy in the energy response.
- Returns
- the index of the closest input energy
Definition at line 504 of file Scintillator.inl.
◆ getCompound()
std::string gVirtualXRay::Scintillator::getCompound |
( |
const std::string & |
aMaterial | ) |
|
|
inlinestatic |
◆ getDensity()
RATIONAL_NUMBER gVirtualXRay::Scintillator::getDensity |
( |
const std::string & |
aMaterial | ) |
|
|
inlinestatic |
◆ getEnergyResponse() [1/2]
◆ getEnergyResponse() [2/2]
◆ getMaterial()
const std::string & gVirtualXRay::Scintillator::getMaterial |
( |
| ) |
const |
|
inline |
◆ getSupportedScintillatorMaterials()
std::vector< std::string > gVirtualXRay::Scintillator::getSupportedScintillatorMaterials |
( |
| ) |
|
|
inlinestatic |
Accessor on the list of scintillator materials currently supported.
- Returns
- the list of supported scintillator materials
Definition at line 155 of file Scintillator.inl.
◆ getThickness()
◆ loadEnergyResponse()
void gVirtualXRay::Scintillator::loadEnergyResponse |
( |
const std::string & |
aFileName, |
|
|
const RATIONAL_NUMBER & |
aUnitOfEnergy |
|
) |
| |
|
inline |
Load the energy response of the detector from a TSV file.
- Parameters
-
aFileName | name of the file. Each line of the file is formatted as follows: input_energy output_energy |
aUnitOfEnergy | the unit of energy corresponding to the data in the file |
Definition at line 407 of file Scintillator.inl.
◆ release()
void gVirtualXRay::Scintillator::release |
( |
| ) |
|
|
inline |
◆ setEnergyResponse() [1/2]
void gVirtualXRay::Scintillator::setEnergyResponse |
( |
const std::vector< std::pair< float, float > > & |
anEnergyResponse | ) |
|
|
inline |
◆ setEnergyResponse() [2/2]
void gVirtualXRay::Scintillator::setEnergyResponse |
( |
const std::vector< std::pair< double, double > > & |
anEnergyResponse | ) |
|
|
inline |
◆ setMaterial()
void gVirtualXRay::Scintillator::setMaterial |
( |
const std::string & |
aMaterial | ) |
|
|
inline |
◆ setThickness()
void gVirtualXRay::Scintillator::setThickness |
( |
const RATIONAL_NUMBER & |
aThickness | ) |
|
|
inline |
◆ m_density
◆ m_material
std::string gVirtualXRay::Scintillator::m_material |
|
protected |
◆ m_p_energy_response
Energy response. The keys of the map are the input energies.
Definition at line 203 of file Scintillator.h.
◆ m_thickness
The documentation for this class was generated from the following files:
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/Scintillator.h
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/Scintillator.inl