NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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...
 
std::bitset< 9 > GetTrackPattern (TrTrack::Side side)
 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

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 62 of file TrTrack.h.

Member Function Documentation

void NAIA::TrTrackBaseData::Clear ( )

Clear container content.

Definition at line 27 of file TrTrack.cpp.

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

void NAIA::TrTrackBaseData::Dump ( ) const

Dump on screen container content.

Definition at line 71 of file TrTrack.cpp.

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

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

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.

std::bitset< 9 > NAIA::TrTrackBaseData::GetTrackPattern ( TrTrack::Side  side)

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.

Parameters
sideThe tracker side to check
Returns
A std::bitset with one bit per layer, set to 1 if there is a hit on that layer on that side.

Definition at line 196 of file TrTrack.cpp.

References NAIA::ContainsKeys().

Friends And Related Function Documentation

friend class TrdKBaseData
friend

Definition at line 63 of file TrTrack.h.

friend class TrTrackPlusData
friend

Definition at line 64 of file TrTrack.h.

Member Data Documentation

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

Definition at line 137 of file TrTrack.h.

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

Definition at line 138 of file TrTrack.h.

bool NAIA::TrTrackBaseData::_isMC = false
private

Definition at line 136 of file TrTrack.h.

int NAIA::TrTrackBaseData::_tmpCharge = 1
private

Definition at line 139 of file TrTrack.h.

TrackChargeVariable<float> NAIA::TrTrackBaseData::Charge

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

Definition at line 77 of file TrTrack.h.

TrackChargeVariable<float> NAIA::TrTrackBaseData::ChargeRMS

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

Definition at line 79 of file TrTrack.h.

float NAIA::TrTrackBaseData::FitCharge

Initial charge estimate used for track re-fitting.

Definition at line 84 of file TrTrack.h.

TrackChargeVariable<float> NAIA::TrTrackBaseData::InnerCharge

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

Definition at line 78 of file TrTrack.h.

TrackChargeVariable<float> NAIA::TrTrackBaseData::InnerChargeRMS

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

Definition at line 80 of file TrTrack.h.

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 81 of file TrTrack.h.

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 82 of file TrTrack.h.

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 72 of file TrTrack.h.

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 73 of file TrTrack.h.

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 74 of file TrTrack.h.

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

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

Definition at line 69 of file TrTrack.h.


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