ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ZDC
ZdcCnv
ZdcByteStream
ZdcByteStream
ZdcL1CaloErrorByteStreamTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGT1CALOBYTESTREAM_ZDCL1CALOERRORBYTESTREAMTOOL_H
6
#define TRIGT1CALOBYTESTREAM_ZDCL1CALOERRORBYTESTREAMTOOL_H
7
8
#include <stdint.h>
9
10
#include <map>
11
#include <string>
12
#include <vector>
13
#include <mutex>
14
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
#include "
AthenaKernel/SlotSpecificObj.h
"
17
#include "
CxxUtils/checker_macros.h
"
18
19
class
IInterface;
20
class
InterfaceID;
21
class
StatusCode
;
22
23
//namespace LVL1BS {
24
29
30
class
ZdcL1CaloErrorByteStreamTool
:
public
AthAlgTool
{
31
32
public
:
33
ZdcL1CaloErrorByteStreamTool
(
const
std::string&
type
,
const
std::string& name,
34
const
IInterface* parent);
35
37
static
const
InterfaceID&
interfaceID
();
38
40
void
robError
(uint32_t robid,
unsigned
int
err)
const
;
42
void
rodError
(uint32_t robid,
unsigned
int
err)
const
;
44
StatusCode
errors
(std::vector<unsigned int>* errColl)
const
;
45
46
private
:
47
48
// FIXME: do this in a sane way...
49
typedef
std::map<uint32_t, unsigned int>
ErrorMap
;
50
struct
ErrorMaps
{
51
// Maps of accumulated errors
52
ErrorMap
m_robMap
;
53
ErrorMap
m_rodMap
;
54
std::mutex
m_mutex
;
55
};
56
mutable
SG::SlotSpecificObj<ErrorMaps>
m_maps
ATLAS_THREAD_SAFE
;
57
};
58
59
//} // end namespace
60
61
#endif
AthAlgTool.h
SlotSpecificObj.h
Maintain a set of objects, one per slot.
checker_macros.h
Define macros for attributes used to control the static checker.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition
AthenaKernel/AthenaKernel/SlotSpecificObj.h:84
ZdcL1CaloErrorByteStreamTool::rodError
void rodError(uint32_t robid, unsigned int err) const
Set ROD unpacking error.
Definition
ZdcL1CaloErrorByteStreamTool.cxx:52
ZdcL1CaloErrorByteStreamTool::errors
StatusCode errors(std::vector< unsigned int > *errColl) const
Fill vector with accumulated errors and reset.
Definition
ZdcL1CaloErrorByteStreamTool.cxx:65
ZdcL1CaloErrorByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition
ZdcL1CaloErrorByteStreamTool.cxx:21
ZdcL1CaloErrorByteStreamTool::ErrorMap
std::map< uint32_t, unsigned int > ErrorMap
Definition
ZdcL1CaloErrorByteStreamTool.h:49
ZdcL1CaloErrorByteStreamTool::ZdcL1CaloErrorByteStreamTool
ZdcL1CaloErrorByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
ZdcL1CaloErrorByteStreamTool.cxx:28
ZdcL1CaloErrorByteStreamTool::ATLAS_THREAD_SAFE
SG::SlotSpecificObj< ErrorMaps > m_maps ATLAS_THREAD_SAFE
Definition
ZdcL1CaloErrorByteStreamTool.h:56
ZdcL1CaloErrorByteStreamTool::robError
void robError(uint32_t robid, unsigned int err) const
Set ROB status error.
Definition
ZdcL1CaloErrorByteStreamTool.cxx:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
type
ZdcL1CaloErrorByteStreamTool::ErrorMaps
Definition
ZdcL1CaloErrorByteStreamTool.h:50
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_robMap
ErrorMap m_robMap
Definition
ZdcL1CaloErrorByteStreamTool.h:52
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_mutex
std::mutex m_mutex
Definition
ZdcL1CaloErrorByteStreamTool.h:54
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_rodMap
ErrorMap m_rodMap
Definition
ZdcL1CaloErrorByteStreamTool.h:53
Generated on
for ATLAS Offline Software by
1.17.0