ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
src
TFCS1DFunctionRegressionTF.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ISF_FastCaloSimEvent/TFCS1DFunctionRegressionTF.h
"
6
#include "TFile.h"
7
#include "TString.h"
8
#include "TMath.h"
9
using namespace
std
;
10
11
//=============================================
12
//======= TFCS1DFunctionRegressionTF =========
13
//=============================================
14
15
using namespace
std
;
16
17
TFCS1DFunctionRegressionTF::TFCS1DFunctionRegressionTF
(
float
rangeval,
18
float
startval) {
19
m_rangeval
= rangeval;
20
m_startval
= startval;
21
}
22
23
double
TFCS1DFunctionRegressionTF::retransform
(
double
value)
const
{
24
25
return
(value *
m_rangeval
+
m_startval
);
26
}
27
28
double
TFCS1DFunctionRegressionTF::rnd_to_fct
(
double
rnd
)
const
{
29
30
double
value =
regression_value
(
rnd
);
31
if
(
m_rangeval
> 0)
32
value =
retransform
(value);
33
return
value;
34
}
rnd
static TRandom * rnd
Definition
LArWheelSliceSolidTests.cxx:68
TFCS1DFunctionRegressionTF.h
TFCS1DFunctionRegressionTF::TFCS1DFunctionRegressionTF
TFCS1DFunctionRegressionTF()
Definition
TFCS1DFunctionRegressionTF.h:14
TFCS1DFunctionRegressionTF::rnd_to_fct
virtual double rnd_to_fct(double rnd) const
Function gets random number rnd in the range [0,1) as argument and returns function value.
Definition
TFCS1DFunctionRegressionTF.cxx:28
TFCS1DFunctionRegressionTF::retransform
double retransform(double value) const
Definition
TFCS1DFunctionRegressionTF.cxx:23
TFCS1DFunctionRegressionTF::m_rangeval
float m_rangeval
Definition
TFCS1DFunctionRegressionTF.h:25
TFCS1DFunctionRegressionTF::m_startval
float m_startval
Definition
TFCS1DFunctionRegressionTF.h:26
TFCS1DFunctionRegression::regression_value
double regression_value(double uniform) const
Definition
TFCS1DFunctionRegression.cxx:17
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.14.0