00001
00015 #ifndef _INTEGRATOR_H_
00016 #define _INTEGRATOR_H_
00017
00018 #include <TObject.h>
00019
00020 class Integrator : public TObject
00021 {
00022 public:
00023
00024 static Integrator * Instance(void);
00025
00026 double Simpson(const double * f, const int n, const double dx) const;
00027
00028 private:
00029
00030 Integrator();
00031 Integrator(const Integrator & intg);
00032 virtual ~Integrator();
00033
00034 static Integrator * fInstance;
00035
00036 ClassDef(Integrator, 0)
00037 };
00038
00039 #endif // _INTEGRATOR_H_