CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HDQMfitUtilities.h
Go to the documentation of this file.
1 #ifndef DQMServices_HDQMfitUtilities_H
2 #define DQMServices_HDQMfitUtilities_H
3 
4 #include <vector>
5 #include <cstring>
6 #include <iostream>
7 #include <sstream>
8 #include <string>
9 #include "TH1.h"
10 #include "TF1.h"
11 #include "TMath.h"
14 
15 
23 namespace HDQMUtil{
24  double langaufun(double *x, double *par);
25  int32_t langaupro(double *params, double &maxx, double &FWHM);
26  double Gauss(double *x, double *par);
27 }
28 
30 
31  public:
32 
35 
36  void init();
38  double doLanGaussFit(TH1F*);
39 
40  double doGaussFit(MonitorElement* ME){return doGaussFit(ME->getTH1F());}
41  double doGaussFit(TH1F*);
42 
43  double getLanGaussPar(std::string s) ;
44  double getLanGaussParErr(std::string s);
45  double getLanGaussConv(std::string s) ;
46 
47  double getGaussPar(std::string s) ;
48  double getGaussParErr(std::string s);
49 
50  double getFitChi() {return chi2GausS;}
51  int getFitnDof() {return nDofGausS;}
52 
53  private:
54 
55  double pLanGausS[4], epLanGausS[4];
56  double pGausS[3], epGausS[3];
57  double pLanConv[2];
58  double chi2GausS;
59  int32_t nDofGausS;
60  TF1 *langausFit;
61  TF1 *gausFit;
62 };
63 
64 #endif // DQM_SiStripHistoricInfoClient_HDQMfitUtilities_H
65 
66 
67 
int32_t langaupro(double *params, double &maxx, double &FWHM)
double getLanGaussParErr(std::string s)
double doGaussFit(MonitorElement *ME)
double getLanGaussConv(std::string s)
Definition: ME.h:11
double getGaussParErr(std::string s)
double Gauss(double *x, double *par)
double getLanGaussPar(std::string s)
double langaufun(double *x, double *par)
double getGaussPar(std::string s)
TH1F * getTH1F(void) const
Definition: DDAxes.h:10
double doLanGaussFit(MonitorElement *ME)