QXRD
0.11.16
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qxrd
source
qxrdfitterpeakorring.cpp
Go to the documentation of this file.
1
#include "
qxrdfitterpeakorring.h
"
2
#include "
qxrdcenterfinder.h
"
3
4
QxrdFitterPeakOrRing::QxrdFitterPeakOrRing
(
QxrdCenterFinder
*cf,
int
index,
double
x0,
double
y0,
double
pkht,
double
bkgd) :
5
QxrdFitter
(cf),
6
m_Index(index),
7
m_X0(x0),
8
m_Y0(y0),
9
m_Pkht(pkht),
10
m_Bkgd(bkgd),
11
m_FittedX(0.0),
12
m_FittedY(0.0),
13
m_FittedWidth(0.0),
14
m_FittedHeight(0.0),
15
m_FittedBkgd(0.0),
16
m_FittedBkgdX(0.0),
17
m_FittedBkgdY(0.0)
18
{
19
}
20
21
QxrdFitterPeakOrRing::QxrdFitterPeakOrRing
() :
22
QxrdFitter
(),
23
m_Index(0),
24
m_X0(0.0),
25
m_Y0(0.0),
26
m_Pkht(0.0),
27
m_Bkgd(0.0),
28
m_FittedX(0.0),
29
m_FittedY(0.0),
30
m_FittedWidth(0.0),
31
m_FittedHeight(0.0),
32
m_FittedBkgd(0.0),
33
m_FittedBkgdX(0.0),
34
m_FittedBkgdY(0.0)
35
{
36
}
37
38
double
QxrdFitterPeakOrRing::fittedR
()
const
39
{
40
if
(
m_CenterFinder
) {
41
double
dx =
m_FittedX
-
m_CenterFinder
->get_CenterX();
42
double
dy =
m_FittedY
-
m_CenterFinder
->get_CenterY();
43
44
return
sqrt(dx*dx + dy*dy);
45
}
else
{
46
return
0;
47
}
48
}
49
50
double
QxrdFitterPeakOrRing::fittedAz
()
const
51
{
52
if
(
m_CenterFinder
) {
53
double
dx =
m_FittedX
-
m_CenterFinder
->get_CenterX();
54
double
dy =
m_FittedY
-
m_CenterFinder
->get_CenterY();
55
56
return
atan2(dy,dx);
57
}
else
{
58
return
0;
59
}
60
}
QxrdFitterPeakOrRing::QxrdFitterPeakOrRing
QxrdFitterPeakOrRing()
Definition:
qxrdfitterpeakorring.cpp:21
qxrdfitterpeakorring.h
QxrdFitterPeakOrRing::m_FittedY
double m_FittedY
Definition:
qxrdfitterpeakorring.h:34
QxrdFitterPeakOrRing::fittedAz
double fittedAz() const
Definition:
qxrdfitterpeakorring.cpp:50
QxrdFitter::m_CenterFinder
QxrdCenterFinder * m_CenterFinder
Definition:
qxrdfitter.h:31
QxrdFitterPeakOrRing::fittedR
double fittedR() const
Definition:
qxrdfitterpeakorring.cpp:38
QxrdFitterPeakOrRing::m_FittedX
double m_FittedX
Definition:
qxrdfitterpeakorring.h:33
qxrdcenterfinder.h
QxrdCenterFinder
Definition:
qxrdcenterfinder.h:19
QxrdFitter
Definition:
qxrdfitter.h:6
Generated by
1.8.10