Hall-D Software
alpha
|
#include <DRiemannFit.h>
Public Member Functions | |
DRiemannFit () | |
~DRiemannFit () | |
jerror_t | FitCircle (double rc) |
jerror_t | FitCircle () |
jerror_t | FitLine () |
jerror_t | AddHit (double r, double phi, double z) |
Add a hit to the list of hits using cylindrical coordinates. More... | |
jerror_t | AddHitXYZ (double x, double y, double z) |
Add a hit to the list of hits using Cartesian coordinates. More... | |
jerror_t | AddHit (double x, double y, double z, double covx, double covy, double covxy) |
Add a hit to the list of hits using Cartesian coordinates. More... | |
double | GetCharge (double rc) |
double | GetCharge () |
void | GetPlaneParameters (double &c, DVector3 &n) |
jerror_t | DoFit (double rc) |
Public Attributes | |
double | xc |
double | yc |
double | rc |
double | tanl |
double | zvertex |
double | z0 |
double | var_tanl |
double | p_trans |
double | phi |
double | q |
Protected Member Functions | |
jerror_t | CalcNormal (DMatrix A, double lambda, DMatrix &N) |
Private Attributes | |
vector< DRiemannHit_t * > | hits |
vector< DRiemannHit_t * > | projections |
DMatrix * | CovR_ |
DMatrix * | CovRPhi_ |
double | N [3] |
double | dist_to_origin |
Definition at line 16 of file DRiemannFit.h.
|
inline |
Definition at line 18 of file DRiemannFit.h.
|
inline |
Definition at line 25 of file DRiemannFit.h.
jerror_t DRiemannFit::AddHit | ( | double | r, |
double | phi, | ||
double | z | ||
) |
Add a hit to the list of hits using cylindrical coordinates.
Definition at line 22 of file DRiemannFit.cc.
References AddHitXYZ(), and sin().
Referenced by DQuickFit::FitCircleRiemann().
jerror_t DRiemannFit::AddHit | ( | double | x, |
double | y, | ||
double | z, | ||
double | covx, | ||
double | covy, | ||
double | covxy | ||
) |
Add a hit to the list of hits using Cartesian coordinates.
Definition at line 45 of file DRiemannFit.cc.
References DRiemannHit_t::covx, DRiemannHit_t::covxy, DRiemannHit_t::covy, hits, DRiemannHit_t::x, x, DRiemannHit_t::y, y, and DRiemannHit_t::z.
jerror_t DRiemannFit::AddHitXYZ | ( | double | x, |
double | y, | ||
double | z | ||
) |
Add a hit to the list of hits using Cartesian coordinates.
Definition at line 29 of file DRiemannFit.cc.
References DRiemannHit_t::covx, DRiemannHit_t::covxy, DRiemannHit_t::covy, hits, DRiemannHit_t::x, x, DRiemannHit_t::y, y, and DRiemannHit_t::z.
Referenced by AddHit(), and DQuickFit::FitCircleRiemann().
Definition at line 78 of file DRiemannFit.cc.
References N, sqrt(), and sum.
Referenced by FitCircle().
jerror_t DRiemannFit::DoFit | ( | double | rc | ) |
Definition at line 61 of file DRiemannFit.cc.
References CovR_, CovRPhi_, FitCircle(), FitLine(), GetCharge(), and q.
jerror_t DRiemannFit::FitCircle | ( | double | rc | ) |
Definition at line 99 of file DRiemannFit.cc.
References CovR_, CovRPhi_, FitCircle(), hits, rc, S, sin(), sqrt(), x, and y.
Referenced by DQuickFit::FitCircleRiemann().
jerror_t DRiemannFit::FitCircle | ( | void | ) |
Definition at line 165 of file DRiemannFit.cc.
References B0, CalcNormal(), CovRPhi_, dist_to_origin, DRiemannFit_hit_cmp(), hits, N, rc, sin(), sqrt(), sum, temp, x, X, xc, y, and yc.
Referenced by DoFit(), and FitCircle().
jerror_t DRiemannFit::FitLine | ( | ) |
Definition at line 411 of file DRiemannFit.cc.
References CovR_, dist_to_origin, hits, N, projections, rc, sin(), sqrt(), tanl, temp, DRiemannHit_t::x, x, DRiemannHit_t::y, y, DRiemannHit_t::z, Z_TARGET, and zvertex.
Referenced by DoFit().
double DRiemannFit::GetCharge | ( | double | rc | ) |
double DRiemannFit::GetCharge | ( | void | ) |
Definition at line 348 of file DRiemannFit.cc.
References CovR_, CovRPhi_, hits, sin(), DRiemannHit_t::x, x, DRiemannHit_t::y, y, and DRiemannHit_t::z.
Referenced by DoFit(), and GetCharge().
|
inline |
Definition at line 49 of file DRiemannFit.h.
Referenced by DQuickFit::FitCircleRiemann().
|
private |
Definition at line 70 of file DRiemannFit.h.
Referenced by DoFit(), FitCircle(), FitLine(), and GetCharge().
|
private |
Definition at line 71 of file DRiemannFit.h.
Referenced by DoFit(), FitCircle(), and GetCharge().
|
private |
Definition at line 76 of file DRiemannFit.h.
Referenced by FitCircle(), and FitLine().
|
private |
Definition at line 68 of file DRiemannFit.h.
Referenced by AddHit(), AddHitXYZ(), FitCircle(), FitLine(), and GetCharge().
|
private |
Definition at line 74 of file DRiemannFit.h.
Referenced by CalcNormal(), FitCircle(), and FitLine().
double DRiemannFit::p_trans |
Definition at line 60 of file DRiemannFit.h.
double DRiemannFit::phi |
Definition at line 61 of file DRiemannFit.h.
Referenced by DQuickFit::FitCircleRiemann().
|
private |
Definition at line 69 of file DRiemannFit.h.
Referenced by FitLine().
double DRiemannFit::q |
Definition at line 62 of file DRiemannFit.h.
Referenced by DoFit().
double DRiemannFit::rc |
Definition at line 56 of file DRiemannFit.h.
Referenced by FitCircle(), DQuickFit::FitCircleRiemann(), and FitLine().
double DRiemannFit::tanl |
Definition at line 58 of file DRiemannFit.h.
Referenced by FitLine().
double DRiemannFit::var_tanl |
Definition at line 59 of file DRiemannFit.h.
double DRiemannFit::xc |
Definition at line 56 of file DRiemannFit.h.
Referenced by FitCircle(), and DQuickFit::FitCircleRiemann().
double DRiemannFit::yc |
Definition at line 56 of file DRiemannFit.h.
Referenced by FitCircle(), and DQuickFit::FitCircleRiemann().
double DRiemannFit::z0 |
Definition at line 58 of file DRiemannFit.h.
double DRiemannFit::zvertex |
Definition at line 58 of file DRiemannFit.h.
Referenced by FitLine().