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"
11DECLARE_COMPONENT(
PPbar)
14 Algorithm(name, pSvcLocator) {
16 declareProperty (
"testv", m_testv =
false);
22 MsgStream log(
msgSvc(), name());
24 log << MSG::INFO <<
"in initialize()" << endmsg;
28 sc = createSubAlgorithm(
"TestV",
"TestV", m_TestV);
30 log << MSG::ERROR <<
"Error create 'TestV' algorithm" << endreq;
31 return StatusCode::FAILURE;
51 log << MSG::INFO <<
"successfully return from initialize()" <<endmsg;
52 return StatusCode::SUCCESS;
58 MsgStream log(
msgSvc(), name());
59 log << MSG::INFO <<
"in execute()" << endreq;
61 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
62 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
63 for(; it != end; it++) {
64 sc = (*it)->execute();
66 log <<
"Error while executing " << (*it)->name() << endreq;
68 return StatusCode::SUCCESS;
73 MsgStream log(
msgSvc(), name());
74 log << MSG::INFO <<
"in finalize()" << endmsg;
75 return StatusCode::SUCCESS;