ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19class IInterface;
20class InterfaceID;
21class StatusCode;
22
23//namespace LVL1BS {
24
29
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
54 std::mutex m_mutex;
55 };
57};
58
59//} // end namespace
60
61#endif
Maintain a set of objects, one per slot.
Define macros for attributes used to control the static checker.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Maintain a set of objects, one per slot.
void rodError(uint32_t robid, unsigned int err) const
Set ROD unpacking error.
StatusCode errors(std::vector< unsigned int > *errColl) const
Fill vector with accumulated errors and reset.
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
std::map< uint32_t, unsigned int > ErrorMap
ZdcL1CaloErrorByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
SG::SlotSpecificObj< ErrorMaps > m_maps ATLAS_THREAD_SAFE
void robError(uint32_t robid, unsigned int err) const
Set ROB status error.