ATLAS Offline Software
TrigErrorMonTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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 class IAlgExecStateSvc;
15 
20 class TrigErrorMonTool : public extends<AthAlgTool, ITrigErrorMonTool> {
21 public:
22  TrigErrorMonTool(const std::string& type, const std::string& name, const IInterface* parent);
23 
24  // ------------------------- IStateful methods -------------------------------
25  virtual StatusCode initialize() override;
26  virtual StatusCode finalize() override;
27 
28  // ------------------------- ITrigErrorMonTool methods -----------------------
30  virtual std::unordered_map<std::string_view, StatusCode> algExecErrors(const EventContext& eventContext) const override;
31 
32 private:
33  ServiceHandle<IAlgExecStateSvc> m_aess{this, "AlgExecStateSvc", "AlgExecStateSvc"};
35  ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
36  ToolHandle<TrigCompositeUtils::AlgToChainTool> m_algToChainTool {this, "AlgToChainTool", "", "Tool to retrieve chains for algorithm"};
37 };
38 
39 
40 #endif // TRIGSTEERMONITOR_TRIGERRORMONTOOL_H
TrigErrorMonTool::m_algToChainTool
ToolHandle< TrigCompositeUtils::AlgToChainTool > m_algToChainTool
Definition: TrigErrorMonTool.h:36
TrigErrorMonTool::initialize
virtual StatusCode initialize() override
Definition: TrigErrorMonTool.cxx:17
TrigErrorMonTool::m_trigCostSvcHandle
ServiceHandle< ITrigCostSvc > m_trigCostSvcHandle
Definition: TrigErrorMonTool.h:34
TrigErrorMonTool
Retrieves and monitors all non-success status codes returned by algorithms.
Definition: TrigErrorMonTool.h:20
TrigErrorMonTool::TrigErrorMonTool
TrigErrorMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TrigErrorMonTool.cxx:11
TrigErrorMonTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigErrorMonTool.h:35
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.
TrigErrorMonTool::m_aess
ServiceHandle< IAlgExecStateSvc > m_aess
Definition: TrigErrorMonTool.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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:40
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AlgToChainTool.h
ServiceHandle< IAlgExecStateSvc >