Logo ROOT   6.16/01
Reference Guide
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
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
42 {
43 // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
44 return A*fabs(x)+pow(x-B,2) ;
45 }
46
47
48
double Double_t
Definition: RtypesCore.h:55
#define ClassImp(name)
Definition: Rtypes.h:363
double pow(double, double)
MyPdfV2()
Definition: MyPdfV2.h:18
RooRealProxy A
Definition: MyPdfV2.h:30
RooRealProxy B
Definition: MyPdfV2.h:31
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition: MyPdfV2.cxx:41
RooRealProxy x
Definition: MyPdfV2.h:29
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
Double_t x[n]
Definition: legend1.C:17
static double B[]
static double A[]
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)