00001 #ifndef maxFinder_H
00002 #define maxFinder_H 1
00003
00009 #include "TObject.h"
00010 #include "TF1.h"
00011 class TGraph;
00012 class TGraphErrors;
00013
00014 class maxFinder: public TObject{
00015
00016 public:
00017
00019 maxFinder(){}
00020
00028 maxFinder(int iter,
00029 float range,
00030 float searchRange,
00031 float funStart,
00032 float funStop);
00033
00035 virtual ~maxFinder();
00036
00042 void Eval(float& maxValue, float& maxTime ,TGraph* aGraph);
00043
00044 ClassDef(maxFinder,1)
00045
00046
00047 private:
00048
00049 int m_iter;
00050 float m_range;
00051 float m_searchRange;
00052
00053 int maxVal(const double* values, const int n) const;
00054
00055 float findTimeMax(const float maxT) const;
00056
00057 TF1* m_function;
00058
00059 };
00060
00061 #endif