-
Notifications
You must be signed in to change notification settings - Fork 1
/
PolyPower.cxx
49 lines (37 loc) · 973 Bytes
/
PolyPower.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*****************************************************************************
* Project: RooFit *
* *
* This code was autogenerated by RooClassFactory *
*****************************************************************************/
// pow( x^2 + ax + b, c )
// Phil Hebda
// 9/12/2013
#include "Riostream.h"
#include "PolyPower.h"
#include "RooAbsReal.h"
#include "RooAbsCategory.h"
#include <math.h>
#include "TMath.h"
ClassImp(PolyPower)
PolyPower::PolyPower(const char *name, const char *title,
RooAbsReal& _x,
RooAbsReal& _p0,
RooAbsReal& _p1) :
RooAbsPdf(name,title),
x("x","x",this,_x),
p0("p0","p0",this,_p0),
p1("p1","p1",this,_p1)
{
}
PolyPower::PolyPower(const PolyPower& other, const char* name) :
RooAbsPdf(other,name),
x("x",this,other.x),
p0("p0",this,other.p0),
p1("p1",this,other.p1)
{
}
Double_t PolyPower::evaluate() const
{
Double_t result=pow( pow(x,2) + p0, p1 );
return result;
}