ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondData
MuonCondData
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
8
#include "
AthenaKernel/BaseInfo.h
"
9
#include "
AthenaKernel/CLASS_DEF.h
"
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
21
class
TgcDigitCrosstalkData
22
{
23
public
:
24
TgcDigitCrosstalkData
();
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"
43
CLASS_DEF
(
CondCont<TgcDigitCrosstalkData>
, 247967934, 1)
44
45
#endif
// MUONCONDDATA_TGCDIGITCROSSTALKDATA_H_
46
BaseInfo.h
Provide an interface for finding inheritance information at run time.
CLASS_DEF.h
macros to associate a CLID to a type
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:67
CondCont
Hold mapping of ranges to condition objects.
Definition
CondCont.h:889
TgcDigitCrosstalkData
Definition
TgcDigitCrosstalkData.h:22
TgcDigitCrosstalkData::setStripProbability
void setStripProbability(const uint16_t layer_id, const std::array< float, N_PROB > prob)
Definition
TgcDigitCrosstalkData.cxx:10
TgcDigitCrosstalkData::getStripProbability
float getStripProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition
TgcDigitCrosstalkData.cxx:15
TgcDigitCrosstalkData::TgcDigitCrosstalkData
TgcDigitCrosstalkData()
Definition
TgcDigitCrosstalkData.cxx:7
TgcDigitCrosstalkData::m_stripProb
std::map< uint16_t, std::array< float, N_PROB > > m_stripProb
Definition
TgcDigitCrosstalkData.h:36
TgcDigitCrosstalkData::setWireProbability
void setWireProbability(const uint16_t layer_id, const std::array< float, N_PROB > prob)
Definition
TgcDigitCrosstalkData.cxx:23
TgcDigitCrosstalkData::~TgcDigitCrosstalkData
virtual ~TgcDigitCrosstalkData()=default
TgcDigitCrosstalkData::N_PROB
static constexpr unsigned int N_PROB
Definition
TgcDigitCrosstalkData.h:27
TgcDigitCrosstalkData::getWireProbability
float getWireProbability(const uint16_t layer_id, const unsigned int index_prob) const
Definition
TgcDigitCrosstalkData.cxx:28
TgcDigitCrosstalkData::m_wireProb
std::map< uint16_t, std::array< float, N_PROB > > m_wireProb
Definition
TgcDigitCrosstalkData.h:37
Generated on
for ATLAS Offline Software by
1.17.0