MyMarlinTPC
170316
|
TimePix pixel segment. More...
#include <TimePixLocalRoadSearchProcessor.h>
Public Member Functions | |
tp_PixelSegment (const int, const int, const double, macroPixelListType &) | |
Construct TimePix pixel segment. More... | |
~tp_PixelSegment () | |
Destructor. More... | |
void | print () const |
Print. More... | |
int | getNumPar () const |
Get number of parameters. More... | |
int | getLevel () const |
Get level. More... | |
double | getChi2 () const |
Get Chi2/Ndf. More... | |
int | getNdf () const |
Get Chi2/Ndf. More... | |
double | getLength () const |
Get length. More... | |
void | getRefPoint (double *) const |
Get reference point. More... | |
void | getPar (double *) const |
Get (all five helix) parameters from segment fit. More... | |
const TVectorD & | getPar () const |
Get parameter vector. More... | |
const TMatrixDSym & | getCov () const |
Get covariance matrix. More... | |
bool | match (tp_PixelSegment *, const double, const double) const |
macroPixelListType | getMacroPixels () const |
Get macro pixels. More... | |
void | getLCIOStateAtRefPoint (const double *, TVectorD &, TMatrixDSym &) const |
Get segment state at reference point. More... | |
Private Attributes | |
const int | _segId |
segment ID More... | |
const int | _level |
segment level More... | |
const double | _bzc |
magnetic field strength (Bz*c) More... | |
const int | _npar |
number of parameters (5: helix, 4: line) More... | |
macroPixelListType | _macroPixels |
macro pixels More... | |
double | _refX |
X of reference point. More... | |
double | _refY |
Y of reference point. More... | |
double | _refZ |
Z of reference point. More... | |
double | _length |
segment (arc) length More... | |
int | _ndf |
number of degrees of freedom of segment fit More... | |
double | _chi2 |
chi2 from segment fit More... | |
TVectorD | _parameters |
parameter vector More... | |
TMatrixDSym | _covariance |
covariance matrix More... | |
TimePix pixel segment.
Definition at line 260 of file TimePixLocalRoadSearchProcessor.h.
marlintpc::tp_PixelSegment::tp_PixelSegment | ( | const int | segId, |
const int | level, | ||
const double | Bzc, | ||
macroPixelListType & | macroPixels | ||
) |
Construct TimePix pixel segment.
[in] | segId | segment ID |
[in] | level | level |
[in] | Bzc | Bz*c |
[in] | macroPixels | list of macro pixels |
int nParZS;
Definition at line 844 of file TimePixLocalRoadSearchProcessor.cc.
References _chi2, _covariance, _length, _ndf, _npar, _parameters, _refX, _refY, _refZ, marlintpc::simpleFitXY::addPoint(), marlintpc::simpleFitZS::addPoint(), marlintpc::simpleFitXY::fit(), marlintpc::simpleFitZS::fit(), marlintpc::simpleHelix::getArcLengthXY(), marlintpc::simpleFitXY::getCov(), marlintpc::simpleFitZS::getCov(), marlintpc::simpleFitXY::getPar(), and marlintpc::simpleFitZS::getPar().
marlintpc::tp_PixelSegment::~tp_PixelSegment | ( | ) |
Destructor.
Definition at line 910 of file TimePixLocalRoadSearchProcessor.cc.
References _macroPixels.
double marlintpc::tp_PixelSegment::getChi2 | ( | ) | const |
const TMatrixDSym & marlintpc::tp_PixelSegment::getCov | ( | ) | const |
Get covariance matrix.
Definition at line 977 of file TimePixLocalRoadSearchProcessor.cc.
References _covariance.
Referenced by getLCIOStateAtRefPoint(), and match().
void marlintpc::tp_PixelSegment::getLCIOStateAtRefPoint | ( | const double * | refPos, |
TVectorD & | newPar, | ||
TMatrixDSym & | newCov | ||
) | const |
Get segment state at reference point.
Propagate track state at point and transform from helix to LCIO representation.
[in] | refPos | reference point (X coordinate) |
[out] | newPar | parameter vector |
[out] | newCov | covariance matrix |
Definition at line 995 of file TimePixLocalRoadSearchProcessor.cc.
References _bzc, _npar, getCov(), getPar(), getRefPoint(), marlintpc::simpleHelix::getStateAt(), and marlintpc::simpleHelix::helixToLCIOJacobian().
double marlintpc::tp_PixelSegment::getLength | ( | ) | const |
Get length.
Definition at line 927 of file TimePixLocalRoadSearchProcessor.cc.
References _length.
Referenced by match().
int marlintpc::tp_PixelSegment::getLevel | ( | ) | const |
macroPixelListType marlintpc::tp_PixelSegment::getMacroPixels | ( | ) | const |
Get macro pixels.
Definition at line 982 of file TimePixLocalRoadSearchProcessor.cc.
References _macroPixels.
int marlintpc::tp_PixelSegment::getNdf | ( | ) | const |
int marlintpc::tp_PixelSegment::getNumPar | ( | ) | const |
Get number of parameters.
Definition at line 942 of file TimePixLocalRoadSearchProcessor.cc.
References _npar.
void marlintpc::tp_PixelSegment::getPar | ( | double * | par | ) | const |
Get (all five helix) parameters from segment fit.
[out] | par | helix parameter (curvature is zero for Bz*c = 0.) |
Definition at line 965 of file TimePixLocalRoadSearchProcessor.cc.
References _npar, and _parameters.
Referenced by match().
const TVectorD & marlintpc::tp_PixelSegment::getPar | ( | ) | const |
Get parameter vector.
Definition at line 972 of file TimePixLocalRoadSearchProcessor.cc.
References _parameters.
Referenced by getLCIOStateAtRefPoint(), and match().
void marlintpc::tp_PixelSegment::getRefPoint | ( | double * | position | ) | const |
Get reference point.
[out] | position | position of reference point |
Definition at line 955 of file TimePixLocalRoadSearchProcessor.cc.
References _refX, _refY, and _refZ.
Referenced by getLCIOStateAtRefPoint(), and match().
bool marlintpc::tp_PixelSegment::match | ( | tp_PixelSegment * | seg, |
const double | chi2Cut, | ||
const double | distCut | ||
) | const |
Compare the (4 (line) or 5 (helix)) track parameters (at the mid point). The segments must not overlap (in rows) and the (row) gap must be smaller than the average length.
[in] | seg | segment to compare with |
[in] | chi2Cut | chi2/ndf cut for segment matching |
[in] | distCut | distance cut |
Definition at line 1020 of file TimePixLocalRoadSearchProcessor.cc.
References _bzc, _npar, getCov(), getLength(), getPar(), getRefPoint(), and marlintpc::simpleHelix::getStateAt().
void marlintpc::tp_PixelSegment::print | ( | ) | const |
Print.
Definition at line 916 of file TimePixLocalRoadSearchProcessor.cc.
References _chi2, _length, _level, _macroPixels, _ndf, _npar, _parameters, _refX, _refY, and _segId.
|
private |
magnetic field strength (Bz*c)
Definition at line 281 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getLCIOStateAtRefPoint(), and match().
|
private |
chi2 from segment fit
Definition at line 289 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getChi2(), print(), and tp_PixelSegment().
|
private |
covariance matrix
Definition at line 291 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getCov(), and tp_PixelSegment().
|
private |
segment (arc) length
Definition at line 287 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getLength(), print(), and tp_PixelSegment().
|
private |
segment level
Definition at line 280 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getLevel(), and print().
|
private |
macro pixels
Definition at line 283 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getMacroPixels(), print(), and ~tp_PixelSegment().
|
private |
number of degrees of freedom of segment fit
Definition at line 288 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getNdf(), print(), and tp_PixelSegment().
|
private |
number of parameters (5: helix, 4: line)
Definition at line 282 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getLCIOStateAtRefPoint(), getNumPar(), getPar(), match(), print(), and tp_PixelSegment().
|
private |
parameter vector
Definition at line 290 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getPar(), print(), and tp_PixelSegment().
|
private |
X of reference point.
Definition at line 284 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getRefPoint(), print(), and tp_PixelSegment().
|
private |
Y of reference point.
Definition at line 285 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getRefPoint(), print(), and tp_PixelSegment().
|
private |
Z of reference point.
Definition at line 286 of file TimePixLocalRoadSearchProcessor.h.
Referenced by getRefPoint(), and tp_PixelSegment().
|
private |