ATLAS Offline Software
TgcDigitCrosstalkData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 {}
9 
10 void TgcDigitCrosstalkData::setStripProbability(const uint16_t layer_id, const std::array<float, N_PROB> prob)
11 {
12  m_stripProb.emplace(layer_id, prob);
13 }
14 
15 float TgcDigitCrosstalkData::getStripProbability(const uint16_t layer_id, const unsigned int index_prob) const
16 {
17  if (index_prob >= N_PROB) return 0.;
18  return m_stripProb.find(layer_id)->second[index_prob];
19 }
20 
21 void TgcDigitCrosstalkData::setWireProbability(const uint16_t layer_id, const std::array<float, N_PROB> prob)
22 {
23  m_wireProb.emplace(layer_id, prob);
24 }
25 
26 float TgcDigitCrosstalkData::getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const
27 {
28  if (index_prob >= N_PROB) return 0.;
29  return m_wireProb.find(layer_id)->second[index_prob];
30 }
TgcDigitCrosstalkData::setStripProbability
void setStripProbability(const uint16_t layer_id, const std::array< float, N_PROB > prob)
Definition: TgcDigitCrosstalkData.cxx:10
TgcDigitCrosstalkData::m_wireProb
std::map< uint16_t, std::array< float, N_PROB > > m_wireProb
Definition: TgcDigitCrosstalkData.h:37
TgcDigitCrosstalkData::setWireProbability
void setWireProbability(const uint16_t layer_id, const std::array< float, N_PROB > prob)
Definition: TgcDigitCrosstalkData.cxx:21
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
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
TgcDigitCrosstalkData::TgcDigitCrosstalkData
TgcDigitCrosstalkData()
Definition: TgcDigitCrosstalkData.cxx:7
TgcDigitCrosstalkData::N_PROB
static constexpr unsigned int N_PROB
Definition: TgcDigitCrosstalkData.h:27
TgcDigitCrosstalkData.h
TgcDigitCrosstalkData::getStripProbability
float getStripProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition: TgcDigitCrosstalkData.cxx:15
TgcDigitCrosstalkData::getWireProbability
float getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition: TgcDigitCrosstalkData.cxx:26