ATLAS Offline Software
Loading...
Searching...
No Matches
FineTimeErrorCode.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_FINETIMEERRORCODE_H
6#define TRIGT1CALOCALIBCONDITIONS_FINETIMEERRORCODE_H
7
9
10#include <string>
11
18
20
21 friend std::ostream& operator<<(std::ostream& output, const FineTimeErrorCode& r);
22
23public:
24
26
27 BadRefBit = 0, //set if reference value couldn't be retrieved
28 BadCalibBit = 1, //set if calib value couldn't be retrieved
29 RefSetByHand = 2, //set if the reference value is set by hand
30 CalibSetByHand = 3 //set if the calibration value is set by hand
31 };
32
34 FineTimeErrorCode(unsigned int errorCode);
35 virtual ~FineTimeErrorCode() {}
36
40
41 bool badRefValue() const { return bitIsSet(BadRefBit); }
43
44 bool badCalib() const { return bitIsSet(BadCalibBit); }
45 void badAdc(bool bad) { setBit(BadCalibBit,bad); }
46
47 bool isRefSetByHand() const { return bitIsSet(RefSetByHand); }
49
50 bool isCalibSetByHand() const { return bitIsSet(CalibSetByHand); }
52
53 std::string printStatus() const;
54};
55
56#endif
57
58
bool bitIsSet(unsigned int number) const
void setBit(unsigned int number, bool value)
unsigned int errorCode() const
AbstractErrorCode(unsigned int errorCode)
FineTimeErrorCode class for L1Calo error codes.
bool badRefValue() const
friend std::ostream & operator<<(std::ostream &output, const FineTimeErrorCode &r)
FineTimeErrorCode & operator|=(const FineTimeErrorCode &e)
void refIsSetByHand(bool bad)
std::string printStatus() const
void badRefValue(bool bad)
bool isRefSetByHand() const
bool isCalibSetByHand() const
FineTimeErrorCode & operator=(const FineTimeErrorCode &e)
void badAdc(bool bad)
void calibIsSetByHand(bool bad)
int r
Definition globals.cxx:22