#include <LArBadFebBitPacking.h>
|
| typedef std::vector< PosType > | PosContainer |
| enum | ProblemType {
deadAllBit = 0
, deadReadoutBit = 1
, inErrorBit = 2
, deactivatedInOKSBit = 3
,
maskParity = 16
, maskBCID =17
, maskSampleHeader = 18
, maskEVTID = 19
,
maskScacStatus = 20
, maskScaOutOfRange = 21
, maskGainMismatch = 22
, maskTypeMismatch = 23
,
maskNumOfSamples = 24
, maskEmptyDataBlock = 25
, maskDspBlockSize = 26
, maskCheckSum = 27
,
maskMissingHeader = 28
, maskBadGain = 29
} |
| typedef unsigned int | PosType |
| typedef unsigned int | BitWord |
Definition at line 16 of file LArBadFebBitPacking.h.
◆ BitWord
◆ PosContainer
◆ PosType
◆ ProblemType
| Enumerator |
|---|
| deadAllBit | |
| deadReadoutBit | |
| inErrorBit | |
| deactivatedInOKSBit | |
| maskParity | |
| maskBCID | |
| maskSampleHeader | |
| maskEVTID | |
| maskScacStatus | |
| maskScaOutOfRange | |
| maskGainMismatch | |
| maskTypeMismatch | |
| maskNumOfSamples | |
| maskEmptyDataBlock | |
| maskDspBlockSize | |
| maskCheckSum | |
| maskMissingHeader | |
| maskBadGain | |
Definition at line 15 of file LArBadFebEnum.h.
◆ LArBadFebBitPacking()
| LArBadFebBitPacking::LArBadFebBitPacking |
( |
| ) |
|
Definition at line 8 of file LArBadFebBitPacking.cxx.
8 :
10{
11
30
33 }
34}
std::vector< int > m_index
std::vector< ProblemType > m_enumVec
void addBit(ProblemType pb, const std::string &name)
◆ addBit()
| void LArBadFebBitPacking::addBit |
( |
ProblemType | pb, |
|
|
const std::string & | name ) |
|
private |
Definition at line 36 of file LArBadFebBitPacking.cxx.
37{
41}
std::map< std::string, ProblemType > m_nameMap
std::vector< std::string > m_nameVec
◆ bitPosition()
◆ enumName()
◆ index()
◆ numberOfProblemTypes()
| int LArBadFebBitPacking::numberOfProblemTypes |
( |
| ) |
const |
|
inline |
◆ setBit() [1/4]
| bool LArBadFebBitPacking::setBit |
( |
const std::string & | name, |
|
|
BitWord & | word, |
|
|
bool | value = true ) const |
Definition at line 65 of file LArBadFebBitPacking.cxx.
67 {
71 return true;
72 }
73 else return false;
74 }
std::pair< std::vector< unsigned int >, bool > res
std::pair< bool, ProblemType > enumName(const std::string &str) const
void setBit(ProblemType pb, BitWord &word, bool value=true) const
◆ setBit() [2/4]
| bool LArBadFebBitPacking::setBit |
( |
const std::string & | name, |
|
|
LArBadFeb & | word, |
|
|
bool | value = true ) const |
◆ setBit() [3/4]
| void LArBadFebBitPacking::setBit |
( |
ProblemType | pb, |
|
|
BitWord & | word, |
|
|
bool | value = true ) const |
Definition at line 58 of file LArBadFebBitPacking.cxx.
58 {
61 if (value) word |=
mask;
62 else word &= ~mask;
63 }
PosType bitPosition(ProblemType pb) const
◆ setBit() [4/4]
◆ stringName()
| const std::string & LArBadFebBitPacking::stringName |
( |
ProblemType | pb | ) |
const |
◆ stringStatus()
| std::string LArBadFebBitPacking::stringStatus |
( |
const LArBadFeb & | bc | ) |
const |
Definition at line 86 of file LArBadFebBitPacking.cxx.
87 {
91 if (!
res.empty())
res +=
" ";
93 }
94 }
96 }
bool statusOK(ProblemType pb) const
Returns true if there is no problem in corresponding status bit.
◆ wordSize()
| PosType LArBadFebBitPacking::wordSize |
( |
| ) |
const |
|
inline |
◆ m_enumVec
| std::vector< ProblemType> LArBadFebBitPacking::m_enumVec |
|
private |
◆ m_index
| std::vector<int> LArBadFebBitPacking::m_index |
|
private |
◆ m_nameMap
| std::map<std::string, ProblemType> LArBadFebBitPacking::m_nameMap |
|
private |
◆ m_nameVec
| std::vector<std::string> LArBadFebBitPacking::m_nameVec |
|
private |
The documentation for this class was generated from the following files: