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 virtual TObject* clone(const char* newname) const { return new LinInterpVar(*this, newname); }
36 virtual ~LinInterpVar() ;
37
38
39 protected:
40
42 double _nominal;
43 std::vector<double> _low;
44 std::vector<double> _high;
45
46 TIterator* _paramIter ; //! do not persist
47
48 Double_t evaluate() const;
49
50 ClassDef(RooStats::HistFactory::LinInterpVar,1) // Piecewise linear interpolation
51 };
52}
53}
54
55#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
RooListProxy is the concrete proxy for RooArgList objects.
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:39
RooAbsReal that does piecewise-linear interpolations.
virtual TObject * clone(const char *newname) const
Double_t evaluate() const
do not persist
Iterator abstract base class.
Definition TIterator.h:30
Mother of all ROOT objects.
Definition TObject.h:37
Namespace for the RooStats classes.
Definition Asimov.h:19