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

Container class for base unbiased external hits info. More...

#include <Containers/UnbExtHit.h>

Inheritance diagram for NAIA::UnbExtHitBaseData:
NAIA::UnbExtHitBase

Classes

struct  HitData
 needed to get basic info without computing twice More...
 

Public Types

enum  ExtHit : char { ExtHit::L1 = 0, ExtHit::L9 = 1 }
 Handy enum to distinguish L1 and L9. More...
 

Public Member Functions

void Clear ()
 Clear container content. More...
 
void Dump () const
 Dump on screen container content. More...
 
bool IsHitPresent (ExtHit hit) const
 Checks if there is a hit on required layer. More...
 
int ChargeStatus (ExtHit hit)
 Get the charge status for required hit. More...
 
float HitPosX (ExtHit hit)
 Hit position, X side. More...
 
float HitPosY (ExtHit hit)
 Hit position, Y side. More...
 
float Charge (ExtHit hit, TrTrack::ChargeRecoType chType)
 Hit charge. More...
 

Public Attributes

const TofBaseDatatofBase = nullptr
 
const TrdKBaseDatatrdBase = nullptr
 needed to get basic info without computing twice More...
 

Private Attributes

bool _isMC = false
 
float _beta = 1.0f
 
std::map< ExtHit, HitDatam_hits
 

Detailed Description

Container class for base unbiased external hits info.

Definition at line 36 of file UnbExtHit.h.

Member Enumeration Documentation

enum NAIA::UnbExtHitBaseData::ExtHit : char
strong

Handy enum to distinguish L1 and L9.

Enumerator
L1 
L9 

Definition at line 42 of file UnbExtHit.h.

Member Function Documentation

float NAIA::UnbExtHitBaseData::Charge ( ExtHit  hit,
TrTrack::ChargeRecoType  chType 
)
inline

Hit charge.

Parameters
hithit type: L1 or L9
chTypecharge reconstruction type. See TrTrack::ChargeRecoType for available types.
Returns
charge

Definition at line 101 of file UnbExtHit.h.

References m_hits.

int NAIA::UnbExtHitBaseData::ChargeStatus ( ExtHit  hit)
inline

Get the charge status for required hit.

Parameters
hithit type: L1 or L9
Returns
The charge status word

Definition at line 76 of file UnbExtHit.h.

References m_hits.

void NAIA::UnbExtHitBaseData::Clear ( )

Clear container content.

Definition at line 9 of file UnbExtHit.cpp.

References _beta, and m_hits.

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

void NAIA::UnbExtHitBaseData::Dump ( ) const
float NAIA::UnbExtHitBaseData::HitPosX ( ExtHit  hit)
inline

Hit position, X side.

Parameters
hithit type: L1 or L9
Returns
X position

Definition at line 84 of file UnbExtHit.h.

References m_hits.

float NAIA::UnbExtHitBaseData::HitPosY ( ExtHit  hit)
inline

Hit position, Y side.

Parameters
hithit type: L1 or L9
Returns
Y position

Definition at line 92 of file UnbExtHit.h.

References m_hits.

bool NAIA::UnbExtHitBaseData::IsHitPresent ( ExtHit  hit) const
inline

Checks if there is a hit on required layer.

Parameters
hithit type: L1 or L9

Definition at line 68 of file UnbExtHit.h.

References NAIA::end(), and m_hits.

Member Data Documentation

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

Definition at line 117 of file UnbExtHit.h.

Referenced by Clear().

bool NAIA::UnbExtHitBaseData::_isMC = false
private

Definition at line 116 of file UnbExtHit.h.

std::map<ExtHit, HitData> NAIA::UnbExtHitBaseData::m_hits
private

Definition at line 119 of file UnbExtHit.h.

Referenced by Charge(), ChargeStatus(), Clear(), Dump(), HitPosX(), HitPosY(), and IsHitPresent().

const TofBaseData* NAIA::UnbExtHitBaseData::tofBase = nullptr

Definition at line 103 of file UnbExtHit.h.

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

const TrdKBaseData* NAIA::UnbExtHitBaseData::trdBase = nullptr

needed to get basic info without computing twice

Definition at line 104 of file UnbExtHit.h.

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


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