1#include "GaudiKernel/MsgStream.h"
2#include "GaudiKernel/AlgFactory.h"
3#include "GaudiKernel/ISvcLocator.h"
4#include "GaudiKernel/SmartDataPtr.h"
5#include "GaudiKernel/IDataProviderSvc.h"
6#include "GaudiKernel/PropertyMgr.h"
13 Algorithm(name, pSvcLocator) {
16 declareProperty(
"signal", m_signal =
false);
24 MsgStream log(
msgSvc(), name());
26 log << MSG::INFO <<
"in initialize()" << endmsg;
31 sc = createSubAlgorithm(
"Signal",
"Signal", m_Signal);
33 log << MSG::ERROR <<
"Error create 'Signal' algorithm" << endreq;
34 return StatusCode::FAILURE;
54 log << MSG::INFO <<
"successfully return from initialize()" <<endmsg;
55 return StatusCode::SUCCESS;
63 MsgStream log(
msgSvc(), name());
64 log << MSG::INFO <<
"in execute()" << endreq;
67 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
68 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
69 for(; it != end; it++) {
70 sc = (*it)->execute();
72 log <<
"Error while executing " << (*it)->name() << endreq;
75 return StatusCode::SUCCESS;
83 MsgStream log(
msgSvc(), name());
84 log << MSG::INFO <<
"in finalize()" << endmsg;
87 return StatusCode::SUCCESS;