Changeset View
Changeset View
Standalone View
Standalone View
EvtGenModels/EvtItgAbsFunction.hh
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public: | ||||
virtual ~EvtItgAbsFunction() = default; | virtual ~EvtItgAbsFunction() = default; | ||||
virtual double value( double x ) const; | virtual double value( double x ) const; | ||||
virtual double operator()( double x ) const; | virtual double operator()( double x ) const; | ||||
// Selectors (const) | // Selectors (const) | ||||
inline double upperRange() const { return _upperRange; } | inline double upperRange() const { return m_upperRange; } | ||||
inline double lowerRange() const { return _lowerRange; } | inline double lowerRange() const { return m_lowerRange; } | ||||
inline void getRange( double& lower, double& upper ) const | inline void getRange( double& lower, double& upper ) const | ||||
{ | { | ||||
lower = _lowerRange; | lower = m_lowerRange; | ||||
upper = _upperRange; | upper = m_upperRange; | ||||
} | } | ||||
virtual void setCoeff( int, int, double ) = 0; | virtual void setCoeff( int, int, double ) = 0; | ||||
virtual double getCoeff( int, int ) = 0; | virtual double getCoeff( int, int ) = 0; | ||||
protected: | protected: | ||||
virtual double myFunction( double x ) const = 0; | virtual double myFunction( double x ) const = 0; | ||||
void setRange( double x1, double x2 ) | void setRange( double x1, double x2 ) | ||||
{ | { | ||||
_lowerRange = x1; | m_lowerRange = x1; | ||||
_upperRange = x2; | m_upperRange = x2; | ||||
}; | }; | ||||
private: | private: | ||||
double _upperRange; | double m_upperRange; | ||||
double _lowerRange; | double m_lowerRange; | ||||
}; | }; | ||||
#endif // EVTITGABSFUNCTION_HH | #endif // EVTITGABSFUNCTION_HH |