ATLAS Offline Software
Loading...
Searching...
No Matches
ChanDeadErrorCode.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 TRIGT1CALOCALIBCONDITIONS_CHANDEADERRORCODE_H
6#define TRIGT1CALOCALIBCONDITIONS_CHANDEADERRORCODE_H
7
9
10#include <string>
11
19
21
22 friend std::ostream& operator<<(std::ostream& output, const ChanDeadErrorCode& r);
23
24public:
25
27 // Bits used for CPM/JEM dead channel folders.
29
30 // Bits used for PPM dead (or problem) channel folder.
31 // Bits 0-15 will zero the LUT if they are set.
32 // Bits 16-31 are flagging problems that do not need
33 // the LUT to be zeroed.
34
35 // Internal L1Calo problems:
38
39 // Calorimeter problems:
45
46 // Calorimeter flags:
47 // (for Tile, can use A=Front, B/C=Middle, D=Back)
52 };
53
55 ChanDeadErrorCode(unsigned int errorCode);
56 virtual ~ChanDeadErrorCode() {}
57
61
62 bool chanValid() const {return (( this->errorCode() & 0xffff) == 0);}
63
64 bool badLvds() const { return bitIsSet(BadLvdsBit); }
65 void badLvds(bool bad) { setBit(BadLvdsBit,bad); }
66
67 bool badAdc() const { return bitIsSet(BadAdcBit); }
68 void badAdc(bool bad) { setBit(BadAdcBit,bad); }
69
70 bool badMcm() const { return bitIsSet(BadMcmBit); }
71 void badMcm(bool bad) { setBit(BadMcmBit,bad); }
72
73 bool frontEndDead() const { return bitIsSet(FrontEndDeadBit); }
75
76 bool receiverDead() const { return bitIsSet(ReceiverDeadBit); }
78
79 bool highVoltsOff() const { return bitIsSet(HighVoltsOffBit); }
81
82 bool lowVoltsOff() const { return bitIsSet(LowVoltsOffBit); }
84
85 bool noisyTower() const { return bitIsSet(NoisyTowerBit); }
87
88 bool psCellsMasked() const { return bitIsSet(PSCellsMaskedBit); }
90
93
96
99
100 std::string printStatus() const;
101};
102
103#endif
104
105
bool bitIsSet(unsigned int number) const
void setBit(unsigned int number, bool value)
unsigned int errorCode() const
AbstractErrorCode(unsigned int errorCode)
ChanDeadErrorCode class for L1Calo error codes Adapted from /LVL1/l1calo/coolL1Calo/coolL1Calo/ChanDe...
void frontCellsMasked(bool bad)
void frontEndDead(bool bad)
ChanDeadErrorCode & operator=(const ChanDeadErrorCode &e)
void backCellsMasked(bool bad)
bool frontCellsMasked() const
ChanDeadErrorCode & operator|=(const ChanDeadErrorCode &e)
bool highVoltsOff() const
bool receiverDead() const
void receiverDead(bool bad)
void badAdc(bool bad)
bool middleCellsMasked() const
bool psCellsMasked() const
bool noisyTower() const
void noisyTower(bool bad)
bool lowVoltsOff() const
void highVoltsOff(bool bad)
friend std::ostream & operator<<(std::ostream &output, const ChanDeadErrorCode &r)
void psCellsMasked(bool bad)
void badLvds(bool bad)
void middleCellsMasked(bool bad)
bool backCellsMasked() const
std::string printStatus() const
bool frontEndDead() const
void lowVoltsOff(bool bad)
void badMcm(bool bad)
int r
Definition globals.cxx:22