#ifndef MYTF1 #define MYTF1 #include "TF1.h" //____________________________________________________________________ class MyTF1 : public TF1 { public: MyTF1() {}; MyTF1(const char *name, const char *formula, Double_t from, Double_t to, const char *option) : TF1(name, formula, from, to, option) {}; using TF1::GetRandom; Double_t GetRandom(); ClassDef (MyTF1,0) }; //_________________________________________________________________ ClassImp (MyTF1) Double_t MyTF1::GetRandom() { return 0.5555; } #endif