ATLAS Offline Software
|
#include <TFCS1DFunctionTemplateHistogram.h>
Public Types | |
typedef TFCS1DFunction_size_t | size_t |
typedef float | random_type |
typedef TFCS1DFunction_HistogramInt8BinEdges | xvec_type |
typedef uint32_t | y_value_type |
Public Member Functions | |
TFCS1DFunctionInt8Int32Histogram (TH1 *h=nullptr) | |
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 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... | |
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 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... | |
const TFCS1DFunction_HistogramInt8BinEdges & | get_HistoBordersx () const |
TFCS1DFunction_HistogramInt8BinEdges & | get_HistoBordersx () |
const TFCS1DFunction_HistogramContent< uint32_t, float > & | get_HistoContents () const |
TFCS1DFunction_HistogramContent< uint32_t, float > & | get_HistoContents () |
virtual int | ndim () const |
Return the number of dimensions for the function. 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 | |
TFCS1DFunction_HistogramInt8BinEdges | m_HistoBorders |
TFCS1DFunction_HistogramContent< uint32_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 174 of file TFCS1DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 18 of file TFCS1DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 17 of file TFCS1DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 19 of file TFCS1DFunctionTemplateHistogram.h.
|
inherited |
Definition at line 20 of file TFCS1DFunctionTemplateHistogram.h.
|
inline |
Definition at line 178 of file TFCS1DFunctionTemplateHistogram.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 52 of file TFCS1DFunction.cxx.
|
inlineinherited |
Definition at line 131 of file TFCS1DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 130 of file TFCS1DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 137 of file TFCS1DFunctionTemplateHistogram.h.
|
inlineinherited |
Definition at line 134 of file TFCS1DFunctionTemplateHistogram.h.
|
staticinherited |
Definition at line 21 of file TFCS1DFunction.cxx.
|
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 44 of file TFCS1DFunctionTemplateHistogram.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 31 of file TFCS1DFunctionTemplateHistogram.h.
|
inlineinherited |
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.
|
inlinevirtualinherited |
Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution.
Implements TFCS1DFunction.
Definition at line 119 of file TFCS1DFunctionTemplateHistogram.h.
|
inherited |
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.
|
inherited |
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 115 of file TFCS1DFunction.cxx.
|
inlineinherited |
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.
|
protectedinherited |
Definition at line 142 of file TFCS1DFunctionTemplateHistogram.h.
|
protectedinherited |
Definition at line 143 of file TFCS1DFunctionTemplateHistogram.h.
|
privateinherited |
Message source name.
Definition at line 211 of file MLogging.h.