ATLAS Offline Software
Loading...
Searching...
No Matches
MonitoredAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHEXMONITORED_MONITOREDALG_H
6#define ATHEXMONITORED_MONITOREDALG_H 1
7
8#include "GaudiKernel/ToolHandle.h"
9#include "Gaudi/Property.h"
12
13#include <string>
14
15class MonitoredAlg : public AthAlgorithm {
16public:
17 MonitoredAlg( const std::string& name, ISvcLocator* pSvcLocator );
18 StatusCode initialize();
19 StatusCode execute();
20
21private:
22 ToolHandle<GenericMonitoringTool> m_monTool{this,"MonTool","","Monitoring tool"};
23 uint32_t m_seed = 1234;
24};
25
26
27#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
uint32_t m_seed
ToolHandle< GenericMonitoringTool > m_monTool
StatusCode execute()
MonitoredAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize()