Changeset View
Changeset View
Standalone View
Standalone View
EvtGenModels/EvtItgAbsIntegrator.hh
Show All 36 Lines | public: | ||||
double normalisation() const; | double normalisation() const; | ||||
protected: | protected: | ||||
double trapezoid( double lower, double higher, int n, double& result ) const; | double trapezoid( double lower, double higher, int n, double& result ) const; | ||||
virtual double evaluateIt( double lower, double higher ) const = 0; | virtual double evaluateIt( double lower, double higher ) const = 0; | ||||
double myFunction( double x ) const { return _myFunction( x ); } | double myFunction( double x ) const { return m_myFunction( x ); } | ||||
private: | private: | ||||
const EvtItgAbsFunction& _myFunction; | const EvtItgAbsFunction& m_myFunction; | ||||
void boundsCheck( double&, double& ) const; | void boundsCheck( double&, double& ) const; | ||||
// Note: if your class needs a copy constructor or an assignment operator, | // Note: if your class needs a copy constructor or an assignment operator, | ||||
// make one of the following public and implement it. | // make one of the following public and implement it. | ||||
EvtItgAbsIntegrator(); | EvtItgAbsIntegrator(); | ||||
//EvtItgAbsIntegrator( const EvtItgAbsIntegrator& ); // Copy Constructor | //EvtItgAbsIntegrator( const EvtItgAbsIntegrator& ); // Copy Constructor | ||||
//EvtItgAbsIntegrator& operator= ( const EvtItgAbsIntegrator& ); // Assignment op | //EvtItgAbsIntegrator& operator= ( const EvtItgAbsIntegrator& ); // Assignment op | ||||
}; | }; | ||||
#endif // EVTITGABSINTEGRATOR_HH | #endif // EVTITGABSINTEGRATOR_HH |