BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcLine.h
Go to the documentation of this file.
1// MdcLine.hh
2// simple class to do a line fit -- all public
3// y = ax + b;
4
5// Interface Dependencies ----------------------------------------------
6
7#ifndef MDCLINE_H
8#define MDCLINE_H
9
10// End Interface Dependencies -----------------------------------------
11
12// Class definition//
13class MdcLine {
14public:
15 double *x;
16 double *y;
17 double *sigma;
18 double *resid;
19 int nPoint;
20 double slope;
21 double intercept;
22 double chisq;
23 double errmat[3];
24
25 MdcLine(int n) {
26 nPoint = n;
27 x = new double[n];
28 y = new double[n];
29 sigma = new double[n];
30 resid = new double[n];
31 };
33 delete [] x;
34 delete [] y;
35 delete [] sigma;
36 delete [] resid;
37 };
38
39 // The fit:
40 int fit(int nUse); // fit using first nUse pts
41};
42#endif
43
44
45
46
47
48
49
const Int_t n
double * x
Definition: MdcLine.h:15
double intercept
Definition: MdcLine.h:21
MdcLine(int n)
Definition: MdcLine.h:25
double * y
Definition: MdcLine.h:16
double slope
Definition: MdcLine.h:20
int nPoint
Definition: MdcLine.h:19
~MdcLine()
Definition: MdcLine.h:32
double chisq
Definition: MdcLine.h:22
double * resid
Definition: MdcLine.h:18
double errmat[3]
Definition: MdcLine.h:23
int fit(int nUse)
Definition: MdcLine.cxx:10
double * sigma
Definition: MdcLine.h:17