ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloCalibConditions
TrigT1CaloCalibConditions
ChanDeadErrorCode.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGT1CALOCALIBCONDITIONS_CHANDEADERRORCODE_H
6
#define TRIGT1CALOCALIBCONDITIONS_CHANDEADERRORCODE_H
7
8
#include "
TrigT1CaloCalibConditions/AbstractErrorCode.h
"
9
10
#include <string>
11
#include <iosfwd>
12
20
21
class
ChanDeadErrorCode
:
public
AbstractErrorCode
{
22
23
friend
std::ostream&
operator<<
(std::ostream& output,
const
ChanDeadErrorCode
&
r
);
24
25
public
:
26
27
enum
ChanDeadBits
{
28
// Bits used for CPM/JEM dead channel folders.
29
BadLvdsBit
= 0,
30
31
// Bits used for PPM dead (or problem) channel folder.
32
// Bits 0-15 will zero the LUT if they are set.
33
// Bits 16-31 are flagging problems that do not need
34
// the LUT to be zeroed.
35
36
// Internal L1Calo problems:
37
BadAdcBit
= 0,
38
BadMcmBit
= 1,
39
40
// Calorimeter problems:
41
FrontEndDeadBit
= 4,
42
ReceiverDeadBit
= 5,
43
HighVoltsOffBit
= 6,
44
LowVoltsOffBit
= 7,
45
NoisyTowerBit
= 8,
46
47
// Calorimeter flags:
48
// (for Tile, can use A=Front, B/C=Middle, D=Back)
49
PSCellsMaskedBit
= 16,
50
FrontCellsMaskedBit
= 17,
51
MiddleCellsMaskedBit
= 18,
52
BackCellsMaskedBit
= 19
53
};
54
55
ChanDeadErrorCode
();
56
ChanDeadErrorCode
(
unsigned
int
errorCode
);
57
virtual
~ChanDeadErrorCode
() {}
58
59
ChanDeadErrorCode
(
const
ChanDeadErrorCode
& e);
60
ChanDeadErrorCode
&
operator=
(
const
ChanDeadErrorCode
& e);
61
ChanDeadErrorCode
&
operator=
(
ChanDeadErrorCode
&&) noexcept = default;
62
ChanDeadErrorCode
& operator|=(
const
ChanDeadErrorCode
& e);
63
64
bool
chanValid
()
const
{
return
(( this->
errorCode
() & 0xffff) == 0);}
65
66
bool
badLvds
()
const
{
return
bitIsSet
(
BadLvdsBit
); }
67
void
badLvds
(
bool
bad
) {
setBit
(
BadLvdsBit
,
bad
); }
68
69
bool
badAdc
()
const
{
return
bitIsSet
(
BadAdcBit
); }
70
void
badAdc
(
bool
bad
) {
setBit
(
BadAdcBit
,
bad
); }
71
72
bool
badMcm
()
const
{
return
bitIsSet
(
BadMcmBit
); }
73
void
badMcm
(
bool
bad
) {
setBit
(
BadMcmBit
,
bad
); }
74
75
bool
frontEndDead
()
const
{
return
bitIsSet
(
FrontEndDeadBit
); }
76
void
frontEndDead
(
bool
bad
) {
setBit
(
FrontEndDeadBit
,
bad
); }
77
78
bool
receiverDead
()
const
{
return
bitIsSet
(
ReceiverDeadBit
); }
79
void
receiverDead
(
bool
bad
) {
setBit
(
ReceiverDeadBit
,
bad
); }
80
81
bool
highVoltsOff
()
const
{
return
bitIsSet
(
HighVoltsOffBit
); }
82
void
highVoltsOff
(
bool
bad
) {
setBit
(
HighVoltsOffBit
,
bad
); }
83
84
bool
lowVoltsOff
()
const
{
return
bitIsSet
(
LowVoltsOffBit
); }
85
void
lowVoltsOff
(
bool
bad
) {
setBit
(
LowVoltsOffBit
,
bad
); }
86
87
bool
noisyTower
()
const
{
return
bitIsSet
(
NoisyTowerBit
); }
88
void
noisyTower
(
bool
bad
) {
setBit
(
NoisyTowerBit
,
bad
); }
89
90
bool
psCellsMasked
()
const
{
return
bitIsSet
(
PSCellsMaskedBit
); }
91
void
psCellsMasked
(
bool
bad
) {
setBit
(
PSCellsMaskedBit
,
bad
); }
92
93
bool
frontCellsMasked
()
const
{
return
bitIsSet
(
FrontCellsMaskedBit
); }
94
void
frontCellsMasked
(
bool
bad
) {
setBit
(
FrontCellsMaskedBit
,
bad
); }
95
96
bool
middleCellsMasked
()
const
{
return
bitIsSet
(
MiddleCellsMaskedBit
); }
97
void
middleCellsMasked
(
bool
bad
) {
setBit
(
MiddleCellsMaskedBit
,
bad
); }
98
99
bool
backCellsMasked
()
const
{
return
bitIsSet
(
BackCellsMaskedBit
); }
100
void
backCellsMasked
(
bool
bad
) {
setBit
(
BackCellsMaskedBit
,
bad
); }
101
102
std::string
printStatus
()
const
;
103
};
104
105
#endif
106
107
AbstractErrorCode.h
bad
@ bad
Definition
SUSYToolsTester.cxx:95
AbstractErrorCode::bitIsSet
bool bitIsSet(unsigned int number) const
Definition
AbstractErrorCode.cxx:7
AbstractErrorCode::setBit
void setBit(unsigned int number, bool value)
Definition
AbstractErrorCode.cxx:15
AbstractErrorCode::errorCode
unsigned int errorCode() const
Definition
AbstractErrorCode.h:21
AbstractErrorCode::AbstractErrorCode
AbstractErrorCode(unsigned int errorCode)
Definition
AbstractErrorCode.h:24
ChanDeadErrorCode
ChanDeadErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanDe...
Definition
ChanDeadErrorCode.h:21
ChanDeadErrorCode::frontCellsMasked
void frontCellsMasked(bool bad)
Definition
ChanDeadErrorCode.h:94
ChanDeadErrorCode::frontEndDead
void frontEndDead(bool bad)
Definition
ChanDeadErrorCode.h:76
ChanDeadErrorCode::operator=
ChanDeadErrorCode & operator=(const ChanDeadErrorCode &e)
Definition
ChanDeadErrorCode.cxx:21
ChanDeadErrorCode::ChanDeadBits
ChanDeadBits
Definition
ChanDeadErrorCode.h:27
ChanDeadErrorCode::MiddleCellsMaskedBit
@ MiddleCellsMaskedBit
Definition
ChanDeadErrorCode.h:51
ChanDeadErrorCode::BadAdcBit
@ BadAdcBit
Definition
ChanDeadErrorCode.h:37
ChanDeadErrorCode::BackCellsMaskedBit
@ BackCellsMaskedBit
Definition
ChanDeadErrorCode.h:52
ChanDeadErrorCode::FrontCellsMaskedBit
@ FrontCellsMaskedBit
Definition
ChanDeadErrorCode.h:50
ChanDeadErrorCode::BadMcmBit
@ BadMcmBit
Definition
ChanDeadErrorCode.h:38
ChanDeadErrorCode::BadLvdsBit
@ BadLvdsBit
Definition
ChanDeadErrorCode.h:29
ChanDeadErrorCode::HighVoltsOffBit
@ HighVoltsOffBit
Definition
ChanDeadErrorCode.h:43
ChanDeadErrorCode::PSCellsMaskedBit
@ PSCellsMaskedBit
Definition
ChanDeadErrorCode.h:49
ChanDeadErrorCode::FrontEndDeadBit
@ FrontEndDeadBit
Definition
ChanDeadErrorCode.h:41
ChanDeadErrorCode::LowVoltsOffBit
@ LowVoltsOffBit
Definition
ChanDeadErrorCode.h:44
ChanDeadErrorCode::ReceiverDeadBit
@ ReceiverDeadBit
Definition
ChanDeadErrorCode.h:42
ChanDeadErrorCode::NoisyTowerBit
@ NoisyTowerBit
Definition
ChanDeadErrorCode.h:45
ChanDeadErrorCode::backCellsMasked
void backCellsMasked(bool bad)
Definition
ChanDeadErrorCode.h:100
ChanDeadErrorCode::frontCellsMasked
bool frontCellsMasked() const
Definition
ChanDeadErrorCode.h:93
ChanDeadErrorCode::badLvds
bool badLvds() const
Definition
ChanDeadErrorCode.h:66
ChanDeadErrorCode::highVoltsOff
bool highVoltsOff() const
Definition
ChanDeadErrorCode.h:81
ChanDeadErrorCode::receiverDead
bool receiverDead() const
Definition
ChanDeadErrorCode.h:78
ChanDeadErrorCode::receiverDead
void receiverDead(bool bad)
Definition
ChanDeadErrorCode.h:79
ChanDeadErrorCode::badAdc
void badAdc(bool bad)
Definition
ChanDeadErrorCode.h:70
ChanDeadErrorCode::middleCellsMasked
bool middleCellsMasked() const
Definition
ChanDeadErrorCode.h:96
ChanDeadErrorCode::psCellsMasked
bool psCellsMasked() const
Definition
ChanDeadErrorCode.h:90
ChanDeadErrorCode::noisyTower
bool noisyTower() const
Definition
ChanDeadErrorCode.h:87
ChanDeadErrorCode::noisyTower
void noisyTower(bool bad)
Definition
ChanDeadErrorCode.h:88
ChanDeadErrorCode::lowVoltsOff
bool lowVoltsOff() const
Definition
ChanDeadErrorCode.h:84
ChanDeadErrorCode::~ChanDeadErrorCode
virtual ~ChanDeadErrorCode()
Definition
ChanDeadErrorCode.h:57
ChanDeadErrorCode::highVoltsOff
void highVoltsOff(bool bad)
Definition
ChanDeadErrorCode.h:82
ChanDeadErrorCode::operator<<
friend std::ostream & operator<<(std::ostream &output, const ChanDeadErrorCode &r)
Definition
ChanDeadErrorCode.cxx:87
ChanDeadErrorCode::badAdc
bool badAdc() const
Definition
ChanDeadErrorCode.h:69
ChanDeadErrorCode::operator=
ChanDeadErrorCode & operator=(ChanDeadErrorCode &&) noexcept=default
ChanDeadErrorCode::badMcm
bool badMcm() const
Definition
ChanDeadErrorCode.h:72
ChanDeadErrorCode::psCellsMasked
void psCellsMasked(bool bad)
Definition
ChanDeadErrorCode.h:91
ChanDeadErrorCode::badLvds
void badLvds(bool bad)
Definition
ChanDeadErrorCode.h:67
ChanDeadErrorCode::middleCellsMasked
void middleCellsMasked(bool bad)
Definition
ChanDeadErrorCode.h:97
ChanDeadErrorCode::ChanDeadErrorCode
ChanDeadErrorCode()
Definition
ChanDeadErrorCode.cxx:12
ChanDeadErrorCode::backCellsMasked
bool backCellsMasked() const
Definition
ChanDeadErrorCode.h:99
ChanDeadErrorCode::printStatus
std::string printStatus() const
Definition
ChanDeadErrorCode.cxx:33
ChanDeadErrorCode::chanValid
bool chanValid() const
Definition
ChanDeadErrorCode.h:64
ChanDeadErrorCode::frontEndDead
bool frontEndDead() const
Definition
ChanDeadErrorCode.h:75
ChanDeadErrorCode::lowVoltsOff
void lowVoltsOff(bool bad)
Definition
ChanDeadErrorCode.h:85
ChanDeadErrorCode::badMcm
void badMcm(bool bad)
Definition
ChanDeadErrorCode.h:73
r
int r
Definition
globals.cxx:22
const
Generated on
for ATLAS Offline Software by
1.17.0