ATLAS Offline Software
TgcDigitCrosstalkData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCONDDATA_TGCDIGITCROSSTALKDATA_H_
6 #define MUONCONDDATA_TGCDIGITCROSSTALKDATA_H_
7 
10 #include <array>
11 #include <map>
12 
13 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
14  * stripProb : std::map<LayerId, strip_prob> *
15  * wireProb : std::map<LayerId, wire_prob> *
16  * where *
17  * LayerId = (station number, 41..48)<<5 + (station eta, 1..5)<<2 + (layer, 1..3) *
18  * strip(wire)_prob = std::array<float, 4> (prob10, prob11, prob20, prob21) *
19  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
20 
22 {
23  public:
25  virtual ~TgcDigitCrosstalkData() = default;
26 
27  static constexpr unsigned int N_PROB = 4;
28 
29  void setStripProbability(const uint16_t layer_id, const std::array<float, N_PROB> prob);
30  void setWireProbability(const uint16_t layer_id, const std::array<float, N_PROB> prob);
31 
32  float getStripProbability(const uint16_t layer_id, const unsigned int index_prob) const;
33  float getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const;
34 
35  private:
36  std::map<uint16_t, std::array<float, N_PROB>> m_stripProb;
37  std::map<uint16_t, std::array<float, N_PROB>> m_wireProb;
38 };
39 
40 CLASS_DEF(TgcDigitCrosstalkData, 13719396, 1)
41 
42 #include "AthenaKernel/CondCont.h"
44 
45 #endif // MUONCONDDATA_TGCDIGITCROSSTALKDATA_H_
46 
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
TgcDigitCrosstalkData
Definition: TgcDigitCrosstalkData.h:22
TgcDigitCrosstalkData::~TgcDigitCrosstalkData
virtual ~TgcDigitCrosstalkData()=default
covarianceTool.prob
prob
Definition: covarianceTool.py:678
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
BaseInfo.h
Provide an interface for finding inheritance information at run time.
TgcDigitCrosstalkData::TgcDigitCrosstalkData
TgcDigitCrosstalkData()
Definition: TgcDigitCrosstalkData.cxx:7
TgcDigitCrosstalkData::N_PROB
static constexpr unsigned int N_PROB
Definition: TgcDigitCrosstalkData.h:27
CondCont< TgcDigitCrosstalkData >
TgcDigitCrosstalkData::getStripProbability
float getStripProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition: TgcDigitCrosstalkData.cxx:15
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
CLASS_DEF.h
macros to associate a CLID to a type
TgcDigitCrosstalkData::getWireProbability
float getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition: TgcDigitCrosstalkData.cxx:26