ChanCalibErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanErrorCode.h.
More...
#include <ChanCalibErrorCode.h>
|
| enum | ChanErrorCodeBits {
NoDataBit =0
, BadDataBit =1
, BadResultBit =2
, DacScanBadSlopeBit =4
,
DacScanBadOffsetBit =5
, DacScanBadCorrCoeffBit =6
, DacScanBadAdcDistribBit =7
, PedRunBadMeanBit =4
,
PedRunBadSigmaBit =5
, PedRunBadAdcDistribBit =6
, Phos4ScanNoSignalBit =4
, Phos4ScanBadSignalBit =5
,
Phos4ScanBadWidthBit =6
, Phos4ScanBadRiseTimeBit =7
, Phos4ScanBadAdcDistribBit =8
, Phos4ScanBadSignalShapeBit =9
,
Phos4ScanSignalSaturatedBit =10
, TotalWindowSizeUndercutBit =5
, DistToErrorRegionUndercutBit =6
, ExceededDelayBit =7
,
ExceededDelayAfterCorrBit =8
} |
| enum | ChanErrorComponent {
DacScan =0
, PedestalRun =1
, CoarseTiming =2
, Phos4Scan =3
,
SatBcidValues =4
, FirFilterValues =5
, LutValues =6
} |
| enum | ChanErrorSet { PPM =0
, CPM =1
, JEM =2
, CMM =3
} |
ChanCalibErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanErrorCode.h.
- Author
- Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch
Definition at line 20 of file ChanCalibErrorCode.h.
◆ ChanErrorCodeBits
| Enumerator |
|---|
| NoDataBit | |
| BadDataBit | |
| BadResultBit | |
| DacScanBadSlopeBit | |
| DacScanBadOffsetBit | |
| DacScanBadCorrCoeffBit | |
| DacScanBadAdcDistribBit | |
| PedRunBadMeanBit | |
| PedRunBadSigmaBit | |
| PedRunBadAdcDistribBit | |
| Phos4ScanNoSignalBit | |
| Phos4ScanBadSignalBit | |
| Phos4ScanBadWidthBit | |
| Phos4ScanBadRiseTimeBit | |
| Phos4ScanBadAdcDistribBit | |
| Phos4ScanBadSignalShapeBit | |
| Phos4ScanSignalSaturatedBit | |
| TotalWindowSizeUndercutBit | |
| DistToErrorRegionUndercutBit | |
| ExceededDelayBit | |
| ExceededDelayAfterCorrBit | |
Definition at line 26 of file ChanCalibErrorCode.h.
26 {
27
31
32
33
34
39
40
44
45
53
54
55
56
57
58
63
64
65
66
67
68
69
70 };
@ ExceededDelayAfterCorrBit
@ Phos4ScanBadAdcDistribBit
@ Phos4ScanBadSignalShapeBit
@ DacScanBadAdcDistribBit
@ DistToErrorRegionUndercutBit
@ Phos4ScanBadRiseTimeBit
@ TotalWindowSizeUndercutBit
@ Phos4ScanSignalSaturatedBit
◆ ChanErrorComponent
| Enumerator |
|---|
| DacScan | |
| PedestalRun | |
| CoarseTiming | |
| Phos4Scan | |
| SatBcidValues | |
| FirFilterValues | |
| LutValues | |
Definition at line 72 of file ChanCalibErrorCode.h.
◆ ChanErrorSet
◆ ChanCalibErrorCode() [1/3]
| ChanCalibErrorCode::ChanCalibErrorCode |
( |
| ) |
|
◆ ChanCalibErrorCode() [2/3]
| ChanCalibErrorCode::ChanCalibErrorCode |
( |
unsigned int | errorCode | ) |
|
◆ ~ChanCalibErrorCode()
| virtual ChanCalibErrorCode::~ChanCalibErrorCode |
( |
| ) |
|
|
inlinevirtual |
◆ ChanCalibErrorCode() [3/3]
◆ badData() [1/2]
| bool ChanCalibErrorCode::badData |
( |
| ) |
const |
|
inline |
◆ badData() [2/2]
| void ChanCalibErrorCode::badData |
( |
bool | bad | ) |
|
|
inline |
◆ badResult() [1/2]
| bool ChanCalibErrorCode::badResult |
( |
| ) |
const |
|
inline |
◆ badResult() [2/2]
| void ChanCalibErrorCode::badResult |
( |
bool | bad | ) |
|
|
inline |
◆ bitIsSet()
| bool AbstractErrorCode::bitIsSet |
( |
unsigned int | number | ) |
const |
|
protectedinherited |
Definition at line 7 of file AbstractErrorCode.cxx.
7 {
8 unsigned int correspondingNumber = (
unsigned int) (1<<
number);
9
10 bool isSet( (
m_errorCode & correspondingNumber) > 0);
11
12 return isSet;
13}
std::string number(const double &d, const std::string &s)
◆ chanValid() [1/2]
| bool ChanCalibErrorCode::chanValid |
( |
| ) |
const |
Checks if channel is valid, ie.
none of the lowest four bits set.
Definition at line 46 of file ChanCalibErrorCode.cxx.
46 {
48}
unsigned int errorCode() const
◆ chanValid() [2/2]
◆ dacScanBadAdcDistrib() [1/2]
| bool ChanCalibErrorCode::dacScanBadAdcDistrib |
( |
| ) |
const |
|
inline |
◆ dacScanBadAdcDistrib() [2/2]
| void ChanCalibErrorCode::dacScanBadAdcDistrib |
( |
bool | bad | ) |
|
|
inline |
◆ dacScanBadCorrCoeff() [1/2]
| bool ChanCalibErrorCode::dacScanBadCorrCoeff |
( |
| ) |
const |
|
inline |
◆ dacScanBadCorrCoeff() [2/2]
| void ChanCalibErrorCode::dacScanBadCorrCoeff |
( |
bool | bad | ) |
|
|
inline |
◆ dacScanBadOffset() [1/2]
| bool ChanCalibErrorCode::dacScanBadOffset |
( |
| ) |
const |
|
inline |
◆ dacScanBadOffset() [2/2]
| void ChanCalibErrorCode::dacScanBadOffset |
( |
bool | bad | ) |
|
|
inline |
◆ dacScanBadSlope() [1/2]
| bool ChanCalibErrorCode::dacScanBadSlope |
( |
| ) |
const |
|
inline |
◆ dacScanBadSlope() [2/2]
| void ChanCalibErrorCode::dacScanBadSlope |
( |
bool | bad | ) |
|
|
inline |
◆ distToErrorRegionUndercut() [1/2]
| bool ChanCalibErrorCode::distToErrorRegionUndercut |
( |
| ) |
const |
|
inline |
◆ distToErrorRegionUndercut() [2/2]
| void ChanCalibErrorCode::distToErrorRegionUndercut |
( |
bool | undercut | ) |
|
|
inline |
◆ errorCode() [1/3]
| unsigned int AbstractErrorCode::errorCode |
( |
| ) |
const |
|
inline |
◆ errorCode() [2/3]
◆ errorCode() [3/3]
| void AbstractErrorCode::errorCode |
( |
unsigned int | code | ) |
|
|
inline |
◆ exceededDelay() [1/2]
| bool ChanCalibErrorCode::exceededDelay |
( |
| ) |
const |
|
inline |
◆ exceededDelay() [2/2]
| void ChanCalibErrorCode::exceededDelay |
( |
bool | exceeded | ) |
|
|
inline |
◆ exceededDelayAfterCorr() [1/2]
| bool ChanCalibErrorCode::exceededDelayAfterCorr |
( |
| ) |
const |
|
inline |
◆ exceededDelayAfterCorr() [2/2]
| void ChanCalibErrorCode::exceededDelayAfterCorr |
( |
bool | exceeded | ) |
|
|
inline |
◆ noData() [1/2]
| bool ChanCalibErrorCode::noData |
( |
| ) |
const |
|
inline |
◆ noData() [2/2]
| void ChanCalibErrorCode::noData |
( |
bool | nodata | ) |
|
|
inline |
◆ operator=()
◆ operator|=()
◆ pedRunBadAdcDistrib() [1/2]
| bool ChanCalibErrorCode::pedRunBadAdcDistrib |
( |
| ) |
const |
|
inline |
◆ pedRunBadAdcDistrib() [2/2]
| void ChanCalibErrorCode::pedRunBadAdcDistrib |
( |
bool | bad | ) |
|
|
inline |
◆ pedRunBadMean() [1/2]
| bool ChanCalibErrorCode::pedRunBadMean |
( |
| ) |
const |
|
inline |
◆ pedRunBadMean() [2/2]
| void ChanCalibErrorCode::pedRunBadMean |
( |
bool | bad | ) |
|
|
inline |
◆ pedRunBadSigma() [1/2]
| bool ChanCalibErrorCode::pedRunBadSigma |
( |
| ) |
const |
|
inline |
◆ pedRunBadSigma() [2/2]
| void ChanCalibErrorCode::pedRunBadSigma |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanBadAdcDistrib() [1/2]
| bool ChanCalibErrorCode::phos4ScanBadAdcDistrib |
( |
| ) |
const |
|
inline |
◆ phos4ScanBadAdcDistrib() [2/2]
| void ChanCalibErrorCode::phos4ScanBadAdcDistrib |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanBadRiseTime() [1/2]
| bool ChanCalibErrorCode::phos4ScanBadRiseTime |
( |
| ) |
const |
|
inline |
◆ phos4ScanBadRiseTime() [2/2]
| void ChanCalibErrorCode::phos4ScanBadRiseTime |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanBadSignal() [1/2]
| bool ChanCalibErrorCode::phos4ScanBadSignal |
( |
| ) |
const |
|
inline |
◆ phos4ScanBadSignal() [2/2]
| void ChanCalibErrorCode::phos4ScanBadSignal |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanBadSignalShape() [1/2]
| bool ChanCalibErrorCode::phos4ScanBadSignalShape |
( |
| ) |
const |
|
inline |
◆ phos4ScanBadSignalShape() [2/2]
| void ChanCalibErrorCode::phos4ScanBadSignalShape |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanBadWidth() [1/2]
| bool ChanCalibErrorCode::phos4ScanBadWidth |
( |
| ) |
const |
|
inline |
◆ phos4ScanBadWidth() [2/2]
| void ChanCalibErrorCode::phos4ScanBadWidth |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanNoSignal() [1/2]
| bool ChanCalibErrorCode::phos4ScanNoSignal |
( |
| ) |
const |
|
inline |
◆ phos4ScanNoSignal() [2/2]
| void ChanCalibErrorCode::phos4ScanNoSignal |
( |
bool | bad | ) |
|
|
inline |
◆ phos4ScanSignalSaturated() [1/2]
| bool ChanCalibErrorCode::phos4ScanSignalSaturated |
( |
| ) |
const |
|
inline |
◆ phos4ScanSignalSaturated() [2/2]
| void ChanCalibErrorCode::phos4ScanSignalSaturated |
( |
bool | bad | ) |
|
|
inline |
◆ printStatus()
| std::string ChanCalibErrorCode::printStatus |
( |
ChanErrorSet | spec | ) |
const |
Definition at line 62 of file ChanCalibErrorCode.cxx.
62 {
63
65
67 <<
"Bit 0: NoDataBit: " <<
noData() << std::endl
68 <<
"Bit 1: BadDataBit: " <<
badData() << std::endl
69 <<
"Bit 2: BadResultBit: " <<
badResult() << std::endl
70 <<
"Bit 3: Not defined: " <<
bitIsSet(4) << std::endl;
76
77 <<
"Bit 9: PedRunBadMeanBit: " <<
pedRunBadMean() << std::endl
80
81 }
82 else if (spec ==
CPM) {
83 }
84 else if (spec ==
JEM) {
87 <<
"Bit 7: ExceededDelayBit: " <<
exceededDelay() << std::endl
89 }
90 else if (spec ==
CMM) {
91 }
92
94}
bool dacScanBadSlope() const
bool pedRunBadMean() const
bool dacScanBadCorrCoeff() const
bool dacScanBadAdcDistrib() const
bool pedRunBadSigma() const
bool exceededDelay() const
bool totalWindowSizeUndercut() const
bool dacScanBadOffset() const
bool distToErrorRegionUndercut() const
bool pedRunBadAdcDistrib() const
bool exceededDelayAfterCorr() const
◆ setBad()
| void ChanCalibErrorCode::setBad |
( |
| ) |
|
|
inlineprotected |
◆ setBit()
| void AbstractErrorCode::setBit |
( |
unsigned int | number, |
|
|
bool | value ) |
|
protectedinherited |
◆ totalWindowSizeUndercut() [1/2]
| bool ChanCalibErrorCode::totalWindowSizeUndercut |
( |
| ) |
const |
|
inline |
◆ totalWindowSizeUndercut() [2/2]
| void ChanCalibErrorCode::totalWindowSizeUndercut |
( |
bool | undercut | ) |
|
|
inline |
◆ operator<<
◆ m_errorCode
| unsigned int AbstractErrorCode::m_errorCode |
|
privateinherited |
The documentation for this class was generated from the following files: