```/*****************************************************************************
* Project: RooFit                                                           *
* Package: RooFitModels                                                     *
*    File: \$Id: RooPolynomial.h,v 1.8 2007/05/11 09:13:07 verkerke Exp \$
* Authors:                                                                  *
*   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
*   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
*                                                                           *
* Copyright (c) 2000-2005, Regents of the University of California          *
*                                                                           *
* Redistribution and use in source and binary forms,                        *
* with or without modification, are permitted according to the terms        *
*****************************************************************************/
#ifndef ROO_POLYNOMIAL
#define ROO_POLYNOMIAL

#include "RooAbsPdf.h"
#include "RooRealProxy.h"
#include "RooListProxy.h"

class RooRealVar;
class RooArgList ;

class RooPolynomial : public RooAbsPdf {
public:

RooPolynomial() ;
RooPolynomial(const char* name, const char* title, RooAbsReal& x) ;
RooPolynomial(const char *name, const char *title,
RooAbsReal& _x, const RooArgList& _coefList, Int_t lowestOrder=1) ;

RooPolynomial(const RooPolynomial& other, const char* name = 0);
virtual TObject* clone(const char* newname) const { return new RooPolynomial(*this, newname); }
virtual ~RooPolynomial() ;

Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;

protected:

RooRealProxy _x;
RooListProxy _coefList ;
Int_t _lowestOrder ;
TIterator* _coefIter ;  //! do not persist

Double_t evaluate() const;

ClassDef(RooPolynomial,1) // Polynomial PDF
};

#endif
```
RooPolynomial.h:1
RooPolynomial.h:2
RooPolynomial.h:3
RooPolynomial.h:4
RooPolynomial.h:5
RooPolynomial.h:6
RooPolynomial.h:7
RooPolynomial.h:8
RooPolynomial.h:9
RooPolynomial.h:10
RooPolynomial.h:11
RooPolynomial.h:12
RooPolynomial.h:13
RooPolynomial.h:14
RooPolynomial.h:15
RooPolynomial.h:16
RooPolynomial.h:17
RooPolynomial.h:18
RooPolynomial.h:19
RooPolynomial.h:20
RooPolynomial.h:21
RooPolynomial.h:22
RooPolynomial.h:23
RooPolynomial.h:24
RooPolynomial.h:25
RooPolynomial.h:26
RooPolynomial.h:27
RooPolynomial.h:28
RooPolynomial.h:29
RooPolynomial.h:30
RooPolynomial.h:31
RooPolynomial.h:32
RooPolynomial.h:33
RooPolynomial.h:34
RooPolynomial.h:35
RooPolynomial.h:36
RooPolynomial.h:37
RooPolynomial.h:38
RooPolynomial.h:39
RooPolynomial.h:40
RooPolynomial.h:41
RooPolynomial.h:42
RooPolynomial.h:43
RooPolynomial.h:44
RooPolynomial.h:45
RooPolynomial.h:46
RooPolynomial.h:47
RooPolynomial.h:48
RooPolynomial.h:49
RooPolynomial.h:50
RooPolynomial.h:51
RooPolynomial.h:52
RooPolynomial.h:53