ATLAS Offline Software
Loading...
Searching...
No Matches
ChanFitErrorCode.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 CHANFITERRORCODE_H
6#define CHANFITERRORCODE_H
7
9
15
17{
18 public:
20 {
21 // to be extended
24 };
25
27 ChanFitErrorCode(unsigned int errorCode);
29
32
34
35 bool chanValid() const;
36
37 inline bool noData() const { return bitIsSet(NoDataBit); }
38 inline void noData(bool bad) { setBit(NoDataBit, bad); }
39
40 inline bool badData() const { return bitIsSet(BadDataBit); }
41 inline void badData(bool bad) { setBit(BadDataBit, bad); }
42};
43
44#endif // CHANFITERRORCODE_H
bool bitIsSet(unsigned int number) const
void setBit(unsigned int number, bool value)
unsigned int errorCode() const
AbstractErrorCode(unsigned int errorCode)
ChanFitErrorCode stores information about the calibration fit quality.
ChanFitErrorCode & operator|=(const ChanFitErrorCode &rhs)
void badData(bool bad)
ChanFitErrorCode & operator=(const ChanFitErrorCode &rhs)
void noData(bool bad)
unsigned int errorCode() const
bool badData() const
bool noData() const