Logo ROOT  
Reference Guide
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
18class RooRealVar;
19class RooArgList ;
20
21namespace RooStats{
22namespace HistFactory{
23
24 class LinInterpVar : public RooAbsReal {
25 public:
26
27 LinInterpVar() ;
28 LinInterpVar(const char *name, const char *title,
29 const RooArgList& _paramList, double nominal, std::vector<double> low, std::vector<double> high);
30
31 LinInterpVar(const char *name, const char *title);
32 LinInterpVar(const LinInterpVar&, const char*);
33
34 virtual TObject* clone(const char* newname) const { return new LinInterpVar(*this, newname); }
35 virtual ~LinInterpVar() ;
36
37
38 protected:
39
41 double _nominal;
42 std::vector<double> _low;
43 std::vector<double> _high;
44
45 TIterator* _paramIter ; //! do not persist
46
47 Double_t evaluate() const;
48
49 ClassDef(RooStats::HistFactory::LinInterpVar,1) // Piecewise linear interpolation
50 };
51}
52}
53
54#endif
double Double_t
Definition: RtypesCore.h:57
#define ClassDef(name, id)
Definition: Rtypes.h:322
char name[80]
Definition: TGX11.cxx:109
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:60
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:21
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:35
RooAbsReal that does piecewise-linear interpolations.
Definition: LinInterpVar.h:24
virtual TObject * clone(const char *newname) const
Definition: LinInterpVar.h:34
Double_t evaluate() const
do not persist
LinInterpVar()
Default constructor.
Iterator abstract base class.
Definition: TIterator.h:30
Mother of all ROOT objects.
Definition: TObject.h:37
@ HistFactory
Definition: RooGlobalFunc.h:69
Namespace for the RooStats classes.
Definition: Asimov.h:19