BOSS
7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/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//
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:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:13
MdcLine::intercept
double intercept
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:21
MdcLine::x
double * x
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:15
MdcLine::MdcLine
MdcLine(int n)
Definition:
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/MdcTrkRecon/MdcLine.h:25
MdcLine::slope
double slope
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:20
MdcLine::nPoint
int nPoint
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:19
MdcLine::~MdcLine
~MdcLine()
Definition:
Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-48/MdcTrkRecon/MdcLine.h:32
MdcLine::chisq
double chisq
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:22
MdcLine::sigma
double * sigma
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:17
MdcLine::errmat
double errmat[3]
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:23
MdcLine::resid
double * resid
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:18
MdcLine::fit
int fit(int nUse)
MdcLine::y
double * y
Definition:
InstallArea/include/MdcTrkRecon/MdcTrkRecon/MdcLine.h:16
source
Reconstruction
MdcPatRec
MdcTrkRecon
MdcTrkRecon-00-03-48
MdcTrkRecon
MdcLine.h
Generated by
1.9.6