ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRawEvent
LArRawEvent
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
8
#include "
Identifier/HWIdentifier.h
"
9
#include "
AthenaKernel/CLASS_DEF.h
"
10
#include <stdint.h>
11
#include <map>
12
13
21
22
class
LArFebErrorSummary
23
{
24
public
:
25
26
enum
LArFebErrorType
{
27
Parity
,
BCID
,
SampleHeader
,
EVTID
,
ScacStatus
,
ScaOutOfRange
,
28
GainMismatch
,
TypeMismatch
,
NumOfSamples
,
EmptyDataBlock
,
DspBlockSize
,
CheckSum
,
MissingHeader
,
BadGain
,
N_LArFebErrorType
29
} ;
30
32
LArFebErrorSummary
() ;
33
35
~LArFebErrorSummary
() ;
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
CLASS_DEF.h
macros to associate a CLID to a type
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:67
HWIdentifier.h
HWIdentifier
Definition
HWIdentifier.h:13
LArFebErrorSummary
Holds information from the FEB Error Summary.
Definition
LArFebErrorSummary.h:23
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::m_errorStrings
static const std::string m_errorStrings[N_LArFebErrorType]
Definition
LArFebErrorSummary.h:8
LArFebErrorSummary::clear
void clear()
clear internal map
Definition
LArFebErrorSummary.cxx:52
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
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::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::feb_error
uint16_t feb_error(HWIdentifier febid) const
get error for feb
Definition
LArFebErrorSummary.cxx:20
LArFebErrorSummary::LArFebErrorType
LArFebErrorType
Definition
LArFebErrorSummary.h:26
LArFebErrorSummary::SampleHeader
@ SampleHeader
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::EVTID
@ EVTID
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::BadGain
@ BadGain
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::DspBlockSize
@ DspBlockSize
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::CheckSum
@ CheckSum
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::GainMismatch
@ GainMismatch
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::EmptyDataBlock
@ EmptyDataBlock
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::NumOfSamples
@ NumOfSamples
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::ScacStatus
@ ScacStatus
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::N_LArFebErrorType
@ N_LArFebErrorType
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::ScaOutOfRange
@ ScaOutOfRange
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::MissingHeader
@ MissingHeader
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::Parity
@ Parity
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::BCID
@ BCID
Definition
LArFebErrorSummary.h:27
LArFebErrorSummary::TypeMismatch
@ TypeMismatch
Definition
LArFebErrorSummary.h:28
LArFebErrorSummary::LArFebErrorSummary
LArFebErrorSummary()
Constructor with FEB Id.
error
Definition
IImpactPoint3dEstimator.h:72
Generated on
for ATLAS Offline Software by
1.17.0