Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
LinInterpVar.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id: cranmer $
2// Author: Kyle Cranmer, Akira Shibata
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOSTATS_LININTERPVAR
12#define ROOSTATS_LININTERPVAR
13
14#include "RooAbsPdf.h"
15#include "RooRealProxy.h"
16#include "RooListProxy.h"
17#include <vector>
18
19class RooRealVar;
20class RooArgList ;
21
22namespace RooStats{
23namespace HistFactory{
24
25 class LinInterpVar : public RooAbsReal {
26 public:
27
28 LinInterpVar() ;
29 LinInterpVar(const char *name, const char *title,
30 const RooArgList& _paramList, double nominal, std::vector<double> low, std::vector<double> high);
31
32 LinInterpVar(const char *name, const char *title);
33 LinInterpVar(const LinInterpVar&, const char*);
34
35 TObject* clone(const char* newname) const override { return new LinInterpVar(*this, newname); }
36
37
38 protected:
39
41 double _nominal;
42 std::vector<double> _low;
43 std::vector<double> _high;
44
45 double evaluate() const override;
46
47 ClassDefOverride(RooStats::HistFactory::LinInterpVar,1) // Piecewise linear interpolation
48 };
49}
50}
51
52#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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:62
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:40
RooAbsReal that does piecewise-linear interpolations.
TObject * clone(const char *newname) const override
double evaluate() const override
Calculate and return value of polynomial.
Mother of all ROOT objects.
Definition TObject.h:41
Namespace for the RooStats classes.
Definition Asimov.h:19