ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileCalib
TileCalibBlobObjs
TileCalibBlobObjs
TileBchDecoder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILECALIBBLOBOBJS_TILEBCHDECODER_H
6
#define TILECALIBBLOBOBJS_TILEBCHDECODER_H
7
25
26
#include <stdint.h>
27
#include <vector>
28
#include <set>
29
#include <map>
30
#include <string>
31
#include <iostream>
32
#include "
TileCalibBlobObjs/TileBchPrbs.h
"
33
#include "
TileCalibBlobObjs/TileBchStatus.h
"
34
#include "
TileCalibBlobObjs/TileBchWords.h
"
35
36
class
TileBchDecoder
37
{
38
public
:
39
40
enum
BitPatVer
{
41
BitPat_ofl01
,
42
BitPat_onl01
,
43
MaxVersion
44
};
45
47
TileBchDecoder
(
BitPatVer
bitPatVer);
48
50
void
printBitAssignment
()
const
{
printBitAssignment
(std::cout); }
53
void
printBitAssignment
(std::ostream& stm)
const
;
54
56
TileBchStatus
decode
(uint32_t status_channel, uint32_t status_adc=0)
const
;
57
59
TileBchStatus
decode
(
const
TileBchWords
& words)
const
60
{
return
decode
(words[0],words[1]); }
61
68
TileBchWords
encode
(
const
TileBchStatus
& status)
const
;
69
70
private
:
71
73
void
init_BitPat_ofl01
();
75
void
init_BitPat_onl01
();
76
77
79
void
initPrbToBit
();
80
82
std::vector<TileBchPrbs::Prb>
m_bitToPrbChn
;
84
std::vector<TileBchPrbs::Prb>
m_bitToPrbAdc
;
88
std::map<TileBchPrbs::Prb, std::pair<unsigned int,unsigned int> >
m_prbToBit
;
89
};
90
91
#endif
TileBchPrbs.h
TileBchStatus.h
TileBchWords.h
TileBchDecoder::init_BitPat_ofl01
void init_BitPat_ofl01()
Initializes bit pattern version "ofl01".
Definition
TileBchDecoder.cxx:61
TileBchDecoder::decode
TileBchStatus decode(uint32_t status_channel, uint32_t status_adc=0) const
Decode the status word.
Definition
TileBchDecoder.cxx:22
TileBchDecoder::m_bitToPrbChn
std::vector< TileBchPrbs::Prb > m_bitToPrbChn
Bit to problem association for the channel word.
Definition
TileBchDecoder.h:82
TileBchDecoder::printBitAssignment
void printBitAssignment() const
Print status bits and their assigned problem.
Definition
TileBchDecoder.h:50
TileBchDecoder::TileBchDecoder
TileBchDecoder(BitPatVer bitPatVer)
Ctor.
Definition
TileBchDecoder.cxx:10
TileBchDecoder::encode
TileBchWords encode(const TileBchStatus &status) const
Encode an ADC status into channel and adc status word bits.
Definition
TileBchDecoder.cxx:40
TileBchDecoder::decode
TileBchStatus decode(const TileBchWords &words) const
Decode the status word.
Definition
TileBchDecoder.h:59
TileBchDecoder::init_BitPat_onl01
void init_BitPat_onl01()
Initializes bit pattern version "ofl01".
Definition
TileBchDecoder.cxx:117
TileBchDecoder::m_bitToPrbAdc
std::vector< TileBchPrbs::Prb > m_bitToPrbAdc
Bit to problem association for the ADC word.
Definition
TileBchDecoder.h:84
TileBchDecoder::BitPatVer
BitPatVer
Definition
TileBchDecoder.h:40
TileBchDecoder::MaxVersion
@ MaxVersion
Definition
TileBchDecoder.h:43
TileBchDecoder::BitPat_onl01
@ BitPat_onl01
Definition
TileBchDecoder.h:42
TileBchDecoder::BitPat_ofl01
@ BitPat_ofl01
Definition
TileBchDecoder.h:41
TileBchDecoder::initPrbToBit
void initPrbToBit()
Initializes the problem to bit map.
Definition
TileBchDecoder.cxx:146
TileBchDecoder::m_prbToBit
std::map< TileBchPrbs::Prb, std::pair< unsigned int, unsigned int > > m_prbToBit
Problem to status word and bit association.
Definition
TileBchDecoder.h:88
TileBchStatus
Class holding bad channel problems.
Definition
TileBchStatus.h:20
TileBchWords
Definition
TileBchWords.h:12
Generated on
for ATLAS Offline Software by
1.17.0