ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::ExtrapolationConfig Class Reference

#include <ExtrapolationCell.h>

Collaboration diagram for Trk::ExtrapolationConfig:

Public Member Functions

 ExtrapolationConfig (unsigned int evalue=0)
 Constructor.
 ExtrapolationConfig (const ExtrapolationConfig &eConfig)
 Copy Constructor.
void addMode (ExtrapolationMode::eMode em)
 add a configuration mode
bool checkMode (ExtrapolationMode::eMode em) const
 check the configuration mode

Private Attributes

unsigned int m_value

Detailed Description

  • this is a collection of extrapolation modes and a simple check

Definition at line 70 of file ExtrapolationCell.h.

Constructor & Destructor Documentation

◆ ExtrapolationConfig() [1/2]

Trk::ExtrapolationConfig::ExtrapolationConfig ( unsigned int evalue = 0)
inline

Constructor.

Definition at line 74 of file ExtrapolationCell.h.

75 : m_value(evalue)
76 {}

◆ ExtrapolationConfig() [2/2]

Trk::ExtrapolationConfig::ExtrapolationConfig ( const ExtrapolationConfig & eConfig)
inline

Copy Constructor.

Definition at line 79 of file ExtrapolationCell.h.

80 : m_value(eConfig.m_value)
81 {}

Member Function Documentation

◆ addMode()

void Trk::ExtrapolationConfig::addMode ( ExtrapolationMode::eMode em)
inline

add a configuration mode

Definition at line 84 of file ExtrapolationCell.h.

85 {
86 // set the bit corresponding to this mode
87 m_value |= (1 << int(em));
88 }

◆ checkMode()

bool Trk::ExtrapolationConfig::checkMode ( ExtrapolationMode::eMode em) const
inline

check the configuration mode

Definition at line 91 of file ExtrapolationCell.h.

92 {
93 // check if the bit is set or not
94 return (m_value & (1 << int(em)));
95 }

Member Data Documentation

◆ m_value

unsigned int Trk::ExtrapolationConfig::m_value
private

Definition at line 98 of file ExtrapolationCell.h.


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