Logo ROOT   6.16/01
Reference Guide
RooGenPdfPdf.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 "RooGenPdfPdf.h"
12#include "RooAbsReal.h"
13#include "RooAbsCategory.h"
14#include <math.h>
15#include "TMath.h"
16
18
19 RooGenPdfPdf::RooGenPdfPdf(const char *name, const char *title,
20 RooAbsReal& _x,
21 RooAbsReal& _alpha) :
22 RooAbsPdf(name,title),
23 x("x","x",this,_x),
24 alpha("alpha","alpha",this,_alpha)
25 {
26 }
27
28
29 RooGenPdfPdf::RooGenPdfPdf(const RooGenPdfPdf& other, const char* name) :
30 RooAbsPdf(other,name),
31 x("x",this,other.x),
32 alpha("alpha",this,other.alpha)
33 {
34 }
35
36
37
39 {
40 // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
41 return (1+0.1*fabs(x)+sin(sqrt(fabs(x*alpha+0.1)))) ;
42 }
43
44
45
double Double_t
Definition: RtypesCore.h:55
#define ClassImp(name)
Definition: Rtypes.h:363
double sqrt(double)
double sin(double)
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 evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooRealProxy x
Definition: RooGenPdfPdf.h:28
RooRealProxy alpha
Definition: RooGenPdfPdf.h:29
Double_t x[n]
Definition: legend1.C:17
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)