ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloByteStream
src
L1CaloErrorByteStreamTool.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 TRIGT1CALOBYTESTREAM_L1CALOERRORBYTESTREAMTOOL_H
6
#define TRIGT1CALOBYTESTREAM_L1CALOERRORBYTESTREAMTOOL_H
7
8
#include <stdint.h>
9
10
#include <map>
11
#include <string>
12
#include <vector>
13
14
#include "
AthenaBaseComps/AthAlgTool.h
"
15
#include "
AthenaKernel/SlotSpecificObj.h
"
16
#include "
CxxUtils/checker_macros.h
"
17
18
class
IInterface;
19
class
InterfaceID;
20
class
StatusCode
;
21
22
namespace
LVL1BS
{
23
28
29
class
L1CaloErrorByteStreamTool
:
public
AthAlgTool
{
30
31
public
:
32
L1CaloErrorByteStreamTool
(
const
std::string&
type
,
const
std::string& name,
33
const
IInterface* parent);
34
virtual
~L1CaloErrorByteStreamTool
();
35
37
static
const
InterfaceID&
interfaceID
();
38
39
virtual
StatusCode
initialize
()
override
;
40
virtual
StatusCode
finalize
()
override
;
41
43
void
robError
(uint32_t robid,
unsigned
int
err)
const
;
45
void
rodError
(uint32_t robid,
unsigned
int
err)
const
;
47
StatusCode
errors
(std::vector<unsigned int>* errColl)
const
;
48
49
private
:
50
51
// FIXME: do this in a sane way...
52
typedef
std::map<uint32_t, unsigned int>
ErrorMap
;
53
struct
ErrorMaps
{
54
// Maps of accumulated errors
55
ErrorMap
m_robMap
;
56
ErrorMap
m_rodMap
;
57
std::mutex
m_mutex
;
58
};
59
mutable
SG::SlotSpecificObj<ErrorMaps>
m_maps
ATLAS_THREAD_SAFE
;
60
};
61
62
}
// end namespace
63
64
#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
LVL1BS::L1CaloErrorByteStreamTool::L1CaloErrorByteStreamTool
L1CaloErrorByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
L1CaloErrorByteStreamTool.cxx:28
LVL1BS::L1CaloErrorByteStreamTool::ATLAS_THREAD_SAFE
SG::SlotSpecificObj< ErrorMaps > m_maps ATLAS_THREAD_SAFE
Definition
L1CaloErrorByteStreamTool.h:59
LVL1BS::L1CaloErrorByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition
L1CaloErrorByteStreamTool.cxx:21
LVL1BS::L1CaloErrorByteStreamTool::finalize
virtual StatusCode finalize() override
Definition
L1CaloErrorByteStreamTool.cxx:54
LVL1BS::L1CaloErrorByteStreamTool::rodError
void rodError(uint32_t robid, unsigned int err) const
Set ROD unpacking error.
Definition
L1CaloErrorByteStreamTool.cxx:74
LVL1BS::L1CaloErrorByteStreamTool::initialize
virtual StatusCode initialize() override
Definition
L1CaloErrorByteStreamTool.cxx:45
LVL1BS::L1CaloErrorByteStreamTool::ErrorMap
std::map< uint32_t, unsigned int > ErrorMap
Definition
L1CaloErrorByteStreamTool.h:52
LVL1BS::L1CaloErrorByteStreamTool::robError
void robError(uint32_t robid, unsigned int err) const
Set ROB status error.
Definition
L1CaloErrorByteStreamTool.cxx:61
LVL1BS::L1CaloErrorByteStreamTool::errors
StatusCode errors(std::vector< unsigned int > *errColl) const
Fill vector with accumulated errors and reset.
Definition
L1CaloErrorByteStreamTool.cxx:87
LVL1BS::L1CaloErrorByteStreamTool::~L1CaloErrorByteStreamTool
virtual ~L1CaloErrorByteStreamTool()
Definition
L1CaloErrorByteStreamTool.cxx:38
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition
AthenaKernel/AthenaKernel/SlotSpecificObj.h:84
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1BS
Definition
ZdcModifySlices.h:10
type
LVL1BS::L1CaloErrorByteStreamTool::ErrorMaps
Definition
L1CaloErrorByteStreamTool.h:53
LVL1BS::L1CaloErrorByteStreamTool::ErrorMaps::m_rodMap
ErrorMap m_rodMap
Definition
L1CaloErrorByteStreamTool.h:56
LVL1BS::L1CaloErrorByteStreamTool::ErrorMaps::m_robMap
ErrorMap m_robMap
Definition
L1CaloErrorByteStreamTool.h:55
LVL1BS::L1CaloErrorByteStreamTool::ErrorMaps::m_mutex
std::mutex m_mutex
Definition
L1CaloErrorByteStreamTool.h:57
Generated on
for ATLAS Offline Software by
1.17.0