Warning, file /include/root/RooStepFunction.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef ROO_STEP_FUNCTION
0018 #define ROO_STEP_FUNCTION
0019
0020 #include <RooAbsReal.h>
0021 #include <RooListProxy.h>
0022 #include <RooRealProxy.h>
0023
0024 class RooArgList ;
0025
0026 class RooStepFunction : public RooAbsReal {
0027 public:
0028
0029 RooStepFunction() {}
0030 RooStepFunction(const char *name, const char *title,
0031 RooAbsReal& x, const RooArgList& coefList, const RooArgList& limits, bool interpolate=false) ;
0032
0033 RooStepFunction(const RooStepFunction& other, const char *name = nullptr);
0034 TObject* clone(const char* newname) const override { return new RooStepFunction(*this, newname); }
0035
0036 const RooArgList& coefficients() { return _coefList; }
0037 const RooArgList& boundaries() { return _boundaryList; }
0038
0039 std::list<double>* plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const override ;
0040
0041 protected:
0042
0043 double evaluate() const override;
0044
0045 private:
0046
0047 RooRealProxy _x;
0048 RooListProxy _coefList ;
0049 RooListProxy _boundaryList ;
0050 bool _interpolate = false;
0051
0052 ClassDefOverride(RooStepFunction,1)
0053 };
0054
0055 #endif