Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooPolyVar.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooPolyVar.h,v 1.7 2007/05/11 09:11:30 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_POLY_VAR
17#define ROO_POLY_VAR
18
19#include <vector>
20
21#include "RooAbsReal.h"
22#include "RooRealProxy.h"
23#include "RooListProxy.h"
24
25class RooRealVar;
26class RooArgList ;
27
28class RooPolyVar : public RooAbsReal {
29public:
30
31 RooPolyVar() ;
32 RooPolyVar(const char* name, const char* title, RooAbsReal& x) ;
33 RooPolyVar(const char *name, const char *title,
34 RooAbsReal& _x, const RooArgList& _coefList, Int_t lowestOrder=0) ;
35
36 RooPolyVar(const RooPolyVar& other, const char* name = 0);
37 virtual TObject* clone(const char* newname) const { return new RooPolyVar(*this, newname); }
38 virtual ~RooPolyVar() ;
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
43protected:
44
48
49 mutable std::vector<Double_t> _wksp; //! do not persist
50
51 Double_t evaluate() const;
52
53 ClassDef(RooPolyVar,1) // Polynomial function
54};
55
56#endif
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:61
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:21
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:29
RooListProxy is the concrete proxy for RooArgList objects.
Class RooPolyVar is a RooAbsReal implementing a polynomial in terms of a list of RooAbsReal coefficie...
Definition RooPolyVar.h:28
RooPolyVar()
Default constructor.
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Advertise that we can internally integrate over x.
virtual TObject * clone(const char *newname) const
Definition RooPolyVar.h:37
Int_t _lowestOrder
Definition RooPolyVar.h:47
virtual ~RooPolyVar()
Destructor.
RooListProxy _coefList
Definition RooPolyVar.h:46
RooRealProxy _x
Definition RooPolyVar.h:45
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Calculate and return analytical integral over x.
Double_t evaluate() const
do not persist
std::vector< Double_t > _wksp
Definition RooPolyVar.h:49
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:39
Mother of all ROOT objects.
Definition TObject.h:37
Double_t x[n]
Definition legend1.C:17