ATLAS Offline Software
|
#include <TFCS1DFunctionSpline.h>
Public Member Functions | |
TFCS1DFunctionSpline (TH1 *hist=nullptr, double maxdevgoal=0.01, double maxeffsiggoal=3, int maxnp=20) | |
~TFCS1DFunctionSpline () | |
double | Initialize (TH1 *hist, double maxdevgoal=0.01, double maxeffsiggoal=3, int maxnp=20) |
double | InitializeFromSpline (TH1 *hist, const TSpline3 &sp, double maxdevgoal=0.01, double maxeffsiggoal=3) |
double | InitializeEqualDistance (TH1 *hist, double maxdevgoal=0.01, double maxeffsiggoal=3, int nsplinepoints=5) |
double | InitializeEqualProbability (TH1 *hist, double maxdevgoal=0.01, double maxeffsiggoal=3, int nsplinepoints=5) |
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 TSpline3 & | spline () const |
TSpline3 & | spline () |
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 | get_maxdev (const TH1 *hist, const TSpline3 &sp, double &maxeffsig, double &p_maxdev, double &p_maxeffsig, int ntoy=10000) |
static void unit_test | ATLAS_NOT_THREAD_SAFE (TH1 *hist=nullptr) |
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... | |
Static Protected Member Functions | |
static double | optimize (TSpline3 &sp_best, std::vector< double > &nprop, const TH1 *hist, TFCS1DFunctionInt32Histogram &hist_fct, double maxdevgoal=0.01, double maxeffsiggoal=3) |
Protected Attributes | |
TSpline3 | m_spline |
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 17 of file TFCS1DFunctionSpline.h.
|
inline |
Definition at line 21 of file TFCS1DFunctionSpline.h.
|
inline |
Definition at line 26 of file TFCS1DFunctionSpline.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
static |
|
staticinherited |
Definition at line 52 of file TFCS1DFunction.cxx.
|
static |
Definition at line 320 of file TFCS1DFunctionSpline.cxx.
|
staticinherited |
Definition at line 21 of file TFCS1DFunction.cxx.
double TFCS1DFunctionSpline::Initialize | ( | TH1 * | hist, |
double | maxdevgoal = 0.01 , |
||
double | maxeffsiggoal = 3 , |
||
int | maxnp = 20 |
||
) |
Definition at line 19 of file TFCS1DFunctionSpline.cxx.
double TFCS1DFunctionSpline::InitializeEqualDistance | ( | TH1 * | hist, |
double | maxdevgoal = 0.01 , |
||
double | maxeffsiggoal = 3 , |
||
int | nsplinepoints = 5 |
||
) |
Definition at line 136 of file TFCS1DFunctionSpline.cxx.
double TFCS1DFunctionSpline::InitializeEqualProbability | ( | TH1 * | hist, |
double | maxdevgoal = 0.01 , |
||
double | maxeffsiggoal = 3 , |
||
int | nsplinepoints = 5 |
||
) |
Definition at line 204 of file TFCS1DFunctionSpline.cxx.
double TFCS1DFunctionSpline::InitializeFromSpline | ( | TH1 * | hist, |
const TSpline3 & | sp, | ||
double | maxdevgoal = 0.01 , |
||
double | maxeffsiggoal = 3 |
||
) |
Definition at line 67 of file TFCS1DFunctionSpline.cxx.
|
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 |
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.
|
staticprotected |
Definition at line 237 of file TFCS1DFunctionSpline.cxx.
|
virtual |
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 374 of file TFCS1DFunctionSpline.cxx.
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.
|
virtualinherited |
|
inline |
Definition at line 52 of file TFCS1DFunctionSpline.h.
|
inline |
Definition at line 51 of file TFCS1DFunctionSpline.h.
|
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.
|
privateinherited |
Message source name.
Definition at line 211 of file MLogging.h.
|
protected |
Definition at line 62 of file TFCS1DFunctionSpline.h.