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

Helper hit. More...

#include <GeneralBrokenLineInterfaceHelpers.h>

Public Member Functions

 gblHelperHit (const EVENT::TrackerHit &, const simpleHelix &, const bool, const bool, const int, const double)
 Construct helper hit from TrackerHit. More...
 
 gblHelperHit (const double)
 Construct helper hit for reference point. More...
 
TMatrixD getLocalToMeasurementProjection () const
 Get projection from local to measurement system. More...
 
TVectorD getResiduals () const
 Get residuals. More...
 
TMatrixDSym getPrecision () const
 Get precision. More...
 
double getS () const
 Get arc-length. More...
 
double getPhi () const
 Get phi (direction )of seed track. More...
 
double getEScaled () const
 Get scaled Edep. More...
 
bool isMeasurement () const
 Get measurement flag. More...
 
bool isValid () const
 Get flag for valid prediction. More...
 
unsigned int getNumGlobals () const
 Get number of global derivatives. More...
 
std::vector< int > getGlobalLabels () const
 Get labels for global derivatives. More...
 
const TMatrixD & getGlobalDerivatives () const
 Get global derivatives. More...
 

Private Member Functions

TMatrixD _getL2M ()
 Get transformation matrix. More...
 
TVectorD _getRes ()
 Get residuals (measurement - prediction) in measurement system. More...
 
TMatrixDSym _getPrec (FloatVec)
 Get precision ( = inverse variance) in measurement system. More...
 
double _calcLocalPhi (const EVENT::TrackerHit &, const bool, const double)
 Calculate local phi of hit. More...
 
double _calcEScaled (const EVENT::TrackerHit &)
 Calculate scaled Edep. More...
 

Private Attributes

const bool _isMeas
 flag for measurements (else reference point) More...
 
double _hitPhi
 phi of hit (with respect to module offset) More...
 
bool _isValid
 hit has valid prediction from track More...
 
double _seedPhi
 phi (XY direction) from seed track More...
 
double _seedLambda
 lambda (ZS direction) from seed track More...
 
double _xyPred
 XY residual (measurement - prediction) More...
 
double _zPred
 Z residual (measurement - prediction) More...
 
double _s
 arc-length More...
 
double _eScaled
 Edep scaled to relative RowHeights. More...
 
TMatrixD _l2M
 transformation from local to measurement system More...
 
TVectorD _res
 residual vector More...
 
TMatrixDSym _prec
 precision matrix More...
 
unsigned int _numGlobals
 number of global derivatives More...
 
std::vector< int > _globalLab
 labels for global derivatives More...
 
TMatrixD _globalDer
 global derivatives More...
 

Detailed Description

Helper hit.

Definition at line 27 of file GeneralBrokenLineInterfaceHelpers.h.

Constructor & Destructor Documentation

◆ gblHelperHit() [1/2]

marlintpc::gblHelperHit::gblHelperHit ( const EVENT::TrackerHit &  aHit,
const simpleHelix refHelix,
const bool  milleOut,
const bool  enMID,
const int  milleCalcMethod,
const double  phiSeed 
)

Construct helper hit from TrackerHit.

Parameters
[in]aHithit
[in]refHelixreference helix from seed track
[in]milleOutflag for output tp MP-II binary file
[in]enMIDmodule ID is encoded in CellID0
[in]milleCalcMethodselector for set of global derivatives
[in]phiSeedphi from seed

Definition at line 55 of file GeneralBrokenLineInterfaceHelpers.cc.

References _globalDer, _globalLab, _hitPhi, _numGlobals, _seedLambda, _seedPhi, marlintpc::trackerAlcaCalculator::calcDr(), marlintpc::trackerAlcaCalculator::calcHitCharge(), marlintpc::trackerAlcaCalculator::calcModuleAlignment(), marlintpc::trackerAlcaCalculator::calcTrackDistortions(), marlintpc::trackerAlcaCalculator::getGlobalDerivatives(), marlintpc::trackerAlcaCalculator::getGlobalLabels(), and marlintpc::trackerAlcaCalculator::getNumGlobals().

◆ gblHelperHit() [2/2]

marlintpc::gblHelperHit::gblHelperHit ( const double  phi)

Construct helper hit for reference point.

Parameters
[in]phiXY direction at reference point

Definition at line 100 of file GeneralBrokenLineInterfaceHelpers.cc.

References _isValid, _s, and _seedPhi.

Member Function Documentation

◆ _calcEScaled()

double marlintpc::gblHelperHit::_calcEScaled ( const EVENT::TrackerHit &  aHit)
private

Calculate scaled Edep.

Parameters
[in]aHithit

Definition at line 220 of file GeneralBrokenLineInterfaceHelpers.cc.

References _hitPhi, _seedLambda, and _seedPhi.

◆ _calcLocalPhi()

double marlintpc::gblHelperHit::_calcLocalPhi ( const EVENT::TrackerHit &  aHit,
const bool  encodedModuleID,
const double  phiTrack 
)
private

Calculate local phi of hit.

Parameters
[in]aHithit
[in]encodedModuleIDmodule ID is encoded in CellID0
[in]phiTrackphi from seed track

Definition at line 170 of file GeneralBrokenLineInterfaceHelpers.cc.

◆ _getL2M()

TMatrixD marlintpc::gblHelperHit::_getL2M ( )
private

Get transformation matrix.

Define projection matrix from local (curvilinear) system to measurement system (Pm = dm/du).

Definition at line 111 of file GeneralBrokenLineInterfaceHelpers.cc.

References _hitPhi, _seedLambda, and _seedPhi.

◆ _getPrec()

TMatrixDSym marlintpc::gblHelperHit::_getPrec ( FloatVec  covMatrix)
private

Get precision ( = inverse variance) in measurement system.

Parameters
[in]covMatrixcovariance matrix of hit (position) (upper triangle)

Definition at line 130 of file GeneralBrokenLineInterfaceHelpers.cc.

References _hitPhi, _seedLambda, and _seedPhi.

◆ _getRes()

TVectorD marlintpc::gblHelperHit::_getRes ( )
private

Get residuals (measurement - prediction) in measurement system.

Definition at line 156 of file GeneralBrokenLineInterfaceHelpers.cc.

References _xyPred, and _zPred.

◆ getEScaled()

double marlintpc::gblHelperHit::getEScaled ( ) const
inline

◆ getGlobalDerivatives()

const TMatrixD & marlintpc::gblHelperHit::getGlobalDerivatives ( ) const

◆ getGlobalLabels()

std::vector< int > marlintpc::gblHelperHit::getGlobalLabels ( ) const

◆ getLocalToMeasurementProjection()

TMatrixD marlintpc::gblHelperHit::getLocalToMeasurementProjection ( ) const
inline

◆ getNumGlobals()

unsigned int marlintpc::gblHelperHit::getNumGlobals ( ) const

◆ getPhi()

double marlintpc::gblHelperHit::getPhi ( ) const
inline

Get phi (direction )of seed track.

Definition at line 53 of file GeneralBrokenLineInterfaceHelpers.h.

References _seedPhi.

Referenced by marlintpc::SimpleHelixGeneralBrokenLineInterfaceProcessor::processEvent().

◆ getPrecision()

TMatrixDSym marlintpc::gblHelperHit::getPrecision ( ) const
inline

◆ getResiduals()

TVectorD marlintpc::gblHelperHit::getResiduals ( ) const
inline

◆ getS()

double marlintpc::gblHelperHit::getS ( ) const
inline

Get arc-length.

Definition at line 48 of file GeneralBrokenLineInterfaceHelpers.h.

References _s.

Referenced by marlintpc::SimpleHelixGeneralBrokenLineInterfaceProcessor::processEvent().

◆ isMeasurement()

bool marlintpc::gblHelperHit::isMeasurement ( ) const
inline

◆ isValid()

bool marlintpc::gblHelperHit::isValid ( ) const
inline

Member Data Documentation

◆ _eScaled

double marlintpc::gblHelperHit::_eScaled
private

Edep scaled to relative RowHeights.

Definition at line 86 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by getEScaled().

◆ _globalDer

TMatrixD marlintpc::gblHelperHit::_globalDer
private

global derivatives

Definition at line 98 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by gblHelperHit(), and getGlobalDerivatives().

◆ _globalLab

std::vector<int> marlintpc::gblHelperHit::_globalLab
private

labels for global derivatives

Definition at line 97 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by gblHelperHit(), and getGlobalLabels().

◆ _hitPhi

double marlintpc::gblHelperHit::_hitPhi
private

phi of hit (with respect to module offset)

Definition at line 79 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by _calcEScaled(), _getL2M(), _getPrec(), and gblHelperHit().

◆ _isMeas

const bool marlintpc::gblHelperHit::_isMeas
private

flag for measurements (else reference point)

Definition at line 78 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by isMeasurement().

◆ _isValid

bool marlintpc::gblHelperHit::_isValid
private

hit has valid prediction from track

Definition at line 80 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by gblHelperHit(), and isValid().

◆ _l2M

TMatrixD marlintpc::gblHelperHit::_l2M
private

transformation from local to measurement system

Definition at line 87 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by getLocalToMeasurementProjection().

◆ _numGlobals

unsigned int marlintpc::gblHelperHit::_numGlobals
private

number of global derivatives

Definition at line 96 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by gblHelperHit(), and getNumGlobals().

◆ _prec

TMatrixDSym marlintpc::gblHelperHit::_prec
private

precision matrix

Definition at line 91 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by getPrecision().

◆ _res

TVectorD marlintpc::gblHelperHit::_res
private

residual vector

Definition at line 89 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by getResiduals().

◆ _s

double marlintpc::gblHelperHit::_s
private

arc-length

Definition at line 85 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by gblHelperHit(), and getS().

◆ _seedLambda

double marlintpc::gblHelperHit::_seedLambda
private

lambda (ZS direction) from seed track

Definition at line 82 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by _calcEScaled(), _getL2M(), _getPrec(), and gblHelperHit().

◆ _seedPhi

double marlintpc::gblHelperHit::_seedPhi
private

phi (XY direction) from seed track

Definition at line 81 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by _calcEScaled(), _getL2M(), _getPrec(), gblHelperHit(), and getPhi().

◆ _xyPred

double marlintpc::gblHelperHit::_xyPred
private

XY residual (measurement - prediction)

Definition at line 83 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by _getRes().

◆ _zPred

double marlintpc::gblHelperHit::_zPred
private

Z residual (measurement - prediction)

Definition at line 84 of file GeneralBrokenLineInterfaceHelpers.h.

Referenced by _getRes().


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