ATLAS Offline Software
AsgService.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 
9 
10 // Local include(s):
11 #include "AsgServices/AsgService.h"
12 
13 // System include(s):
14 #include <iostream>
15 
16 namespace asg
17 {
19  AsgService( const std::string& name,
20  ISvcLocator* pSvcLocator )
21 #ifndef XAOD_STANDALONE
22  : base_class(name, pSvcLocator)
23 #else
24  : base_class(name)
25 #endif
26  {
27  (void) pSvcLocator; // suppress compiler warning in XAOD_STANDALONE
28  }
29 
31  initialize ()
32  {
33  return StatusCode::SUCCESS;
34  }
35 
36 
37 
39  finalize ()
40  {
41  return StatusCode::SUCCESS;
42  }
43 
44 
45 
46  void AsgService::print() const
47  {
48  ATH_MSG_INFO( "AsgService " << name() << " @ " << this );
49  return;
50  }
51 
52 } // namespace asg
AsgService.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
asg::AsgService::finalize
virtual StatusCode finalize()
Definition: AsgService.cxx:39
asg
Definition: DataHandleTestTool.h:28
asg::AsgService::print
virtual void print() const
Print the state of the service.
Definition: AsgService.cxx:46
asg::AsgService::initialize
virtual StatusCode initialize()
set up/tear down functions
Definition: AsgService.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
asg::AsgService::AsgService
AsgService(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AsgService.cxx:19