ATLAS Offline Software
LArFebErrorSummary.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARFEBERRORSUMMARY_H
6 #define LARFEBERRORSUMMARY_H
7 
10 #include <stdint.h>
11 #include <map>
12 
13 
23 {
24  public:
25 
29  } ;
30 
33 
36 
38  bool set_feb_error(unsigned int febid,uint16_t e);
39 
41  uint16_t feb_error(HWIdentifier febid) const ;
42 
44  const std::map<unsigned int,uint16_t>& get_all_febs() const ;
45 
47  static std::string error_to_string( uint16_t error) ;
48 
50  void clear( ) ;
51 
52  private:
53 
55  std::map<unsigned int,uint16_t> m_feb_errors;
56 
57  static const std::string m_errorStrings[N_LArFebErrorType] ;
58 };
59 
60 CLASS_DEF(LArFebErrorSummary,223531796,0)
61 
62 #endif
LArFebErrorSummary::CheckSum
@ CheckSum
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::LArFebErrorSummary
LArFebErrorSummary()
Constructor with FEB Id.
LArFebErrorSummary::get_all_febs
const std::map< unsigned int, uint16_t > & get_all_febs() const
get all febs with error
Definition: LArFebErrorSummary.cxx:47
LArFebErrorSummary::set_feb_error
bool set_feb_error(unsigned int febid, uint16_t e)
Add another FEB error record, return true if added successfully.
Definition: LArFebErrorSummary.cxx:34
LArFebErrorSummary::~LArFebErrorSummary
~LArFebErrorSummary()
Destructor.
LArFebErrorSummary::error_to_string
static std::string error_to_string(uint16_t error)
interpret the error in string
Definition: LArFebErrorSummary.cxx:58
HWIdentifier
Definition: HWIdentifier.h:13
LArFebErrorSummary::BadGain
@ BadGain
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::feb_error
uint16_t feb_error(HWIdentifier febid) const
get error for feb
Definition: LArFebErrorSummary.cxx:20
LArFebErrorSummary::m_errorStrings
static const std::string m_errorStrings[N_LArFebErrorType]
Definition: LArFebErrorSummary.h:57
LArFebErrorSummary::TypeMismatch
@ TypeMismatch
Definition: LArFebErrorSummary.h:28
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArFebErrorSummary::ScacStatus
@ ScacStatus
Definition: LArFebErrorSummary.h:27
HWIdentifier.h
LArFebErrorSummary::EmptyDataBlock
@ EmptyDataBlock
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::EVTID
@ EVTID
Definition: LArFebErrorSummary.h:27
LArFebErrorSummary::DspBlockSize
@ DspBlockSize
Definition: LArFebErrorSummary.h:28
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
LArFebErrorSummary::N_LArFebErrorType
@ N_LArFebErrorType
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::Parity
@ Parity
Definition: LArFebErrorSummary.h:27
LArFebErrorSummary
Holds information from the FEB Error Summary.
Definition: LArFebErrorSummary.h:23
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LArFebErrorSummary::LArFebErrorType
LArFebErrorType
Definition: LArFebErrorSummary.h:26
LArFebErrorSummary::m_feb_errors
std::map< unsigned int, uint16_t > m_feb_errors
error is stored in a map with key = feb id
Definition: LArFebErrorSummary.h:55
LArFebErrorSummary::SampleHeader
@ SampleHeader
Definition: LArFebErrorSummary.h:27
LArFebErrorSummary::ScaOutOfRange
@ ScaOutOfRange
Definition: LArFebErrorSummary.h:27
LArFebErrorSummary::BCID
@ BCID
Definition: LArFebErrorSummary.h:27
error
Definition: IImpactPoint3dEstimator.h:70
LArFebErrorSummary::NumOfSamples
@ NumOfSamples
Definition: LArFebErrorSummary.h:28
CLASS_DEF.h
macros to associate a CLID to a type
LArFebErrorSummary::MissingHeader
@ MissingHeader
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::GainMismatch
@ GainMismatch
Definition: LArFebErrorSummary.h:28
LArFebErrorSummary::clear
void clear()
clear internal map
Definition: LArFebErrorSummary.cxx:52