ATLAS Offline Software
Loading...
Searching...
No Matches
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
21
23{
24 public:
25
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
61
62#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Holds information from the FEB Error Summary.
bool set_feb_error(unsigned int febid, uint16_t e)
Add another FEB error record, return true if added successfully.
static const std::string m_errorStrings[N_LArFebErrorType]
void clear()
clear internal map
~LArFebErrorSummary()
Destructor.
static std::string error_to_string(uint16_t error)
interpret the error in string
const std::map< unsigned int, uint16_t > & get_all_febs() const
get all febs with error
std::map< unsigned int, uint16_t > m_feb_errors
error is stored in a map with key = feb id
uint16_t feb_error(HWIdentifier febid) const
get error for feb
LArFebErrorSummary()
Constructor with FEB Id.