ATLAS Offline Software
|
#include <TFCS1DFunctionTemplateHelpers.h>
Public Types | |
typedef TFCS1DFunction_size_t | size_t |
typedef T | value_type |
typedef Trandom | random_type |
Public Member Functions | |
TFCS1DFunction_HistogramContent (size_t nbins=0) | |
std::size_t | MemorySizeArray () const |
std::size_t | MemorySize () const |
void | set_fraction (size_t pos, Trandom value) |
Set the content of bin pos to a given value, where value is in the range [0,1]. More... | |
Trandom | get_fraction (size_t pos) const |
Get the cumulative content at bin pos as fraction in the range [0,1]. More... | |
Trandom | get_binfraction (size_t pos) const |
Get the content at bin pos as fraction in the range [0,1]. More... | |
void | set_nbins (size_t nbins) |
set number of bins. More... | |
size_t | get_nbins () const |
return number of bins. More... | |
size_t | get_bin (Trandom drnd, Trandom &residual_rnd) const |
Get the matching bin for a given random value in the range [0,1). More... | |
Private Member Functions | |
size_t | size () const |
Private Attributes | |
TFCS1DFunction_Array< T > | m_array |
Definition at line 157 of file TFCS1DFunctionTemplateHelpers.h.
typedef Trandom TFCS1DFunction_HistogramContent< T, Trandom >::random_type |
Definition at line 161 of file TFCS1DFunctionTemplateHelpers.h.
typedef TFCS1DFunction_size_t TFCS1DFunction_HistogramContent< T, Trandom >::size_t |
Definition at line 159 of file TFCS1DFunctionTemplateHelpers.h.
typedef T TFCS1DFunction_HistogramContent< T, Trandom >::value_type |
Definition at line 160 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 163 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Get the matching bin for a given random value in the range [0,1).
A residual random number to calculate a position inside this bin is returned in residual_rnd
Definition at line 208 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Get the content at bin pos as fraction in the range [0,1].
Definition at line 185 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Get the cumulative content at bin pos as fraction in the range [0,1].
Definition at line 178 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
return number of bins.
This is one larger than size, as the last bin is fixed with the range [get_fraction(size()-1,1]
Definition at line 203 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 167 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Definition at line 166 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
Set the content of bin pos to a given value, where value is in the range [0,1].
Definition at line 171 of file TFCS1DFunctionTemplateHelpers.h.
|
inline |
|
inlineprivate |
Definition at line 244 of file TFCS1DFunctionTemplateHelpers.h.
|
private |
Definition at line 243 of file TFCS1DFunctionTemplateHelpers.h.