BM1D/include/Analyse.hh

45 lines
688 B
C++
Raw Permalink Normal View History

2017-10-31 14:44:08 +01:00
#ifndef Analyse_h
#define Analyse_h 1
#include <iostream>
#include <string>
#include <fstream>
#include <cmath>
#include <limits>
#include "TH1.h"
#include "TF1.h"
#include "TMath.h"
2017-10-31 16:00:35 +01:00
#include "TCanvas.h"
2017-10-31 14:44:08 +01:00
2017-11-02 12:53:04 +01:00
//////////////////////////////////////////////////
// //
// Estimate p0, mu, sigma for one particle //
// //
//////////////////////////////////////////////////
2017-10-31 14:44:08 +01:00
class Analyse{
public:
Analyse();
~Analyse();
Double_t GetP0();
Double_t GetMu();
Double_t GetSigma();
2017-11-02 12:53:04 +01:00
TH1D* GetHist();
2017-10-31 14:44:08 +01:00
void AnalyseGaus(std::vector<Double_t> t, std::vector<Double_t> x);
private:
Double_t _p0;
Double_t _mu;
Double_t _sigma;
2017-10-31 16:00:35 +01:00
TCanvas* canvA;
2017-11-02 12:53:04 +01:00
TH1D* dxhisto;
2017-10-31 14:44:08 +01:00
};
#endif