BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/include/MdcTrkRecon/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
const Int_t n
int fit(int nUse)