ATLAS Offline Software
|
#include <TFCS2DFunctionTemplateInterpolationExpHistogram.h>
Public Types | |
typedef TFCS1DFunction_size_t | size_t |
typedef float | random_type |
typedef TFCS1DFunction_HistogramInt16BinEdges | xvec_type |
typedef TFCS1DFunction_HistogramInt32BinEdges | yvec_type |
typedef uint16_t | z_value_type |
Public Member Functions | |
TFCS2DFunctionInt16Int32Int16InterpolationExpHistogram (TH2 *h=nullptr) | |
virtual void | rnd_to_fct (float &valuex, float &valuey, float rnd, float rnd2) const |
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 &valuex, float &valuey, float rnd) const |
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 array of random numbers rnd[] in the range [0,1) as arguments and returns function value in array value. More... | |
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... | |
virtual 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... | |
const TFCS1DFunction_HistogramInt16BinEdges & | get_HistoBordersx () const |
TFCS1DFunction_HistogramInt16BinEdges & | get_HistoBordersx () |
inline void get_XYZfromGlobal(int &ix, int &iy, int &iz, int global) const {hist;}; More... | |
const TFCS1DFunction_HistogramInt32BinEdges & | get_HistoBordersy () const |
TFCS1DFunction_HistogramInt32BinEdges & | get_HistoBordersy () |
const TFCS1DFunction_HistogramContent< uint16_t, float > & | get_HistoContents () const |
TFCS1DFunction_HistogramContent< uint16_t, float > & | get_HistoContents () |
virtual int | ndim () const |
Return the number of dimensions for the function. 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... | |
Static Public Member Functions | |
static double | CheckAndIntegrate2DHistogram (const TH2 *hist, std::vector< double > &integral_vec, int &first, int &last) |
static void unit_test | ATLAS_NOT_THREAD_SAFE (TH2 *hist=nullptr, TFCS2DFunction *rtof=nullptr, const char *outfilename="TFCS2DFunction_unit_test.root", int nrnd=10000000) |
static void unit_tests | ATLAS_NOT_THREAD_SAFE (TH2 *hist=nullptr, const char *outfilename="TFCS2DFunction_unit_test.root", int nrnd=10000000) |
static std::string | startMsg (MSG::Level lvl, const std::string &file, int line) |
Make a message to decorate the start of logging. More... | |
Protected Attributes | |
TFCS1DFunction_HistogramInt16BinEdges | m_HistoBordersx |
TFCS1DFunction_HistogramInt32BinEdges | m_HistoBordersy |
TFCS1DFunction_HistogramContent< uint16_t, float > | m_HistoContents |
Private Attributes | |
std::string | m_nm |
Message source name. More... | |
Static Private Attributes | |
static boost::thread_specific_ptr< MsgStream > m_msg_tls | ATLAS_THREAD_SAFE |
Do not persistify! More... | |
Definition at line 332 of file TFCS2DFunctionTemplateInterpolationExpHistogram.h.
|
inherited |
Definition at line 20 of file TFCS2DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 19 of file TFCS2DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 21 of file TFCS2DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 22 of file TFCS2DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 23 of file TFCS2DFunctionTemplateHistogram.h.
|
inline |
Definition at line 337 of file TFCS2DFunctionTemplateInterpolationExpHistogram.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 26 of file TFCS2DFunction.cxx.
|
inlineinherited |
inline void get_XYZfromGlobal(int &ix, int &iy, int &iz, int global) const {hist;};
Definition at line 231 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 225 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 232 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 226 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 238 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 235 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
|
inlineinherited |
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.
|
inlineinherited |
|
inlinevirtualinherited |
Gives the total memory size, including the size of additional memory allocated inside the class.
Reimplemented in TFCS2DFunctionTemplateHistogram< Txvec, Tyvec, Tz, Trandom >, and TFCS1DFunctionTemplateHistogram< Txvec, Ty, Trandom >.
Definition at line 19 of file TFCSFunction.h.
|
inlineinherited |
Gives the total memory size, including the size of additional memory allocated inside the class.
Definition at line 36 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 31 of file TFCS2DFunctionTemplateHistogram.h.
|
inlineinherited |
Return a stream for sending messages directly (no decoration)
Definition at line 231 of file MLogging.h.
|
inlineinherited |
Return a decorated starting stream for sending messages.
Definition at line 240 of file MLogging.h.
|
inlineinherited |
Check whether the logging system is active at the provided verbosity level.
Definition at line 222 of file MLogging.h.
|
inlinevirtualinherited |
Return the number of dimensions for the function.
Reimplemented from TFCSFunction.
Definition at line 20 of file TFCS2DFunction.h.
|
inlinevirtualinherited |
Definition at line 176 of file TFCS2DFunctionTemplateHistogram.h.
|
inlinevirtualinherited |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
An exponential interpolation is done within each bin
Reimplemented from TFCS2DFunctionTemplateHistogram< TFCS1DFunction_HistogramInt16BinEdges, TFCS1DFunction_HistogramInt32BinEdges, uint16_t, float >.
Definition at line 36 of file TFCS2DFunctionTemplateInterpolationExpHistogram.h.
|
inherited |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
|
virtualinherited |
Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function value in array value.
For a n-dimensional function, value and rnd should both have n elements.
Implements TFCSFunction.
Definition at line 20 of file TFCS2DFunction.cxx.
|
inlineinherited |
|
virtualinherited |
|
staticinherited |
Make a message to decorate the start of logging.
Print a message for the start of logging.
Definition at line 116 of file MLogging.cxx.
|
inlinestaticprivateinherited |
Do not persistify!
MsgStream instance (a std::cout like with print-out levels)
Definition at line 215 of file MLogging.h.
|
protectedinherited |
Definition at line 243 of file TFCS2DFunctionTemplateHistogram.h.
|
protectedinherited |
Definition at line 244 of file TFCS2DFunctionTemplateHistogram.h.
|
protectedinherited |
Definition at line 245 of file TFCS2DFunctionTemplateHistogram.h.
|
privateinherited |
Message source name.
Definition at line 211 of file MLogging.h.