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