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"
10DECLARE_COMPONENT(
KsKpi)
12 Algorithm(name, pSvcLocator) {
15 declareProperty(
"signal", m_signal =
false);
22 MsgStream log(
msgSvc(), name());
24 log << MSG::INFO <<
"in initialize()" << endmsg;
29 sc = createSubAlgorithm(
"Signal",
"Signal", m_Signal);
31 log << MSG::ERROR <<
"Error create 'Signal' algorithm" << endreq;
32 return StatusCode::FAILURE;
36 log << MSG::INFO <<
"successfully return from initialize()" <<endmsg;
37 return StatusCode::SUCCESS;
45 MsgStream log(
msgSvc(), name());
46 log << MSG::INFO <<
"in execute()" << endreq;
49 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
50 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
51 for(; it != end; it++) {
52 sc = (*it)->execute();
54 log <<
"Error while executing " << (*it)->name() << endreq;
57 return StatusCode::SUCCESS;
65 MsgStream log(
msgSvc(), name());
66 log << MSG::INFO <<
"in finalize()" << endmsg;
69 return StatusCode::SUCCESS;