#ifndef PLOTTER_H #define PLOTTER_H #include #include #include #include #include #include "Nucleus.h" struct GraphData { std::string name; std::string title; std::vector xvec; std::vector yvec; int color; }; class Plotter { public: Plotter(); ~Plotter(); inline void ClearTable() { table->Clear(); }; inline THashTable* GetTable() { GenerateGraphs(); return table; }; void FillData(const Nucleus& nuc); private: THashTable* table; void GenerateGraphs(); void MyFill(const char* name, const char* title, int bins, float min, float max, double val); void MyFill(const char* name, const char* title, int binsx, float minx, float maxx, int binsy, float miny, float maxy, double valx, double valy); void MyFill(const char* name, const char* title, double valx, double valy, int color); //TGraph std::vector garbage_collection; std::vector graphs; static constexpr double rad2deg = 180.0/M_PI; }; #endif