ATLAS Offline Software
|
#include <TFCS1DFunctionTemplateHistogram.h>
Public Types | |
typedef TFCS1DFunction_size_t | size_t |
typedef Trandom | random_type |
typedef Txvec | xvec_type |
typedef Ty | y_value_type |
Public Member Functions | |
TFCS1DFunctionTemplateHistogram (TH1 *hist=nullptr, bool doprint=true) | |
~TFCS1DFunctionTemplateHistogram () | |
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 nbins) |
set number of bins More... | |
size_t | get_nbins () const |
return number of bins More... | |
void | Initialize (const TH1 *hist, bool doprint=true) |
Initialize from root histogram. More... | |
virtual double | rnd_to_fct (double rnd) const |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution. More... | |
const Txvec & | get_HistoBordersx () const |
Txvec & | get_HistoBordersx () |
const TFCS1DFunction_HistogramContent< Ty, Trandom > & | get_HistoContents () const |
TFCS1DFunction_HistogramContent< Ty, Trandom > & | get_HistoContents () |
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... | |
virtual double | rnd_to_fct (double rnd) const=0 |
Function gets random number rnd in the range [0,1) as argument and returns function value. 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... | |
virtual bool | operator== (const TFCS1DFunction &ref) const |
The == operator compares the content of instances. 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 | get_maxdev (TH1 *, TH1 *) |
static double | CheckAndIntegrate1DHistogram (const TH1 *hist, std::vector< double > &integral_vec, int &first, int &last) |
static TH1 *generate_histogram_random_slope | ATLAS_NOT_THREAD_SAFE (int nbinsx=50, double xmin=0, double xmax=1, double zerothreshold=0.1) |
static TH1 *generate_histogram_random_gauss | ATLAS_NOT_THREAD_SAFE (int nbinsx=50, int ntoy=100000, double xmin=1, double xmax=5, double xpeak=1.5, double sigma=0.6) |
static void unit_test | ATLAS_NOT_THREAD_SAFE (TH1 *hist, TFCS1DFunction *rtof, int nrnd=1000000, TH1 *histfine=nullptr) |
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 | |
Txvec | m_HistoBorders |
TFCS1DFunction_HistogramContent< Ty, Trandom > | 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 15 of file TFCS1DFunctionTemplateHistogram.h.
typedef Trandom TFCS1DFunctionTemplateHistogram< Txvec, Ty, Trandom >::random_type |
Definition at line 18 of file TFCS1DFunctionTemplateHistogram.h.
typedef TFCS1DFunction_size_t TFCS1DFunctionTemplateHistogram< Txvec, Ty, Trandom >::size_t |
Definition at line 17 of file TFCS1DFunctionTemplateHistogram.h.
typedef Txvec TFCS1DFunctionTemplateHistogram< Txvec, Ty, Trandom >::xvec_type |
Definition at line 19 of file TFCS1DFunctionTemplateHistogram.h.
typedef Ty TFCS1DFunctionTemplateHistogram< Txvec, Ty, Trandom >::y_value_type |
Definition at line 20 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 22 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 26 of file TFCS1DFunctionTemplateHistogram.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 52 of file TFCS1DFunction.cxx.
|
inline |
Definition at line 131 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 130 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 137 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 134 of file TFCS1DFunctionTemplateHistogram.h.
|
staticinherited |
Definition at line 21 of file TFCS1DFunction.cxx.
|
inline |
|
inline |
Initialize from root histogram.
Depending on the precision of the x- and y-axis, bins are merged if numerical identical
Definition at line 44 of file TFCS1DFunctionTemplateHistogram.h.
|
inlineinherited |
|
inlinevirtual |
Gives the total memory size, including the size of additional memory allocated inside the class.
Reimplemented from TFCSFunction.
Definition at line 31 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 28 of file TFCS1DFunctionTemplateHistogram.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 22 of file TFCS1DFunction.h.
|
inlinevirtualinherited |
The == operator compares the content of instances.
The implementation in the base class only returns true for a comparison with itself
Reimplemented in TFCS1DFunctionInt32Histogram.
Definition at line 36 of file TFCS1DFunction.h.
|
inlinevirtual |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
Implements TFCS1DFunction.
Reimplemented in TFCS1DFunctionTemplateInterpolationHistogram< Txvec, Ty, Trandom >, TFCS1DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, uint16_t, float >, TFCS1DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt8BinEdges, uint8_t, float >, TFCS1DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, uint16_t, float >, and TFCS1DFunctionTemplateInterpolationHistogram< TFCS1DFunction_HistogramInt16BinEdges, uint32_t, float >.
Definition at line 119 of file TFCS1DFunctionTemplateHistogram.h.
virtual double TFCS1DFunction::rnd_to_fct |
Function gets random number rnd in the range [0,1) as argument and returns function value.
|
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 17 of file TFCS1DFunction.cxx.
void TFCS1DFunction::rnd_to_fct |
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.
Definition at line 27 of file TFCS1DFunction.cxx.
|
inline |
set number of bins
Definition at line 34 of file TFCS1DFunctionTemplateHistogram.h.
|
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.
|
protected |
Definition at line 142 of file TFCS1DFunctionTemplateHistogram.h.
|
protected |
Definition at line 143 of file TFCS1DFunctionTemplateHistogram.h.
|
privateinherited |
Message source name.
Definition at line 211 of file MLogging.h.