ATLAS Offline Software
Loading...
Searching...
No Matches
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
41
42#include "AthenaKernel/CondCont.h"
44
45#endif // MUONCONDDATA_TGCDIGITCROSSTALKDATA_H_
46
Provide an interface for finding inheritance information at run time.
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
void setStripProbability(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
std::map< uint16_t, std::array< float, N_PROB > > m_stripProb
void setWireProbability(const uint16_t layer_id, const std::array< float, N_PROB > prob)
virtual ~TgcDigitCrosstalkData()=default
static constexpr unsigned int N_PROB
float getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const
std::map< uint16_t, std::array< float, N_PROB > > m_wireProb