//script to test Modules #include #include #include class TRF1 { private: TF1 *f; public: TRF1(std::string name,std::string formula){f=new TF1(name.c_str(),formula.c_str());} double Eval(double x) { return f->Eval(x); } void Draw(){ f->Draw(); } }; ROOTR_MODULE(rootr) { ROOT::R::class_( "TRF1" ) .constructor() .method( "Eval", &TRF1::Eval ) .method( "Draw", &TRF1::Draw ) ; } void Class() { ROOT::R::TRInterface &r=ROOT::R::TRInterface::Instance(); r["rootr"]<