ATLAS Offline Software
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 
19 class IInterface;
20 class InterfaceID;
21 class StatusCode;
22 
23 //namespace LVL1BS {
24 
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
55  };
57 };
58 
59 //} // end namespace
60 
61 #endif
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_mutex
std::mutex m_mutex
Definition: ZdcL1CaloErrorByteStreamTool.h:54
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_rodMap
ErrorMap m_rodMap
Definition: ZdcL1CaloErrorByteStreamTool.h:53
ZdcL1CaloErrorByteStreamTool::ErrorMaps::m_robMap
ErrorMap m_robMap
Definition: ZdcL1CaloErrorByteStreamTool.h:52
SG::SlotSpecificObj
Maintain a set of objects, one per slot.
Definition: AthenaKernel/AthenaKernel/SlotSpecificObj.h:70
ZdcL1CaloErrorByteStreamTool::interfaceID
static const InterfaceID & interfaceID()
AlgTool InterfaceID.
Definition: ZdcL1CaloErrorByteStreamTool.cxx:21
dqt_zlumi_pandas.err
err
Definition: dqt_zlumi_pandas.py:182
ZdcL1CaloErrorByteStreamTool::rodError
void rodError(uint32_t robid, unsigned int err) const
Set ROD unpacking error.
Definition: ZdcL1CaloErrorByteStreamTool.cxx:52
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ZdcL1CaloErrorByteStreamTool::errors
StatusCode errors(std::vector< unsigned int > *errColl) const
Fill vector with accumulated errors and reset.
Definition: ZdcL1CaloErrorByteStreamTool.cxx:65
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ZdcL1CaloErrorByteStreamTool
Tool to accumulate ROB/ROD unpacking errors.
Definition: ZdcL1CaloErrorByteStreamTool.h:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SlotSpecificObj.h
Maintain a set of objects, one per slot.
ZdcL1CaloErrorByteStreamTool::ZdcL1CaloErrorByteStreamTool
ZdcL1CaloErrorByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ZdcL1CaloErrorByteStreamTool.cxx:28
ZdcL1CaloErrorByteStreamTool::ErrorMap
std::map< uint32_t, unsigned int > ErrorMap
Definition: ZdcL1CaloErrorByteStreamTool.h:49
ZdcL1CaloErrorByteStreamTool::ATLAS_THREAD_SAFE
SG::SlotSpecificObj< ErrorMaps > m_maps ATLAS_THREAD_SAFE
Definition: ZdcL1CaloErrorByteStreamTool.h:56
AthAlgTool
Definition: AthAlgTool.h:26
checker_macros.h
Define macros for attributes used to control the static checker.
ZdcL1CaloErrorByteStreamTool::robError
void robError(uint32_t robid, unsigned int err) const
Set ROB status error.
Definition: ZdcL1CaloErrorByteStreamTool.cxx:39
ZdcL1CaloErrorByteStreamTool::ErrorMaps
Definition: ZdcL1CaloErrorByteStreamTool.h:50