|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ISF_FASTCALOSIMEVENT_TFCS1DFunction_h
6 #define ISF_FASTCALOSIMEVENT_TFCS1DFunction_h
22 virtual int ndim()
const {
return 1; };
43 std::vector<double> &integral_vec,
44 int &
first,
int &last);
46 static TH1 *generate_histogram_random_slope
48 double zerothreshold = 0.1);
50 int nbinsx = 50,
int ntoy = 100000,
double xmin = 1,
double xmax = 5,
51 double xpeak = 1.5,
double sigma = 0.6);
54 TH1 *histfine =
nullptr);
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.
static void unit_test ATLAS_NOT_THREAD_SAFE(TH1 *hist, TFCS1DFunction *rtof, int nrnd=1000000, TH1 *histfine=nullptr)
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)
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 valu...
static double get_maxdev(TH1 *, TH1 *)
static TH1 *generate_histogram_random_slope ATLAS_NOT_THREAD_SAFE(int nbinsx=50, double xmin=0, double xmax=1, double zerothreshold=0.1)
static double CheckAndIntegrate1DHistogram(const TH1 *hist, std::vector< double > &integral_vec, int &first, int &last)
virtual int ndim() const
Return the number of dimensions for the function.
const boost::regex ref(r_ef)
virtual bool operator==(const TFCS1DFunction &ref) const
The == operator compares the content of instances.
Define macros for attributes used to control the static checker.