00001 #ifndef ERFCFITOBJECT_H 00002 #define ERFCFITOBJECT_H 00003 00004 #include "FitObject.h" 00005 00006 00007 namespace SctData{ 00008 00018 class ErfcFitObject : public FitObject { 00019 public: 00025 static shared_ptr<ErfcFitObject> create(); 00026 00028 ErfcFitObject(); 00029 00031 ErfcFitObject(const TF1& rootfunc); 00032 00033 virtual string getClassName() const throw() {return "SctData::ErfcFitObject";} 00034 00035 virtual shared_ptr<FitObject> clone() const throw(); 00036 00038 virtual ~ErfcFitObject() throw() {;} 00039 00041 ErfcFitObject& operator=(const TF1& rootfunc) throw(LogicError); 00042 00043 protected: 00045 std::auto_ptr<TF1> makeBasicRootTF1() const throw(LogicError); 00046 00047 private: 00048 static std::vector<std::string> createParNames(); 00049 static std::vector<std::string> parNames; 00050 }; // end of definition of class ErfcFitObject 00051 00052 }// end of namespace SctData 00053 #endif // #ifndef ERFCFITOBJECT_H