ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
TgcDigitCrosstalkData Class Reference

#include <TgcDigitCrosstalkData.h>

Collaboration diagram for TgcDigitCrosstalkData:

Public Member Functions

 TgcDigitCrosstalkData ()
 
virtual ~TgcDigitCrosstalkData ()=default
 
void setStripProbability (const uint16_t layer_id, const std::array< float, N_PROB > prob)
 
void setWireProbability (const uint16_t layer_id, const std::array< float, N_PROB > prob)
 
float getStripProbability (const uint16_t layer_id, const unsigned int index_prob) const
 
float getWireProbability (const uint16_t layer_id, const unsigned int index_prob) const
 

Static Public Attributes

static constexpr unsigned int N_PROB = 4
 

Private Attributes

std::map< uint16_t, std::array< float, N_PROB > > m_stripProb
 
std::map< uint16_t, std::array< float, N_PROB > > m_wireProb
 

Detailed Description

Definition at line 21 of file TgcDigitCrosstalkData.h.

Constructor & Destructor Documentation

◆ TgcDigitCrosstalkData()

TgcDigitCrosstalkData::TgcDigitCrosstalkData ( )

Definition at line 7 of file TgcDigitCrosstalkData.cxx.

8 {}

◆ ~TgcDigitCrosstalkData()

virtual TgcDigitCrosstalkData::~TgcDigitCrosstalkData ( )
virtualdefault

Member Function Documentation

◆ getStripProbability()

float TgcDigitCrosstalkData::getStripProbability ( const uint16_t  layer_id,
const unsigned int  index_prob 
) const

Definition at line 15 of file TgcDigitCrosstalkData.cxx.

16 {
17  if (index_prob >= N_PROB) return 0.;
18  return m_stripProb.find(layer_id)->second[index_prob];
19 }

◆ getWireProbability()

float TgcDigitCrosstalkData::getWireProbability ( const uint16_t  layer_id,
const unsigned int  index_prob 
) const

Definition at line 26 of file TgcDigitCrosstalkData.cxx.

27 {
28  if (index_prob >= N_PROB) return 0.;
29  return m_wireProb.find(layer_id)->second[index_prob];
30 }

◆ setStripProbability()

void TgcDigitCrosstalkData::setStripProbability ( const uint16_t  layer_id,
const std::array< float, N_PROB prob 
)

Definition at line 10 of file TgcDigitCrosstalkData.cxx.

11 {
12  m_stripProb.emplace(layer_id, prob);
13 }

◆ setWireProbability()

void TgcDigitCrosstalkData::setWireProbability ( const uint16_t  layer_id,
const std::array< float, N_PROB prob 
)

Definition at line 21 of file TgcDigitCrosstalkData.cxx.

22 {
23  m_wireProb.emplace(layer_id, prob);
24 }

Member Data Documentation

◆ m_stripProb

std::map<uint16_t, std::array<float, N_PROB> > TgcDigitCrosstalkData::m_stripProb
private

Definition at line 36 of file TgcDigitCrosstalkData.h.

◆ m_wireProb

std::map<uint16_t, std::array<float, N_PROB> > TgcDigitCrosstalkData::m_wireProb
private

Definition at line 37 of file TgcDigitCrosstalkData.h.

◆ N_PROB

constexpr unsigned int TgcDigitCrosstalkData::N_PROB = 4
staticconstexpr

Definition at line 27 of file TgcDigitCrosstalkData.h.


The documentation for this class was generated from the following files:
TgcDigitCrosstalkData::m_wireProb
std::map< uint16_t, std::array< float, N_PROB > > m_wireProb
Definition: TgcDigitCrosstalkData.h:37
TgcDigitCrosstalkData::m_stripProb
std::map< uint16_t, std::array< float, N_PROB > > m_stripProb
Definition: TgcDigitCrosstalkData.h:36
covarianceTool.prob
prob
Definition: covarianceTool.py:678
TgcDigitCrosstalkData::N_PROB
static constexpr unsigned int N_PROB
Definition: TgcDigitCrosstalkData.h:27