You need to sign in or sign up before continuing.
Newer
Older
#include "HelloWorld.hh"
#include "GaudiKernel/MsgStream.h"
DECLARE_COMPONENT(HelloWorld)
HelloWorld::HelloWorld(const std::string& name, ISvcLocator* ploc)
StatusCode HelloWorld::initialize() {
StatusCode sc = Algorithm::initialize();
if (sc.isFailure())
return sc;
info() << "Hello World: Inilializing..." << endmsg;
return StatusCode::SUCCESS;
}
StatusCode HelloWorld::execute() {
return StatusCode::SUCCESS;
}
StatusCode HelloWorld::finalize() {
info() << "Hello World: Finalizing..." << endmsg;
return Algorithm::finalize(); // must be executed last
}