NAIA  1.1.0
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
NAIA::TrTrackBaseData Class Reference

Container class for base TrTrack info. More...

#include <Containers/TrTrack.h>

Inheritance diagram for NAIA::TrTrackBaseData:
NAIA::SecondTrTrackBase NAIA::TrTrackBase NAIA::TrTrackBaseStandalone

Public Member Functions

void Clear ()
 Clear container content. More...
 
void Dump () const
 Dump on screen container content. More...
 
TrTrack::Span GetBestSpan (TrTrack::Fit fit=TrTrack::Fit::Choutko) const
 Get the best Span available for this track. More...
 
bool FitIDExists (TrTrack::Fit fit, TrTrack::Span span) const
 Check if a given combination of fit and span is available for this track. More...
 
LayerVariable< HitClusterAssociationGetTrackPattern () const
 Get the track pattern for a given tracker side. One bit per layer, set to 1 if there is a hit on that layer on that side. You can also get the total number of hits using std::bitset::count. More...
 

Public Attributes

LayerVariable< std::array< float, 3 > > TrTrackHitPos
 X,Y and Z position of hit on each layer, if available. More...
 
TrackFitVariable< float > Rigidity
 Track rigidity, corrected for time-dependent rigidity scale shifts and geometry volume correction, for each available fit and span. See TrTrack::Fit and TrTrack::Span for available fits and spans. More...
 
TrackFitVariable< TrackSideVariable< float > > TrChiSq
 Normalized track chi-square (X and Y) for each available fit and span. See TrTrack::Fit and TrTrack::Span for available fits and spans. More...
 
TrackFitPosVariable< TrackFitVariable< TrackSideVariable< float > > > TrTrackFitPos
 Track X and Y position at different heights in AMS and for each available fit and span. See TrTrack::FitPositionHeight for available heigths and TrTrack::Fit and TrTrack::Span for available fits and spans. More...
 
TrackChargeVariable< float > Charge
 Track charge (including external layers) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions. More...
 
TrackChargeVariable< float > InnerCharge
 Track charge (inner tracker only) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions. More...
 
TrackChargeVariable< float > ChargeRMS
 Track charge RMS (including external layers) for each charge reconstruction. See TrTrack::ChargeRecoType for available reconstructions. More...
 
TrackChargeVariable< float > InnerChargeRMS
 Track charge RMS (inner tracker only) for each charge reconstruction. See TrTrack::ChargeRecoType for available reconstructions. More...
 
LayerVariable< int > LayerChargeStatus
 Track hit charge reconstruction status for each layer (this is a bitmask. Bits 0-11 refer to the X-side cluster, bits 12-23 refer to the Y-side cluster. See TrClusterR::GetQStatus for a summary of all bit flags) More...
 
LayerVariable< TrackChargeVariable< float > > LayerChargeXY
 Track hit charge (for each single layer, using both sides clusters) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions. More...
 
float FitCharge
 Initial charge estimate used for track re-fitting. More...
 

Private Attributes

uint32_t m_trackPattern {0}
 
bool _isMC = false
 
float _beta = 1.0f
 
TrackFitVariable< int > _fit_ID
 
int _tmpCharge = 1
 

Friends

class TrdKBaseData
 
class TrTrackPlusData
 

Detailed Description

Container class for base TrTrack info.

This class holds the Tracker variables which are likely to be accessed more frequently.

Definition at line 64 of file TrTrack.h.

Member Function Documentation

◆ Clear()

void NAIA::TrTrackBaseData::Clear ( )

Clear container content.

Definition at line 27 of file TrTrack.cpp.

Referenced by NAIA::Event::Clear().

◆ Dump()

void NAIA::TrTrackBaseData::Dump ( ) const

Dump on screen container content.

Definition at line 73 of file TrTrack.cpp.

References NAIA::ContainsKeys(), NAIA::TrTrack::fitNames, NAIA::TrTrack::recoTypes, NAIA::TrTrack::spanNames, NAIA::TrTrack::X, and NAIA::TrTrack::Y.

◆ FitIDExists()

bool NAIA::TrTrackBaseData::FitIDExists ( TrTrack::Fit  fit,
TrTrack::Span  span 
) const

Check if a given combination of fit and span is available for this track.

Parameters
fitThe fit algorithm. See TrTrack::Fit for a list of available fit types.
spanThe desired span. See TrTrack::Span for a list of available span types.

Definition at line 14 of file TrTrack.cpp.

References NAIA::end().

◆ GetBestSpan()

Span NAIA::TrTrackBaseData::GetBestSpan ( TrTrack::Fit  fit = TrTrack::Fit::Choutko) const

Get the best Span available for this track.

Parameters
fitThe fit algorithm. See TrTrack::Fit for a list of available fit types.
Returns
TrTrack::Span value

Definition at line 18 of file TrTrack.cpp.

References NAIA::TrTrack::FullSpan, NAIA::TrTrack::InnerL1, NAIA::TrTrack::InnerL9, and NAIA::TrTrack::InnerOnly.

◆ GetTrackPattern()

LayerVariable< HitClusterAssociation > NAIA::TrTrackBaseData::GetTrackPattern ( ) const

Get the track pattern for a given tracker side. One bit per layer, set to 1 if there is a hit on that layer on that side. You can also get the total number of hits using std::bitset::count.

Returns
An array with one entry per layer, where the cluster type is represented by the HitClusterAssociation enum..

Definition at line 198 of file TrTrack.cpp.

Friends And Related Function Documentation

◆ TrdKBaseData

friend class TrdKBaseData
friend

Definition at line 65 of file TrTrack.h.

◆ TrTrackPlusData

friend class TrTrackPlusData
friend

Definition at line 66 of file TrTrack.h.

Member Data Documentation

◆ _beta

float NAIA::TrTrackBaseData::_beta = 1.0f
private

Definition at line 141 of file TrTrack.h.

◆ _fit_ID

TrackFitVariable<int> NAIA::TrTrackBaseData::_fit_ID
private

Definition at line 142 of file TrTrack.h.

◆ _isMC

bool NAIA::TrTrackBaseData::_isMC = false
private

Definition at line 140 of file TrTrack.h.

◆ _tmpCharge

int NAIA::TrTrackBaseData::_tmpCharge = 1
private

Definition at line 143 of file TrTrack.h.

◆ Charge

TrackChargeVariable<float> NAIA::TrTrackBaseData::Charge

Track charge (including external layers) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions.

Definition at line 79 of file TrTrack.h.

◆ ChargeRMS

TrackChargeVariable<float> NAIA::TrTrackBaseData::ChargeRMS

Track charge RMS (including external layers) for each charge reconstruction. See TrTrack::ChargeRecoType for available reconstructions.

Definition at line 81 of file TrTrack.h.

◆ FitCharge

float NAIA::TrTrackBaseData::FitCharge

Initial charge estimate used for track re-fitting.

Definition at line 86 of file TrTrack.h.

◆ InnerCharge

TrackChargeVariable<float> NAIA::TrTrackBaseData::InnerCharge

Track charge (inner tracker only) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions.

Definition at line 80 of file TrTrack.h.

◆ InnerChargeRMS

TrackChargeVariable<float> NAIA::TrTrackBaseData::InnerChargeRMS

Track charge RMS (inner tracker only) for each charge reconstruction. See TrTrack::ChargeRecoType for available reconstructions.

Definition at line 82 of file TrTrack.h.

◆ LayerChargeStatus

LayerVariable<int> NAIA::TrTrackBaseData::LayerChargeStatus

Track hit charge reconstruction status for each layer (this is a bitmask. Bits 0-11 refer to the X-side cluster, bits 12-23 refer to the Y-side cluster. See TrClusterR::GetQStatus for a summary of all bit flags)

Definition at line 83 of file TrTrack.h.

◆ LayerChargeXY

LayerVariable<TrackChargeVariable<float> > NAIA::TrTrackBaseData::LayerChargeXY

Track hit charge (for each single layer, using both sides clusters) for each available reconstruction. See TrTrack::ChargeRecoType for available reconstructions.

Definition at line 84 of file TrTrack.h.

◆ m_trackPattern

uint32_t NAIA::TrTrackBaseData::m_trackPattern {0}
private

Definition at line 138 of file TrTrack.h.

◆ Rigidity

TrackFitVariable<float> NAIA::TrTrackBaseData::Rigidity

Track rigidity, corrected for time-dependent rigidity scale shifts and geometry volume correction, for each available fit and span. See TrTrack::Fit and TrTrack::Span for available fits and spans.

Definition at line 74 of file TrTrack.h.

◆ TrChiSq

TrackFitVariable<TrackSideVariable<float> > NAIA::TrTrackBaseData::TrChiSq

Normalized track chi-square (X and Y) for each available fit and span. See TrTrack::Fit and TrTrack::Span for available fits and spans.

Definition at line 75 of file TrTrack.h.

◆ TrTrackFitPos

TrackFitPosVariable<TrackFitVariable<TrackSideVariable<float> > > NAIA::TrTrackBaseData::TrTrackFitPos

Track X and Y position at different heights in AMS and for each available fit and span. See TrTrack::FitPositionHeight for available heigths and TrTrack::Fit and TrTrack::Span for available fits and spans.

Definition at line 76 of file TrTrack.h.

◆ TrTrackHitPos

LayerVariable<std::array<float, 3> > NAIA::TrTrackBaseData::TrTrackHitPos

X,Y and Z position of hit on each layer, if available.

Definition at line 71 of file TrTrack.h.


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