Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-27 07:03:47

0001 #include "HelloWorld.hh"
0002 #include "GaudiKernel/MsgStream.h"
0003 
0004 DECLARE_COMPONENT(HelloWorld)
0005 
0006 HelloWorld::HelloWorld(const std::string& name, ISvcLocator* ploc)
0007     : GaudiAlgorithm(name, ploc) {}
0008 
0009 StatusCode HelloWorld::initialize() {
0010 
0011   StatusCode sc = Algorithm::initialize();
0012   if (sc.isFailure())
0013     return sc;
0014 
0015   info() << "Hello World: Inilializing..." << endmsg;
0016   return StatusCode::SUCCESS;
0017 }
0018 
0019 StatusCode HelloWorld::execute() {
0020   info() << "Hello World: executing..." << endmsg;
0021   return StatusCode::SUCCESS;
0022 }
0023 
0024 StatusCode HelloWorld::finalize() {
0025   info() << "Hello World: Finalizing..." << endmsg;
0026   return Algorithm::finalize(); // must be executed last
0027 }