ROOT
v6-24
Reference Guide
Loading...
Searching...
No Matches
RooPolynomial.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitModels *
4
* File: $Id: RooPolynomial.h,v 1.8 2007/05/11 09:13:07 verkerke Exp $
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
#ifndef ROO_POLYNOMIAL
17
#define ROO_POLYNOMIAL
18
19
#include <vector>
20
21
#include "
RooAbsPdf.h
"
22
#include "
RooRealProxy.h
"
23
#include "
RooListProxy.h
"
24
25
class
RooRealVar
;
26
class
RooArgList
;
27
28
class
RooPolynomial
:
public
RooAbsPdf
{
29
public
:
30
31
RooPolynomial
() ;
32
RooPolynomial
(
const
char
*
name
,
const
char
* title,
RooAbsReal
&
x
) ;
33
RooPolynomial
(
const
char
*
name
,
const
char
*title,
34
RooAbsReal
&
_x
,
const
RooArgList
&
_coefList
,
Int_t
lowestOrder=1) ;
35
36
RooPolynomial
(
const
RooPolynomial
& other,
const
char
*
name
= 0);
37
virtual
TObject
*
clone
(
const
char
* newname)
const
{
return
new
RooPolynomial
(*
this
, newname); }
38
virtual
~RooPolynomial
() ;
39
40
Int_t
getAnalyticalIntegral
(
RooArgSet
& allVars,
RooArgSet
& analVars,
const
char
* rangeName=0)
const
;
41
Double_t
analyticalIntegral
(
Int_t
code,
const
char
* rangeName=0)
const
;
42
43
protected
:
44
45
RooRealProxy
_x
;
46
RooListProxy
_coefList
;
47
Int_t
_lowestOrder
;
48
49
mutable
std::vector<Double_t>
_wksp
;
//! do not persist
50
51
/// Evaluation
52
Double_t
evaluate
()
const
;
53
RooSpan<double>
evaluateSpan
(
RooBatchCompute::RunContext
& evalData,
const
RooArgSet
* normSet)
const
;
54
55
ClassDef
(
RooPolynomial
,1)
// Polynomial PDF
56
};
57
58
#endif
RooAbsPdf.h
RooListProxy.h
RooRealProxy.h
Double_t
double Double_t
Definition
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
name
char name[80]
Definition
TGX11.cxx:110
RooAbsPdf
Definition
RooAbsPdf.h:43
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition
RooAbsReal.h:61
RooArgList
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgList.h:21
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgSet.h:29
RooListProxy
RooListProxy is the concrete proxy for RooArgList objects.
Definition
RooListProxy.h:24
RooPolynomial
RooPolynomial implements a polynomial p.d.f of the form.
Definition
RooPolynomial.h:28
RooPolynomial::clone
virtual TObject * clone(const char *newname) const
Definition
RooPolynomial.h:37
RooPolynomial::getAnalyticalIntegral
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Advertise to RooFit that this function can be analytically integrated.
Definition
RooPolynomial.cxx:168
RooPolynomial::_x
RooRealProxy _x
Definition
RooPolynomial.h:45
RooPolynomial::analyticalIntegral
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Do the analytical integral according to the code that was returned by getAnalyticalIntegral().
Definition
RooPolynomial.cxx:176
RooPolynomial::_lowestOrder
Int_t _lowestOrder
Definition
RooPolynomial.h:47
RooPolynomial::RooPolynomial
RooPolynomial()
coverity[UNINIT_CTOR]
Definition
RooPolynomial.cxx:47
RooPolynomial::evaluate
Double_t evaluate() const
do not persist
Definition
RooPolynomial.cxx:126
RooPolynomial::_coefList
RooListProxy _coefList
Definition
RooPolynomial.h:46
RooPolynomial::evaluateSpan
RooSpan< double > evaluateSpan(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute multiple values of Polynomial.
Definition
RooPolynomial.cxx:149
RooPolynomial::_wksp
std::vector< Double_t > _wksp
Definition
RooPolynomial.h:49
RooPolynomial::~RooPolynomial
virtual ~RooPolynomial()
Destructor.
Definition
RooPolynomial.cxx:121
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition
RooRealVar.h:39
RooSpan
A simple container to hold a batch of data values.
Definition
RooSpan.h:34
RooTemplateProxy< RooAbsReal >
TObject
Mother of all ROOT objects.
Definition
TObject.h:37
int
x
Double_t x[n]
Definition
legend1.C:17
RooBatchCompute::RunContext
This struct enables passing computation data around between elements of a computation graph.
Definition
RunContext.h:31
roofit
roofit
inc
RooPolynomial.h
ROOT v6-24 - Reference Guide Generated on Tue Aug 22 2023 03:06:45 (GVA Time) using Doxygen 1.9.8