ATLAS Offline Software
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 
17 {
18  public:
20  {
21  // to be extended
22  NoDataBit = 0,
23  BadDataBit = 1
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
bad
@ bad
Definition: SUSYToolsTester.cxx:95
ChanFitErrorCode::operator|=
ChanFitErrorCode & operator|=(const ChanFitErrorCode &rhs)
Definition: ChanFitErrorCode.cxx:24
AbstractErrorCode::setBit
void setBit(unsigned int number, bool value)
Definition: AbstractErrorCode.cxx:15
AbstractErrorCode::errorCode
unsigned int errorCode() const
Definition: AbstractErrorCode.h:21
ChanFitErrorCode::chanValid
bool chanValid() const
Definition: ChanFitErrorCode.cxx:30
ChanFitErrorCode::noData
void noData(bool bad)
Definition: ChanFitErrorCode.h:38
ChanFitErrorCode::badData
void badData(bool bad)
Definition: ChanFitErrorCode.h:41
ChanFitErrorCode::BadDataBit
@ BadDataBit
Definition: ChanFitErrorCode.h:23
ChanFitErrorCode::NoDataBit
@ NoDataBit
Definition: ChanFitErrorCode.h:22
ChanFitErrorCode::badData
bool badData() const
Definition: ChanFitErrorCode.h:40
AbstractErrorCode::bitIsSet
bool bitIsSet(unsigned int number) const
Definition: AbstractErrorCode.cxx:7
ChanFitErrorCode::operator=
ChanFitErrorCode & operator=(const ChanFitErrorCode &rhs)
Definition: ChanFitErrorCode.cxx:19
ChanFitErrorCode::ChanFitErrorCode
ChanFitErrorCode()
Definition: ChanFitErrorCode.cxx:7
ChanFitErrorCode::noData
bool noData() const
Definition: ChanFitErrorCode.h:37
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
ChanFitErrorCode::ChanFitErrorCodeBits
ChanFitErrorCodeBits
Definition: ChanFitErrorCode.h:20
AbstractErrorCode
AbstractErrorCode abstract base class for L1Calo error codes.
Definition: AbstractErrorCode.h:16
ChanFitErrorCode
ChanFitErrorCode stores information about the calibration fit quality.
Definition: ChanFitErrorCode.h:17
AbstractErrorCode.h