ROOT
6.16/01
Reference Guide
documentation
doxygen
MyPdfV2.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* *
4
* This code was autogenerated by RooClassFactory *
5
*****************************************************************************/
6
7
// Your description goes here...
8
9
#include "
Riostream.h
"
10
11
#include "
MyPdfV2.h
"
12
#include "
RooAbsReal.h
"
13
#include "
RooAbsCategory.h
"
14
#include <math.h>
15
#include "
TMath.h
"
16
17
ClassImp
(
MyPdfV2
);
18
19
MyPdfV2::MyPdfV2
(
const
char
*
name
,
const
char
*title,
20
RooAbsReal
& _x,
21
RooAbsReal
& _A,
22
RooAbsReal
& _B) :
23
RooAbsPdf
(
name
,title),
24
x
(
"x"
,
"x"
,this,_x),
25
A
(
"A"
,
"A"
,this,_A),
26
B
(
"B"
,
"B"
,this,_B)
27
{
28
}
29
30
31
MyPdfV2::MyPdfV2
(
const
MyPdfV2
& other,
const
char
*
name
) :
32
RooAbsPdf
(other,
name
),
33
x
(
"x"
,this,other.
x
),
34
A
(
"A"
,this,other.
A
),
35
B
(
"B"
,this,other.
B
)
36
{
37
}
38
39
40
41
Double_t
MyPdfV2::evaluate
()
const
42
{
43
// ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
44
return
A
*
fabs
(
x
)+
pow
(
x
-
B
,2) ;
45
}
46
47
48
MyPdfV2.h
Riostream.h
RooAbsCategory.h
RooAbsReal.h
Double_t
double Double_t
Definition:
RtypesCore.h:55
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:363
TMath.h
pow
double pow(double, double)
MyPdfV2
Definition:
MyPdfV2.h:16
MyPdfV2::MyPdfV2
MyPdfV2()
Definition:
MyPdfV2.h:18
MyPdfV2::A
RooRealProxy A
Definition:
MyPdfV2.h:30
MyPdfV2::B
RooRealProxy B
Definition:
MyPdfV2.h:31
MyPdfV2::evaluate
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition:
MyPdfV2.cxx:41
MyPdfV2::x
RooRealProxy x
Definition:
MyPdfV2.h:29
RooAbsPdf
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition:
RooAbsPdf.h:41
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition:
RooAbsReal.h:53
x
Double_t x[n]
Definition:
legend1.C:17
ROOT::Math::Cephes::B
static double B[]
Definition:
SpecFuncCephes.cxx:178
ROOT::Math::Cephes::A
static double A[]
Definition:
SpecFuncCephes.cxx:170
ROOT::Math::fabs
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
Definition:
UnaryOperators.h:131
RegressionKeras.name
name
Definition:
RegressionKeras.py:29