|
| TFCS2DFunctionTemplateHistogram (TH2 *hist=nullptr) |
|
| ~TFCS2DFunctionTemplateHistogram () |
|
std::size_t | MemorySizeArray () const |
|
std::size_t | MemorySize () const |
| Gives the total memory size, including the size of additional memory allocated inside the class. More...
|
|
void | set_nbins (size_t nbinsx, size_t nbinsy) |
| set number of bins More...
|
|
size_t | get_nbins () const |
| return number of bins More...
|
|
void | Initialize (const TH2 *hist) |
| Initialize from root histogram. More...
|
|
virtual void | rnd_to_fct (float &valuex, float &valuey, float rnd) const |
|
virtual void | rnd_to_fct (float &valuex, float &valuey, float rnd, float rnd2) const |
|
const Txvec & | get_HistoBordersx () const |
|
const Tyvec & | get_HistoBordersy () const |
|
Txvec & | get_HistoBordersx () |
| inline void get_XYZfromGlobal(int &ix, int &iy, int &iz, int global) const {hist;}; More...
|
|
Tyvec & | get_HistoBordersy () |
|
const TFCS1DFunction_HistogramContent< Tz, Trandom > & | get_HistoContents () const |
|
TFCS1DFunction_HistogramContent< Tz, Trandom > & | get_HistoContents () |
|
virtual void | rnd_to_fct (float &valuex, float &valuey, float rnd0, float rnd1) const=0 |
| Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution. More...
|
|
virtual void | rnd_to_fct (float value[], const float rnd[]) const |
| Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution. More...
|
|
virtual int | ndim () const |
| Return the number of dimensions for the function. More...
|
|
virtual void | rnd_to_fct (float value[], const float rnd[]) const |
| Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function value in array value. More...
|
|
bool | msgLvl (const MSG::Level lvl) const |
| Check whether the logging system is active at the provided verbosity level. More...
|
|
MsgStream & | msg () const |
| Return a stream for sending messages directly (no decoration) More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| Return a decorated starting stream for sending messages. More...
|
|
MSG::Level | level () const |
| Retrieve output level. More...
|
|
virtual void | setLevel (MSG::Level lvl) |
| Update outputlevel. More...
|
|
template<typename Txvec, typename Tyvec, typename Tz, typename Trandom = float>
class TFCS2DFunctionTemplateHistogram< Txvec, Tyvec, Tz, Trandom >
Definition at line 17 of file TFCS2DFunctionTemplateHistogram.h.
template<typename Txvec , typename Tyvec , typename Tz , typename Trandom = float>
Initialize from root histogram.
Depending on the precision of the x- and y-axis, bins are merged if numerical identical
Definition at line 52 of file TFCS2DFunctionTemplateHistogram.h.
53 Int_t nbinsx =
hist->GetNbinsX();
54 Int_t nbinsy =
hist->GetNbinsY();
55 std::vector<double> temp_HistoContents;
59 printf(
"initializing 2D template...");
67 hist->GetXaxis()->GetBinUpEdge(nbinsx));
69 hist->GetYaxis()->GetBinUpEdge(nbinsy));
71 for (Int_t ibinx = 1; ibinx <=
hist->GetNbinsX(); ++ibinx) {
73 ibinx,
hist->GetXaxis()->GetBinLowEdge(ibinx + 1));
85 for (Int_t ibiny = 1; ibiny <=
hist->GetNbinsY(); ++ibiny) {
87 ibiny,
hist->GetYaxis()->GetBinLowEdge(ibiny + 1));
100 for (Int_t ibinx = 1; ibinx <=
hist->GetNbinsX(); ++ibinx)
101 for (Int_t ibiny = 1; ibiny <=
hist->GetNbinsY(); ++ibiny) {
template<typename Txvec , typename Tyvec , typename Tz , typename Trandom = float>
Implements TFCS2DFunction.
Reimplemented in TFCS2DFunctionTemplateInterpolationHistogram< Txvec, Tyvec, Tz, Trandom >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< Txvec, Tyvec, Tz, Trandom >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint32_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt8BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint8_t, float >, and TFCS2DFunctionTemplateInterpolationExpHistogram< TFCS1DFunction_HistogramInt32BinEdges, TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >.
Definition at line 191 of file TFCS2DFunctionTemplateHistogram.h.
197 Trandom residual_rnd;
template<typename Txvec , typename Tyvec , typename Tz , typename Trandom = float>
virtual void TFCS2DFunction::rnd_to_fct |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
template<typename Txvec , typename Tyvec , typename Tz , typename Trandom = float>
void TFCS2DFunction::rnd_to_fct |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
Definition at line 24 of file TFCS2DFunction.cxx.