00001 #ifndef TOPHATFITOBJECT_H
00002 #define TOPHATFITOBJECT_H
00003
00004 #include "TMath.h"
00005 #include "FitObject.h"
00006 #include "FitFunctions.h"
00007
00008 using std::string;
00009
00010 namespace SctData{
00011
00020 class TopHatFitObject : public FitObject {
00021 public:
00023 TopHatFitObject() throw() ;
00024
00026 TopHatFitObject(const TF1& rootfunc) throw(LogicError) ;
00027
00028 virtual auto_ptr<FitObject> clone() const throw();
00029
00031 virtual ~TopHatFitObject() throw() {;}
00032
00033 virtual string getClassName() const throw() {return "SctData::TopHatFitObject";}
00034
00036 TopHatFitObject& operator=(const TF1& rootfunc) throw(LogicError) ;
00037
00038 protected:
00040 auto_ptr<TF1> makeBasicRootTF1() const throw(LogicError) ;
00041
00043 void init() throw() ;
00044 };
00045
00046 }
00047
00048 #endif // #ifndef TOPHATFITOBJECT_H
00049