CGEM BOSS
6.6.5.i
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//
13
class
MdcLine
{
14
public
:
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
};
32
~MdcLine
() {
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
n
const Int_t n
Definition
DataBase/tau_mode.c:65
MdcLine
Definition
MdcLine.h:13
MdcLine::x
double * x
Definition
MdcLine.h:15
MdcLine::intercept
double intercept
Definition
MdcLine.h:21
MdcLine::MdcLine
MdcLine(int n)
Definition
MdcLine.h:25
MdcLine::y
double * y
Definition
MdcLine.h:16
MdcLine::slope
double slope
Definition
MdcLine.h:20
MdcLine::nPoint
int nPoint
Definition
MdcLine.h:19
MdcLine::~MdcLine
~MdcLine()
Definition
MdcLine.h:32
MdcLine::chisq
double chisq
Definition
MdcLine.h:22
MdcLine::resid
double * resid
Definition
MdcLine.h:18
MdcLine::errmat
double errmat[3]
Definition
MdcLine.h:23
MdcLine::fit
int fit(int nUse)
Definition
MdcLine.cxx:10
MdcLine::sigma
double * sigma
Definition
MdcLine.h:17
6.6.5.i
Reconstruction
MdcPatRec
MdcTrkRecon
MdcTrkRecon-00-03-49
MdcTrkRecon
MdcLine.h
Generated by
1.12.0