ATLAS Offline Software
Loading...
Searching...
No Matches
HiveAlgL3.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "HiveAlgL3.h"
6#include "GaudiKernel/ServiceHandle.h"
7#include <thread>
8#include <chrono>
9#include <memory>
10
11HiveAlgL3::HiveAlgL3( const std::string& name,
12 ISvcLocator* pSvcLocator ) :
13 ::HiveAlgBase( name, pSvcLocator )
14 ,m_udh1("l1")
15{
16
17 declareProperty("Key_U1",m_udh1);
18
19}
20
22
24 ATH_MSG_DEBUG("initialize " << name());
25
26 ATH_CHECK( m_udh1.initialize() );
27
29}
30
31StatusCode HiveAlgL3::finalize() {
32 ATH_MSG_DEBUG("finalize " << name());
33 return StatusCode::SUCCESS;
34}
35
36StatusCode HiveAlgL3::execute() {
37
38 ATH_MSG_DEBUG("execute " << name());
39
40 sleep();
41
43
44 udh1->val( udh1->val() + 1);
45
46 ATH_MSG_INFO(" update: " << udh1.key() << " = " << udh1->val() );
47
48 return StatusCode::SUCCESS;
49
50}
51
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
unsigned int sleep()
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
SG::UpdateHandleKey< HiveDataObj > m_udh1
Definition HiveAlgL3.h:33
StatusCode execute()
Definition HiveAlgL3.cxx:36
StatusCode initialize()
Definition HiveAlgL3.cxx:23
HiveAlgL3(const std::string &name, ISvcLocator *pSvcLocator)
Definition HiveAlgL3.cxx:11
StatusCode finalize()
Definition HiveAlgL3.cxx:31
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.