NAIA  1.0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | Public Attributes | Private Attributes | List of all members
NAIA::TofBaseData Class Reference

Container class for base Tof info. More...

#include <Containers/Tof.h>

Inheritance diagram for NAIA::TofBaseData:
NAIA::TofBase NAIA::TofBaseStandalone

Public Member Functions

void Clear ()
 Clear container content. More...
 
void Dump () const
 Dump on screen container content. More...
 
TVector3 InterpolateAtZ (float z) const
 Get Tof track interpolation at given height. More...
 
const TVector3 & GetLinePoint () const
 Get the origin of the Tof clusters linear fit. More...
 
const TVector3 & GetLineDirection () const
 Get the direction of the Tof clusters linear fit. More...
 

Public Attributes

TofBetaVariable< float > Beta
 Beta measurement, one for each type. See Tof::BetaType for list of types. More...
 
TofChargeVariable< float > Charge
 Charge measurement obtained using only layers for which GoodPathl is true. One for each type. See Tof::ChargeType for list of types. More...
 
TofChargeVariable< float > ChargeNoPL
 Charge measurement obtained using every layer, regardless of GoodPathl. One for each type. See Tof::ChargeType for list of types. More...
 

Private Attributes

std::vector< TVector3 > m_pointAndDir
 
bool _isMC = false
 

Detailed Description

Container class for base Tof info.

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

Definition at line 46 of file Tof.h.

Member Function Documentation

void NAIA::TofBaseData::Clear ( )

Clear container content.

Definition at line 11 of file Tof.cpp.

References Beta, Charge, and m_pointAndDir.

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

void NAIA::TofBaseData::Dump ( ) const

Dump on screen container content.

Definition at line 46 of file Tof.cpp.

References Beta, NAIA::Tof::betaNames, NAIA::Tof::betaTypes, Charge, ChargeNoPL, NAIA::ContainsKeys(), NAIA::Tof::recoNames, and NAIA::Tof::recoTypes.

const TVector3& NAIA::TofBaseData::GetLineDirection ( ) const
inline

Get the direction of the Tof clusters linear fit.

Returns
const TVector3& direction

Definition at line 97 of file Tof.h.

References m_pointAndDir.

const TVector3& NAIA::TofBaseData::GetLinePoint ( ) const
inline

Get the origin of the Tof clusters linear fit.

Returns
const TVector3& origin

Definition at line 91 of file Tof.h.

References m_pointAndDir.

TVector3 NAIA::TofBaseData::InterpolateAtZ ( float  z) const

Get Tof track interpolation at given height.

Performed by simple linear interpolation given a linear fit to Tof cluster positions performed at production time

Parameters
zdesired height
Returns
TVector3 interpolated position

Definition at line 33 of file Tof.cpp.

References m_pointAndDir.

Member Data Documentation

bool NAIA::TofBaseData::_isMC = false
private

Definition at line 103 of file Tof.h.

TofBetaVariable<float> NAIA::TofBaseData::Beta

Beta measurement, one for each type. See Tof::BetaType for list of types.

Definition at line 49 of file Tof.h.

Referenced by NAIA::RichBaseData::BetaConsistencyTof(), Clear(), and Dump().

TofChargeVariable<float> NAIA::TofBaseData::Charge

Charge measurement obtained using only layers for which GoodPathl is true. One for each type. See Tof::ChargeType for list of types.

Definition at line 50 of file Tof.h.

Referenced by Clear(), and Dump().

TofChargeVariable<float> NAIA::TofBaseData::ChargeNoPL

Charge measurement obtained using every layer, regardless of GoodPathl. One for each type. See Tof::ChargeType for list of types.

Definition at line 51 of file Tof.h.

Referenced by Dump().

std::vector<TVector3> NAIA::TofBaseData::m_pointAndDir
private

Definition at line 101 of file Tof.h.

Referenced by Clear(), GetLineDirection(), GetLinePoint(), and InterpolateAtZ().


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