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);
23 MsgStream log(
msgSvc(), name());
25 log << MSG::INFO <<
"in initialize()" << endmsg;
30 sc = createSubAlgorithm(
"rhopi",
"rhopi", m_Signal);
32 log << MSG::ERROR <<
"Error create 'rhopi' algorithm" << endreq;
33 return StatusCode::FAILURE;
37 log << MSG::INFO <<
"successfully return from initialize()" <<endmsg;
38 return StatusCode::SUCCESS;
46 MsgStream log(
msgSvc(), name());
47 log << MSG::INFO <<
"in execute()" << endreq;
50 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
51 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
52 for(; it != end; it++) {
53 sc = (*it)->execute();
55 log <<
"Error while executing " << (*it)->name() << endreq;
58 return StatusCode::SUCCESS;
66 MsgStream log(
msgSvc(), name());
67 log << MSG::INFO <<
"in finalize()" << endmsg;
70 return StatusCode::SUCCESS;