#include <Track.h>
◆ Track()
6{
12
15}
double qy
Definition: Track.h:45
double sigmaDeltaThetaYZ
Definition: Track.h:42
double meanDeltaThetaXZ
Definition: Track.h:39
double meanDeltaTheta3D
Definition: Track.h:34
double meanGapClusterToCluster
Definition: Track.h:43
double xChi2
Definition: Track.h:44
double _errz
Definition: Track.h:19
double _erry
Definition: Track.h:18
double mx
Definition: Track.h:44
double sigmaDeltaThetaXZ
Definition: Track.h:40
double my
Definition: Track.h:45
double _errx
Definition: Track.h:17
double sigmaDeltaTheta3D
Definition: Track.h:38
double yChi2
Definition: Track.h:45
double ry
Definition: Track.h:45
double rx
Definition: Track.h:44
double meanDistanceClustersTo3DLine
Definition: Track.h:43
double dz
Definition: Track.h:46
double qx
Definition: Track.h:44
double meanDeltaThetaYZ
Definition: Track.h:41
◆ ~Track()
◆ addGrain()
std::vector< Grain > _grains
Definition: Track.h:26
◆ evaluateEstimators()
bool Track::evaluateEstimators |
( |
| ) |
|
34{
35
36
38 return false;
39
40 unsigned short nGrains =
_count;
41
42
43
46 for (unsigned short i = 0; i < nGrains; i++)
47 {
51
54
56
57 if (i < nGrains -1)
58 {
59 double dx =
_grains.at(i+1).x-x;
60 double dy =
_grains.at(i+1).y-y;
63 }
64
65 if (i < nGrains-2)
66 {
67 double dx1 =
_grains.at(i+1).x-x;
68 double dy1 =
_grains.at(i+1).y-y;
69 double dz1 =
_grains.at(i+1).z-z;
73
74 double sx1 = dx1/dz1;
75 double sy1 = dy1/dz1;
76
77 double sx2 = dx2/dz2;
78 double sy2 = dy2/dz2;
79
80 double valueXZ = acos((dx1*dx2+dz1*dz2)/(sqrt(dx1*dx1+dz1*dz1)*sqrt(dx2*dx2+dz2*dz2)));
81 double valueYZ = acos((dy1*dy2+dz1*dz2)/(sqrt(dy1*dy1+dz1*dz1)*sqrt(dy2*dy2+dz2*dz2)));
82 double value3D = acos((dx1*dx2+dy1*dy2+dz1*dz2)/(sqrt(dx1*dx1+dy1*dy1+dz1*dz1)*sqrt(dx2*dx2+dy2*dy2+dz2*dz2)));
83
84
85 double signXZ = 1.;
86 double signYZ = 1.;
87
88 if (sx2<sx1)
89 signXZ*=-1;
90 if (sy2<sy1)
91 signYZ*=-1;
92
96
100
101 }
102 }
106
108
112
116
120
121
122
123
128
129
130
135
138
139
142
143 return true;
144}
void addPoint(double x, double y)
Definition: fitter.cpp:15
double getIntercept()
Definition: fitter.h:24
bool evaluateLinearFit()
Definition: fitter.cpp:28
double getSlope()
Definition: fitter.h:23
double getPearsonCoefficent()
Definition: fitter.h:25
void setErrXY(double errx, double erry)
Definition: fitter.cpp:22
double getChi2()
Definition: fitter.h:26
double pointTo3DlineDistance(double x0, double y0, double z0)
Definition: Track.cpp:17
unsigned short _count
Definition: Track.h:13
◆ getAreaSum()
unsigned int Track::getAreaSum |
( |
| ) |
const |
|
inline |
unsigned int _areaSum
Definition: Track.h:12
◆ getBottomZ()
double Track::getBottomZ |
( |
| ) |
const |
|
inline |
double _bottomZ
Definition: Track.h:25
◆ getCount()
unsigned short Track::getCount |
( |
| ) |
const |
|
inline |
◆ getErrX()
double Track::getErrX |
( |
| ) |
const |
|
inline |
◆ getErrY()
double Track::getErrY |
( |
| ) |
const |
|
inline |
◆ getErrZ()
double Track::getErrZ |
( |
| ) |
const |
|
inline |
◆ getGrains()
std::vector< Grain > Track::getGrains |
( |
| ) |
const |
|
inline |
◆ getSigma()
double Track::getSigma |
( |
| ) |
const |
|
inline |
double _sigma
Definition: Track.h:23
◆ getSX()
double Track::getSX |
( |
| ) |
const |
|
inline |
double _sx
Definition: Track.h:20
◆ getSY()
double Track::getSY |
( |
| ) |
const |
|
inline |
double _sy
Definition: Track.h:21
◆ getSZ()
double Track::getSZ |
( |
| ) |
const |
|
inline |
double _sz
Definition: Track.h:22
◆ getTopZ()
double Track::getTopZ |
( |
| ) |
const |
|
inline |
double _topZ
Definition: Track.h:24
◆ getX()
double Track::getX |
( |
| ) |
const |
|
inline |
double _x
Definition: Track.h:14
◆ getY()
double Track::getY |
( |
| ) |
const |
|
inline |
double _y
Definition: Track.h:15
◆ getZ()
double Track::getZ |
( |
| ) |
const |
|
inline |
double _z
Definition: Track.h:16
◆ pointTo3DlineDistance()
double Track::pointTo3DlineDistance |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double |
z0 |
|
) |
| |
|
private |
18{
19 double dist = 0;
25 double vz = 1;
26 double qr = (qp_x*vx+qp_y*vy+qp_z*vz)/sqrt(vx*vx+vy*vy+vz*vz);
27 double qp =sqrt(qp_x*qp_x+qp_y*qp_y+qp_z*qp_z);
28 dist = sqrt(qp*qp-qr*qr);
29
30 return dist;
31}
brick z0
Definition: RecDispMC.C:106
◆ setAreaSum()
void Track::setAreaSum |
( |
unsigned int |
areaSum | ) |
|
|
inline |
◆ setBottomZ()
void Track::setBottomZ |
( |
double |
z | ) |
|
|
inline |
◆ setCount()
void Track::setCount |
( |
unsigned short |
count | ) |
|
|
inline |
◆ setErrX()
void Track::setErrX |
( |
double |
errx | ) |
|
|
inline |
◆ setErrY()
void Track::setErrY |
( |
double |
erry | ) |
|
|
inline |
◆ setErrZ()
void Track::setErrZ |
( |
double |
errz | ) |
|
|
inline |
◆ setSigma()
void Track::setSigma |
( |
double |
sigma | ) |
|
|
inline |
◆ setSX()
void Track::setSX |
( |
double |
sx | ) |
|
|
inline |
◆ setSY()
void Track::setSY |
( |
double |
sy | ) |
|
|
inline |
◆ setSZ()
void Track::setSZ |
( |
double |
sz | ) |
|
|
inline |
◆ setTopZ()
void Track::setTopZ |
( |
double |
z | ) |
|
|
inline |
◆ setX()
void Track::setX |
( |
double |
x | ) |
|
|
inline |
◆ setY()
void Track::setY |
( |
double |
y | ) |
|
|
inline |
◆ setZ()
void Track::setZ |
( |
double |
z | ) |
|
|
inline |
◆ _areaSum
unsigned int Track::_areaSum |
|
private |
◆ _bottomZ
◆ _count
unsigned short Track::_count |
|
private |
◆ _errx
◆ _erry
◆ _errz
◆ _grains
std::vector<Grain> Track::_grains |
|
private |
◆ _sigma
◆ _sx
◆ _sy
◆ _sz
◆ _topZ
◆ _x
◆ _y
◆ _z
◆ dz
◆ Field
◆ FirstZ
◆ Intercept
◆ InterceptErrors
◆ LastZ
◆ meanDeltaTheta3D
double Track::meanDeltaTheta3D |
◆ meanDeltaThetaXZ
double Track::meanDeltaThetaXZ |
◆ meanDeltaThetaYZ
double Track::meanDeltaThetaYZ |
◆ meanDistanceClustersTo3DLine
double Track::meanDistanceClustersTo3DLine |
◆ meanGapClusterToCluster
double Track::meanGapClusterToCluster |
◆ mx
◆ mxSigma
◆ my
◆ mySigma
◆ pCorrection [1/2]
◆ pCorrection [2/2]
◆ PointsN
◆ pPoints
◆ qx
◆ qy
◆ rx
◆ ry
◆ Sigma
◆ sigmaDeltaTheta3D
double Track::sigmaDeltaTheta3D |
◆ sigmaDeltaThetaXZ
double Track::sigmaDeltaThetaXZ |
◆ sigmaDeltaThetaYZ
double Track::sigmaDeltaThetaYZ |
◆ Slope
◆ SlopeErrors
◆ Valid [1/2]
◆ Valid [2/2]
◆ xChi2
◆ yChi2
The documentation for this struct was generated from the following files:
- /home/antonio/fedra_doxygen/src/appl/rwcToEdb/Track.h
- /home/antonio/fedra_doxygen/src/libDataConversion/dataIO/Track.h
- /home/antonio/fedra_doxygen/src/libDataConversion/dataIO/Track.linux.h
- /home/antonio/fedra_doxygen/src/appl/rwcToEdb/Track.cpp