00001 #ifndef ERFCFITOBJECT_H
00002 #define ERFCFITOBJECT_H
00003
00004 #include "TMath.h"
00005 #include "FitObject.h"
00006 #include "FitFunctions.h"
00007
00008 namespace SctData{
00009
00019 class ErfcFitObject : public FitObject {
00020 public:
00022 ErfcFitObject() throw() ;
00023
00025 ErfcFitObject(const TF1& rootfunc) throw(LogicError);
00026
00027 virtual string getClassName() const throw() {return "SctData::ErfcFitObject";}
00028
00029 virtual auto_ptr<FitObject> clone() const throw();
00030
00032 virtual ~ErfcFitObject() throw() {;}
00033
00035 ErfcFitObject& operator=(const TF1& rootfunc) throw(LogicError);
00036
00037 protected:
00039 auto_ptr<TF1> makeBasicRootTF1() const throw(LogicError);
00040
00042 void init() throw();
00043
00044 };
00045
00046 }
00047 #endif // #ifndef ERFCFITOBJECT_H