#include "Hello.h" #include "HelloTool.h" #include "HelloWorld/HelloSvc.h" #include "SniperKernel/AlgFactory.h" #include "SniperKernel/SniperPtr.h" DECLARE_ALGORITHM(HelloAlg); HelloAlg::HelloAlg(const std::string& name) : AlgBase(name) { m_count = 0; declProp("VarString", m_string); } HelloAlg::~HelloAlg() { } bool HelloAlg::initialize() { return true; } bool HelloAlg::execute() { ++m_count; LogInfo << "executing: " << m_count << std::endl; SniperPtr hs(getParent(), "hSvc"); if (hs.valid()) { hs->doSomething(); } HelloTool* htool = tool("htool"); htool->doSomething(); return true; } bool HelloAlg::finalize() { return true; }