ATLAS Offline Software
TrigErrorMonTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGSTEERMONITOR_TRIGERRORMONTOOL_H
5 #define TRIGSTEERMONITOR_TRIGERRORMONTOOL_H
6 
11 #include "GaudiKernel/EventContext.h"
13 
14 
19 class TrigErrorMonTool : public extends<AthAlgTool, ITrigErrorMonTool> {
20 public:
21  TrigErrorMonTool(const std::string& type, const std::string& name, const IInterface* parent);
22 
23  // ------------------------- IStateful methods -------------------------------
24  virtual StatusCode initialize() override;
25  virtual StatusCode finalize() override;
26 
27  // ------------------------- ITrigErrorMonTool methods -----------------------
29  virtual std::unordered_map<std::string_view, StatusCode> algExecErrors(const EventContext& eventContext) const override;
30 
31 private:
33  ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
34  ToolHandle<TrigCompositeUtils::AlgToChainTool> m_algToChainTool {this, "AlgToChainTool", "", "Tool to retrieve chains for algorithm"};
35 };
36 
37 
38 #endif // TRIGSTEERMONITOR_TRIGERRORMONTOOL_H
TrigErrorMonTool::m_algToChainTool
ToolHandle< TrigCompositeUtils::AlgToChainTool > m_algToChainTool
Definition: TrigErrorMonTool.h:34
TrigErrorMonTool::initialize
virtual StatusCode initialize() override
Definition: TrigErrorMonTool.cxx:18
TrigErrorMonTool::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition: TrigErrorMonTool.h:32
TrigErrorMonTool
Retrieves and monitors all non-success status codes returned by algorithms.
Definition: TrigErrorMonTool.h:19
TrigErrorMonTool::TrigErrorMonTool
TrigErrorMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigErrorMonTool.cxx:12
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
TrigErrorMonTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigErrorMonTool.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITrigCostSvc.h
AthAlgTool.h
TrigErrorMonTool::finalize
virtual StatusCode finalize() override
Definition: TrigErrorMonTool.cxx:30
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ITrigErrorMonTool.h
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TrigErrorMonTool::algExecErrors
virtual std::unordered_map< std::string_view, StatusCode > algExecErrors(const EventContext &eventContext) const override
Produce a subset of IAlgExecStateSvc::algExecStates with only non-success StatusCodes and fill releva...
Definition: TrigErrorMonTool.cxx:39
AlgToChainTool.h
ServiceHandle< ITrigCostSvc >