-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLinearity.h
More file actions
42 lines (38 loc) · 832 Bytes
/
Linearity.h
File metadata and controls
42 lines (38 loc) · 832 Bytes
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
#ifndef EIRE_LINEARITY_H
#define EIRE_LINEARITY_H
#include <iostream>
#include <math.h>
#include <TFitResult.h>
#include <TFitResultPtr.h>
#include <fstream>
#include <sstream>
#include <string.h>
#include <vector>
#include <TH1.h>
#include <TCanvas.h>
#include <TGraphErrors.h>
#include <TF1.h>
#include <TLine.h>
#include <cstdlib>
#include <stdio.h>
#include <iomanip>
using namespace std;
namespace eire{
class Linearity{
public:
Linearity(string name);
~Linearity();
void AddPoint(int index, double f_gen, double f_obs, double f_obs_err, double p_av, double p_averr, double p_rms, double p_rmserr);
void Plot();
private:
double x[5];
double y[5];
double y_err[5];
double P_av[5];
double P_averr[5];
double P_rms[5];
double P_rmserr[5];
string Name;
};
}
#endif