ATLAS Offline Software
|
#include <TFCS1DFunctionHistogram.h>
Public Member Functions | |
TFCS1DFunctionHistogram () | |
TFCS1DFunctionHistogram (TH1 *hist, double) | |
void | Initialize (TH1 *hist, double) |
virtual double | rnd_to_fct (double rnd) const |
Function gets random number rnd in the range [0,1) as argument and returns function value. More... | |
TH1 * | vector_to_histo () |
double | get_inverse (double rnd) const |
void | smart_rebin_loop (TH1 *hist, double) |
double | sample_from_histovalues (double) |
const std::vector< float > & | get_HistoBorders () |
const std::vector< float > & | 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... | |
virtual std::size_t | MemorySize () const |
Gives the total memory size, including the size of additional memory allocated inside the class. 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 | linear (double y1, double y2, double x1, double x2, double x) |
static double | non_linear (double y1, double y2, double x1, double x2, double x) |
static double | get_maxdev (TH1 *, TH1D *) |
static double | get_change (TH1 *) |
static TH1D * | smart_rebin (TH1D *) |
static std::unique_ptr< double[]> | histo_to_array (TH1 *) |
static double | sample_from_histo (TH1 *hist, double) |
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 | |
std::vector< float > | m_HistoBorders |
std::vector< 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 13 of file TFCS1DFunctionHistogram.h.
|
inline |
Definition at line 16 of file TFCS1DFunctionHistogram.h.
TFCS1DFunctionHistogram::TFCS1DFunctionHistogram | ( | TH1 * | hist, |
double | cut_maxdev | ||
) |
Definition at line 16 of file TFCS1DFunctionHistogram.cxx.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 52 of file TFCS1DFunction.cxx.
|
static |
Definition at line 151 of file TFCS1DFunctionHistogram.cxx.
|
inline |
Definition at line 37 of file TFCS1DFunctionHistogram.h.
|
inline |
Definition at line 38 of file TFCS1DFunctionHistogram.h.
double TFCS1DFunctionHistogram::get_inverse | ( | double | rnd | ) | const |
Definition at line 260 of file TFCS1DFunctionHistogram.cxx.
|
staticinherited |
Definition at line 21 of file TFCS1DFunction.cxx.
|
static |
Definition at line 139 of file TFCS1DFunctionHistogram.cxx.
|
static |
Definition at line 25 of file TFCS1DFunctionHistogram.cxx.
void TFCS1DFunctionHistogram::Initialize | ( | TH1 * | hist, |
double | cut_maxdev | ||
) |
Definition at line 20 of file TFCS1DFunctionHistogram.cxx.
|
inlineinherited |
|
static |
|
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 |
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.
|
static |
|
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.
|
virtual |
Function gets random number rnd in the range [0,1) as argument and returns function value.
Implements TFCS1DFunction.
Definition at line 223 of file TFCS1DFunctionHistogram.cxx.
virtual double TFCS1DFunction::rnd_to_fct |
Function gets random number rnd in the range [0,1) as argument and returns function value.
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.
|
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.
|
static |
Definition at line 39 of file TFCS1DFunctionHistogram.cxx.
double TFCS1DFunctionHistogram::sample_from_histovalues | ( | double | random | ) |
Definition at line 52 of file TFCS1DFunctionHistogram.cxx.
|
virtualinherited |
|
static |
Definition at line 164 of file TFCS1DFunctionHistogram.cxx.
void TFCS1DFunctionHistogram::smart_rebin_loop | ( | TH1 * | hist, |
double | cut_maxdev | ||
) |
Definition at line 80 of file TFCS1DFunctionHistogram.cxx.
|
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.
TH1 * TFCS1DFunctionHistogram::vector_to_histo | ( | ) |
Definition at line 65 of file TFCS1DFunctionHistogram.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 41 of file TFCS1DFunctionHistogram.h.
|
protected |
Definition at line 42 of file TFCS1DFunctionHistogram.h.
|
privateinherited |
Message source name.
Definition at line 211 of file MLogging.h.