Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooStepFunction.h
Go to the documentation of this file.
1
2
3/*****************************************************************************
4 * Project: RooFit *
5 * Package: RooFitModels *
6 * File: $Id$
7 * Authors: *
8 * Tristan du Pree, Nikhef, Amsterdam, tdupree@nikhef.nl *
9 * *
10 * Copyright (c) 2000-2005, Stanford University. All rights reserved. *
11 *
12 * *
13 * Redistribution and use in source and binary forms, *
14 * with or without modification, are permitted according to the terms *
15 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
16 *****************************************************************************/
17#ifndef ROO_STEP_FUNCTION
18#define ROO_STEP_FUNCTION
19
20#include "TArrayD.h"
21#include "RooAbsReal.h"
22#include "RooRealProxy.h"
23#include "RooListProxy.h"
24
25class RooRealVar;
26class RooArgList ;
27
29 public:
30
32 RooStepFunction(const char *name, const char *title,
33 RooAbsReal& x, const RooArgList& coefList, const RooArgList& limits, bool interpolate=false) ;
34
35 RooStepFunction(const RooStepFunction& other, const char *name = nullptr);
36 TObject* clone(const char* newname) const override { return new RooStepFunction(*this, newname); }
37
38 const RooArgList& coefficients() { return _coefList; }
39 const RooArgList& boundaries() { return _boundaryList; }
40
41 protected:
42
43 double evaluate() const override;
44
45 private:
46
51
53};
54
55#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
The Step Function is a binned function whose parameters are the heights of each bin.
const RooArgList & coefficients()
RooStepFunction()
Constructor.
const RooArgList & boundaries()
RooListProxy _coefList
RooListProxy _boundaryList
double evaluate() const override
Transfer contents to vector for use below.
TObject * clone(const char *newname) const override
RooRealProxy _x
Mother of all ROOT objects.
Definition TObject.h:41
Double_t x[n]
Definition legend1.C:17