pspaplots.h 744 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#ifndef __SETTINGPLOTS_H__
#define __SETTINGPLOTS_H__

#include <string>
#include <vector>
#include <map>

#include <nlohmann/json.hpp>
using json = nlohmann::json;
using namespace std;

class pspaplot
{
  string userDir_;
  
  json phaseSpace(json,string);

  json plotSelection(json);
  vector<double> menu1(string,json);
  map<string,vector<double> > menu2(string,json);
  
  json beamParameters(json);
  void submenu1(string,json,double&,vector<double>&);
  void submenu2(string,json,map<string,vector<double> >&);
  void menu(string,json,map<string,vector<double> >&);
  
  json lineplots(vector<double>,map<string,vector<double> >);
  
  
 public:

  pspaplot();
  pspaplot( string );
  ~pspaplot();

  void settings( string );
};
#endif