![]() |
GGEMS
1.1
GPU GEant4-based Monte Carlo Simulations
|
GGEMS class computing log table for cut convertion from length to energy. More...
#include "GGEMSLogEnergyTable.hh"

Public Member Functions | |
| GGEMSLogEnergyTable (GGfloat const &lowest_energy, GGfloat const &highest_energy, GGsize const &number_of_bins) | |
| GGEMSLogEnergyTable constructor. More... | |
| ~GGEMSLogEnergyTable (void) | |
| GGEMSLogEnergyTable destructor. More... | |
| GGEMSLogEnergyTable (GGEMSLogEnergyTable const &log_energy_table)=delete | |
| Avoid copy by reference. More... | |
| GGEMSLogEnergyTable & | operator= (GGEMSLogEnergyTable const &log_energy_table)=delete |
| Avoid assignement by reference. More... | |
| GGEMSLogEnergyTable (GGEMSLogEnergyTable const &&log_energy_table)=delete | |
| Avoid copy by rvalue reference. More... | |
| GGEMSLogEnergyTable & | operator= (GGEMSLogEnergyTable const &&log_energy_table)=delete |
| Avoid copy by rvalue reference. More... | |
| void | SetValue (GGsize const &index, GGfloat const &value) |
| Set the data vector at index. More... | |
| GGfloat | GetEnergy (GGsize const &index) const |
| get the energy at the bin index More... | |
| GGfloat | GetLossTableData (GGsize const &index) const |
| get the loss table data value at the bin index More... | |
| GGfloat | GetLowEdgeEnergy (GGsize const &index) const |
| get the energy at the bin index similar to GGEMSLogEnergyTable::GetEnergy More... | |
| GGfloat | GetLossTableValue (GGfloat const &energy) const |
| get the interpolated loss table value More... | |
Private Member Functions | |
| GGsize | FindBinLocation (GGfloat const &energy) const |
| get the bin where is the energy More... | |
| GGsize | FindBin (GGfloat const &energy, GGsize const &index) const |
| get the bin where is the energy depending on a index More... | |
Private Attributes | |
| GGfloat | edge_min_ |
| GGfloat | edge_max_ |
| GGsize | number_of_nodes_ |
| std::vector< GGfloat > | loss_table_data_ |
| std::vector< GGfloat > | bins_ |
| GGfloat | bin_width_ |
| GGfloat | base_bin_ |
GGEMS class computing log table for cut convertion from length to energy.
Definition at line 51 of file GGEMSLogEnergyTable.hh.
| GGEMSLogEnergyTable::GGEMSLogEnergyTable | ( | GGfloat const & | lowest_energy, |
| GGfloat const & | highest_energy, | ||
| GGsize const & | number_of_bins | ||
| ) |
GGEMSLogEnergyTable constructor.
| lowest_energy | - lowest energy in the loss table |
| highest_energy | - highest energy in the loss table |
| number_of_bins | - number of bins in the loss table |
Definition at line 39 of file GGEMSLogEnergyTable.cc.
| GGEMSLogEnergyTable::~GGEMSLogEnergyTable | ( | void | ) |
GGEMSLogEnergyTable destructor.
Definition at line 76 of file GGEMSLogEnergyTable.cc.
|
delete |
Avoid copy by reference.
| log_energy_table | - reference on the GGEMS log energy table |
|
delete |
Avoid copy by rvalue reference.
| log_energy_table | - rvalue reference on the GGEMS log energy table |
get the bin where is the energy depending on a index
| energy | - energy of the bin |
| index | - index of the bin |
Definition at line 146 of file GGEMSLogEnergyTable.cc.
get the bin where is the energy
| energy | - energy of the bin |
Definition at line 125 of file GGEMSLogEnergyTable.cc.
get the energy at the bin index
| index | - index of the bin |
Definition at line 109 of file GGEMSLogEnergyTable.hh.
get the loss table data value at the bin index
| index | - index of the bin |
Definition at line 117 of file GGEMSLogEnergyTable.hh.
get the interpolated loss table value
| energy | - energy of the bin |
Definition at line 96 of file GGEMSLogEnergyTable.cc.
get the energy at the bin index similar to GGEMSLogEnergyTable::GetEnergy
| index | - index of the bin |
Definition at line 125 of file GGEMSLogEnergyTable.hh.
|
delete |
Avoid copy by rvalue reference.
| log_energy_table | - rvalue reference on the GGEMS log energy table |
|
delete |
Avoid assignement by reference.
| log_energy_table | - reference on the GGEMS log energy table |
Set the data vector at index.
| index | - index of the bin |
| value | - value to put in data vector |
Definition at line 87 of file GGEMSLogEnergyTable.cc.
|
private |
Set this in constructor for performance
Definition at line 160 of file GGEMSLogEnergyTable.hh.
|
private |
Bin width - useful only for fixed binning
Definition at line 159 of file GGEMSLogEnergyTable.hh.
|
private |
Vector keeping energy
Definition at line 158 of file GGEMSLogEnergyTable.hh.
|
private |
Energy of the last point
Definition at line 155 of file GGEMSLogEnergyTable.hh.
|
private |
Energy of first point
Definition at line 154 of file GGEMSLogEnergyTable.hh.
|
private |
Vector keeping the crossection/energyloss
Definition at line 157 of file GGEMSLogEnergyTable.hh.
|
private |
Number of the nodes
Definition at line 156 of file GGEMSLogEnergyTable.hh.