ATLAS Offline Software
NswPassivationTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef NswPassivationTestAlg_H
6 #define NswPassivationTestAlg_H
7 
8 // STL
9 #include <chrono>
10 #include <string>
11 
12 // Athena
17 
18 
20 public:
21  NswPassivationTestAlg(const std::string &name, ISvcLocator *pSvcLocator);
22  virtual ~NswPassivationTestAlg() override;
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute(const EventContext &) const override;
26 
27 private:
28  StatusCode retrieve(const EventContext &, std::chrono::duration<double> &) const;
29  std::string timestamp() const;
30 
32  this, "ReadKey", "NswPassivationDbData",
33  "Key of NswPassivationDbData object containing passivation data"};
34  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
35 
36 }; // end of class
37 
38 #endif
NswPassivationTestAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: NswPassivationTestAlg.cxx:38
NswPassivationTestAlg::NswPassivationTestAlg
NswPassivationTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: NswPassivationTestAlg.cxx:24
NswPassivationTestAlg::retrieve
StatusCode retrieve(const EventContext &, std::chrono::duration< double > &) const
Definition: NswPassivationTestAlg.cxx:55
NswPassivationTestAlg
Definition: NswPassivationTestAlg.h:19
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
NswPassivationDbData.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
NswPassivationTestAlg::~NswPassivationTestAlg
virtual ~NswPassivationTestAlg() override
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
NswPassivationTestAlg::initialize
virtual StatusCode initialize() override
Definition: NswPassivationTestAlg.cxx:30
SG::ReadCondHandleKey< NswPassivationDbData >
NswPassivationTestAlg::timestamp
std::string timestamp() const
Definition: NswPassivationTestAlg.cxx:108
NswPassivationTestAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: NswPassivationTestAlg.h:34
NswPassivationTestAlg::m_readKey
SG::ReadCondHandleKey< NswPassivationDbData > m_readKey
Definition: NswPassivationTestAlg.h:31
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >