MyMarlinTPC  170316
Public Member Functions | Private Member Functions | Private Attributes | List of all members
marlintpc::rb_Hit Class Reference

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...
 

Detailed Description

Row based hit.

Has identification and measurements with directions and errors.

Definition at line 125 of file RowTripletBasedTrackFinderProcessor.h.

Constructor & Destructor Documentation

◆ rb_Hit()

marlintpc::rb_Hit::rb_Hit ( const int  iHit,
const int  mod,
const int  row,
const EVENT::TrackerHit &  aHit 
)

Construct row based hit.

Parameters
[in]iHitindex in input hit collection
[in]modmodule number
[in]rowrow number
[in]aHitTPC hit

Definition at line 460 of file RowTripletBasedTrackFinderProcessor.cc.

Member Function Documentation

◆ _calcPhiMeas()

double marlintpc::rb_Hit::_calcPhiMeas ( const EVENT::TrackerHit &  aHit)
private

Calculate measurement direction (in XY).

Parameters
[in]aHithit
Returns
measurement direction

Definition at line 477 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitModule.

◆ _getVarR()

double marlintpc::rb_Hit::_getVarR ( FloatVec  covMatrix)
private

Get variance in radial direction (from float vector).

Parameters
[in]covMatrixcovariance matrix
Returns
radial variance

Definition at line 507 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitPhiMeas.

◆ _getVarXY()

double marlintpc::rb_Hit::_getVarXY ( FloatVec  covMatrix)
private

Get variance in XY measurement direction (from float vector).

Parameters
[in]covMatrixcovariance matrix
Returns
XY variance

Definition at line 496 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitPhiMeas.

◆ _getVarZ()

double marlintpc::rb_Hit::_getVarZ ( FloatVec  covMatrix)
private

Get variance in Z measurement direction (from float vector).

Parameters
[in]covMatrixcovariance matrix
Returns
Z variance

Definition at line 518 of file RowTripletBasedTrackFinderProcessor.cc.

◆ getCosBeta()

double marlintpc::rb_Hit::getCosBeta ( ) const

Get cos(beta).

Definition at line 598 of file RowTripletBasedTrackFinderProcessor.cc.

References _cosb.

◆ getDistXY()

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)

Parameters
[in]xx position
[in]yy position
[in]exx direction
[in]eyy direction

Definition at line 609 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitX, and _hitY.

Referenced by marlintpc::rb_Doublet::match().

◆ getDistZ()

double marlintpc::rb_Hit::getDistZ ( const double  z) const

Get distance to point in Z.

Parameters
[in]zz position

Definition at line 617 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitZ.

Referenced by marlintpc::rb_Doublet::match().

◆ getHitNum()

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().

◆ getMod()

int marlintpc::rb_Hit::getMod ( ) const

Get module number.

Definition at line 528 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitModule.

◆ getPhiMeas()

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().

◆ getPos()

void marlintpc::rb_Hit::getPos ( double *  position) const

Get position.

Parameters
[out]positionposition

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().

◆ getRow()

int marlintpc::rb_Hit::getRow ( ) const

◆ getUsed()

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().

◆ getVarXY()

double marlintpc::rb_Hit::getVarXY ( const double  der2 = 0.) const

Get XY variance.

Parameters
[in]der2derivative (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().

◆ getVarZ()

double marlintpc::rb_Hit::getVarZ ( const double  der2 = 0.) const

Get Z variance.

Parameters
[in]der2derivative (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().

◆ getX()

double marlintpc::rb_Hit::getX ( ) const

Get X coordinate.

Definition at line 538 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitX.

◆ getY()

double marlintpc::rb_Hit::getY ( ) const

Get Y coordinate.

Definition at line 543 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitY.

◆ getZ()

double marlintpc::rb_Hit::getZ ( ) const

Get Z coordinate.

Definition at line 548 of file RowTripletBasedTrackFinderProcessor.cc.

References _hitZ.

◆ print()

void marlintpc::rb_Hit::print ( ) const

◆ setUsed()

void marlintpc::rb_Hit::setUsed ( const double  cosb = 1.)

Set use flag.

Parameters
[in]cosbcos(beta)

Definition at line 592 of file RowTripletBasedTrackFinderProcessor.cc.

References _cosb, and _used.

Referenced by marlintpc::rb_Segment::addHit(), and marlintpc::rb_Segment::rb_Segment().

Member Data Documentation

◆ _cosb

double marlintpc::rb_Hit::_cosb
private

◆ _hitModule

const int marlintpc::rb_Hit::_hitModule
private

module number

Definition at line 147 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by _calcPhiMeas(), getMod(), and print().

◆ _hitNum

const int marlintpc::rb_Hit::_hitNum
private

input hit collection index

Definition at line 146 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getHitNum(), and print().

◆ _hitPhiMeas

const double marlintpc::rb_Hit::_hitPhiMeas
private

measurement direction in XY (tangential to row)

Definition at line 152 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by _getVarR(), _getVarXY(), getPhiMeas(), and print().

◆ _hitRow

const int marlintpc::rb_Hit::_hitRow
private

row number

Definition at line 148 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getRow(), and print().

◆ _hitVarR

const double marlintpc::rb_Hit::_hitVarR
private

variance in radial direction

Definition at line 154 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getVarXY(), and getVarZ().

◆ _hitVarXY

const double marlintpc::rb_Hit::_hitVarXY
private

variance for XY measurement

Definition at line 153 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getVarXY(), and print().

◆ _hitVarZ

const double marlintpc::rb_Hit::_hitVarZ
private

variance for Z measurement

Definition at line 155 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getVarZ(), and print().

◆ _hitX

const double marlintpc::rb_Hit::_hitX
private

X position.

Definition at line 149 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getDistXY(), getPos(), getX(), and print().

◆ _hitY

const double marlintpc::rb_Hit::_hitY
private

Y position.

Definition at line 150 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getDistXY(), getPos(), getY(), and print().

◆ _hitZ

const double marlintpc::rb_Hit::_hitZ
private

Z position.

Definition at line 151 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getDistZ(), getPos(), getZ(), and print().

◆ _used

bool marlintpc::rb_Hit::_used
private

used flag

Definition at line 156 of file RowTripletBasedTrackFinderProcessor.h.

Referenced by getUsed(), and setUsed().


The documentation for this class was generated from the following files: