forked from sckao/Acoustic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMathTools.h
executable file
·43 lines (31 loc) · 1.19 KB
/
MathTools.h
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
39
40
41
42
43
#ifndef MathTools_H
#define MathTools_H
#include "TObject.h"
#include <vector>
#include <stdio.h>
#include <iostream>
#include <string>
#include <TMath.h>
#include <TF1.h>
//#include <TLorentzVector.h>
using namespace std;
class MathTools {
public:
MathTools( ) { } ;
~MathTools() ;
static pair<double,double> EffError( double N_all, double N_pass ) ;
static pair<double,double> ErrAxB( double A, double B, double u_A = -1, double d_A = -1, double u_B = -1, double d_B = -1 ) ;
static pair<double,double> ErrAovB( double A, double B, double u_A = -1, double d_A = -1, double u_B = -1, double d_B = -1 ) ;
static pair<double,double> ErrApnB( double A, double B, double u_A = -1, double d_A = -1, double u_B = -1, double d_B = -1 ) ;
static pair<double,double> StatErr( double m ) ;
static Double_t BinomialErr( Double_t* x, Double_t* par ) ;
static Double_t fExp(Double_t *v, Double_t *par) ;
static Double_t fitGS(Double_t *v, Double_t *par) ;
static Double_t fitPoly(Double_t *v, Double_t *par) ;
static Double_t fitExp(Double_t *v, Double_t *par) ;
static Double_t fitExp1(Double_t *v, Double_t *par) ;
private:
};
//#if !defined(__CINT__)
// ClassImp(MathTools);
#endif