BM1D/include/Plotter.hh

36 lines
587 B
C++
Raw Normal View History

2017-10-30 09:41:11 +01:00
#ifndef Plotter_h
#define Plotter_h 1
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include "TROOT.h"
#include "TF1.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TNtuple.h"
#include "TFile.h"
#include "TMath.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TTree.h"
2017-10-31 13:31:45 +01:00
#include "TMultiGraph.h"
2017-10-30 09:41:11 +01:00
2017-10-31 13:31:45 +01:00
class Plotter
{
2017-10-30 09:41:11 +01:00
public:
2017-10-31 13:31:45 +01:00
Plotter(bool draw);
void Plot(Int_t numRuns, Int_t nSteps, std::vector<Double_t> t, std::vector<Double_t> x);
2017-10-30 09:41:11 +01:00
private:
2017-10-31 13:31:45 +01:00
bool draw;
TMultiGraph *mg;
2017-10-30 09:41:11 +01:00
TGraph* g1;
TCanvas* canv;
Double_t tl,xl;
};
#endif