MyMarlinTPC
170316
|
Row based hit. More...
#include <RowTripletBasedTrackFinderProcessor.h>
Public Member Functions | |
rb_Hit (const int iHit, const int mod, const int row, const EVENT::TrackerHit &aHit) | |
Construct row based hit. More... | |
void | print () const |
Print. More... | |
int | getHitNum () const |
Get index to input hit collection. More... | |
int | getMod () const |
Get module number. More... | |
int | getRow () const |
Get row number. More... | |
double | getX () const |
Get X coordinate. More... | |
double | getY () const |
Get Y coordinate. More... | |
double | getZ () const |
Get Z coordinate. More... | |
void | getPos (double *) const |
Get position. More... | |
double | getVarXY (const double=0.) const |
Get XY variance. More... | |
double | getVarZ (const double=0.) const |
Get Z variance. More... | |
double | getPhiMeas () const |
Get XY measurement direction. More... | |
bool | getUsed () const |
Get use flag. More... | |
void | setUsed (const double) |
Set use flag. More... | |
double | getCosBeta () const |
Get cos(beta). More... | |
double | getDistXY (const double, const double, const double, const double) const |
Get distance to point in XY (along direction) More... | |
double | getDistZ (const double) const |
Get distance to point in Z. More... | |
Private Member Functions | |
double | _calcPhiMeas (const EVENT::TrackerHit &aHit) |
Calculate measurement direction (in XY). More... | |
double | _getVarXY (FloatVec) |
Get variance in XY measurement direction (from float vector). More... | |
double | _getVarR (FloatVec) |
Get variance in radial direction (from float vector). More... | |
double | _getVarZ (FloatVec) |
Get variance in Z measurement direction (from float vector). More... | |
Private Attributes | |
const int | _hitNum |
input hit collection index More... | |
const int | _hitModule |
module number More... | |
const int | _hitRow |
row number More... | |
const double | _hitX |
X position. More... | |
const double | _hitY |
Y position. More... | |
const double | _hitZ |
Z position. More... | |
const double | _hitPhiMeas |
measurement direction in XY (tangential to row) More... | |
const double | _hitVarXY |
variance for XY measurement More... | |
const double | _hitVarR |
variance in radial direction More... | |
const double | _hitVarZ |
variance for Z measurement More... | |
bool | _used |
used flag More... | |
double | _cosb |
cos(beta) More... | |
Row based hit.
Has identification and measurements with directions and errors.
Definition at line 125 of file RowTripletBasedTrackFinderProcessor.h.
marlintpc::rb_Hit::rb_Hit | ( | const int | iHit, |
const int | mod, | ||
const int | row, | ||
const EVENT::TrackerHit & | aHit | ||
) |
Construct row based hit.
[in] | iHit | index in input hit collection |
[in] | mod | module number |
[in] | row | row number |
[in] | aHit | TPC hit |
Definition at line 460 of file RowTripletBasedTrackFinderProcessor.cc.
|
private |
Calculate measurement direction (in XY).
[in] | aHit | hit |
Definition at line 477 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitModule.
|
private |
Get variance in radial direction (from float vector).
[in] | covMatrix | covariance matrix |
Definition at line 507 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitPhiMeas.
|
private |
Get variance in XY measurement direction (from float vector).
[in] | covMatrix | covariance matrix |
Definition at line 496 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitPhiMeas.
|
private |
Get variance in Z measurement direction (from float vector).
[in] | covMatrix | covariance matrix |
Definition at line 518 of file RowTripletBasedTrackFinderProcessor.cc.
double marlintpc::rb_Hit::getCosBeta | ( | ) | const |
Get cos(beta).
Definition at line 598 of file RowTripletBasedTrackFinderProcessor.cc.
References _cosb.
double marlintpc::rb_Hit::getDistXY | ( | const double | x, |
const double | y, | ||
const double | ex, | ||
const double | ey | ||
) | const |
Get distance to point in XY (along direction)
[in] | x | x position |
[in] | y | y position |
[in] | ex | x direction |
[in] | ey | y direction |
Definition at line 609 of file RowTripletBasedTrackFinderProcessor.cc.
Referenced by marlintpc::rb_Doublet::match().
double marlintpc::rb_Hit::getDistZ | ( | const double | z | ) | const |
Get distance to point in Z.
[in] | z | z position |
Definition at line 617 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitZ.
Referenced by marlintpc::rb_Doublet::match().
int marlintpc::rb_Hit::getHitNum | ( | ) | const |
Get index to input hit collection.
Definition at line 523 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitNum.
Referenced by marlintpc::rb_HyperPlane::print().
int marlintpc::rb_Hit::getMod | ( | ) | const |
Get module number.
Definition at line 528 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitModule.
double marlintpc::rb_Hit::getPhiMeas | ( | ) | const |
Get XY measurement direction.
Definition at line 579 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitPhiMeas.
Referenced by marlintpc::rb_Triplet::match(), marlintpc::rb_Segment::match(), and marlintpc::rb_Doublet::rb_Doublet().
void marlintpc::rb_Hit::getPos | ( | double * | position | ) | const |
Get position.
[out] | position | position |
Definition at line 556 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitX, _hitY, and _hitZ.
Referenced by marlintpc::rb_Segment::match(), and marlintpc::rb_Doublet::rb_Doublet().
int marlintpc::rb_Hit::getRow | ( | ) | const |
Get row number.
Definition at line 533 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitRow.
Referenced by marlintpc::rb_Segment::addHit(), marlintpc::rb_HyperPlane::getRow(), marlintpc::rb_Triplet::match(), marlintpc::rb_HyperPlane::print(), and marlintpc::rb_Segment::rb_Segment().
bool marlintpc::rb_Hit::getUsed | ( | ) | const |
Get use flag.
Definition at line 584 of file RowTripletBasedTrackFinderProcessor.cc.
References _used.
Referenced by marlintpc::rb_Segment::rb_Segment().
double marlintpc::rb_Hit::getVarXY | ( | const double | der2 = 0. | ) | const |
Get XY variance.
[in] | der2 | derivative (dxy/dr) squared |
Definition at line 566 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitVarR, and _hitVarXY.
Referenced by marlintpc::rb_Doublet::match(), marlintpc::rb_Segment::match(), and marlintpc::rb_Doublet::rb_Doublet().
double marlintpc::rb_Hit::getVarZ | ( | const double | der2 = 0. | ) | const |
Get Z variance.
[in] | der2 | derivative (dz/dr) squared |
Definition at line 574 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitVarR, and _hitVarZ.
Referenced by marlintpc::rb_Doublet::match(), marlintpc::rb_Segment::match(), and marlintpc::rb_Doublet::rb_Doublet().
double marlintpc::rb_Hit::getX | ( | ) | const |
Get X coordinate.
Definition at line 538 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitX.
double marlintpc::rb_Hit::getY | ( | ) | const |
Get Y coordinate.
Definition at line 543 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitY.
double marlintpc::rb_Hit::getZ | ( | ) | const |
Get Z coordinate.
Definition at line 548 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitZ.
void marlintpc::rb_Hit::print | ( | ) | const |
Print.
Definition at line 467 of file RowTripletBasedTrackFinderProcessor.cc.
References _hitModule, _hitNum, _hitPhiMeas, _hitRow, _hitVarXY, _hitVarZ, _hitX, _hitY, and _hitZ.
void marlintpc::rb_Hit::setUsed | ( | const double | cosb = 1. | ) |
Set use flag.
[in] | cosb | cos(beta) |
Definition at line 592 of file RowTripletBasedTrackFinderProcessor.cc.
Referenced by marlintpc::rb_Segment::addHit(), and marlintpc::rb_Segment::rb_Segment().
|
private |
cos(beta)
Definition at line 157 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getCosBeta(), marlintpc::rb_Triplet::getCosBeta(), marlintpc::rb_Doublet::getParameters(), marlintpc::rb_Triplet::getVarXYDir(), marlintpc::rb_Doublet::rb_Doublet(), marlintpc::rb_Triplet::rb_Triplet(), and setUsed().
|
private |
module number
Definition at line 147 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by _calcPhiMeas(), getMod(), and print().
|
private |
input hit collection index
Definition at line 146 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getHitNum(), and print().
|
private |
measurement direction in XY (tangential to row)
Definition at line 152 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by _getVarR(), _getVarXY(), getPhiMeas(), and print().
|
private |
row number
Definition at line 148 of file RowTripletBasedTrackFinderProcessor.h.
|
private |
variance in radial direction
Definition at line 154 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getVarXY(), and getVarZ().
|
private |
variance for XY measurement
Definition at line 153 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getVarXY(), and print().
|
private |
variance for Z measurement
Definition at line 155 of file RowTripletBasedTrackFinderProcessor.h.
|
private |
X position.
Definition at line 149 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getDistXY(), getPos(), getX(), and print().
|
private |
Y position.
Definition at line 150 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getDistXY(), getPos(), getY(), and print().
|
private |
Z position.
Definition at line 151 of file RowTripletBasedTrackFinderProcessor.h.
Referenced by getDistZ(), getPos(), getZ(), and print().
|
private |
used flag
Definition at line 156 of file RowTripletBasedTrackFinderProcessor.h.