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) {
15 declareProperty (
"testv", m_testv =
false);
21 MsgStream log(
msgSvc(), name());
23 log << MSG::INFO <<
"in initialize()" << endmsg;
27 sc = createSubAlgorithm(
"TestV",
"TestV", m_TestV);
29 log << MSG::ERROR <<
"Error create 'TestV' algorithm" << endreq;
30 return StatusCode::FAILURE;
50 log << MSG::INFO <<
"successfully return from initialize()" <<endmsg;
51 return StatusCode::SUCCESS;
57 MsgStream log(
msgSvc(), name());
58 log << MSG::INFO <<
"in execute()" << endreq;
60 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
61 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
62 for(; it != end; it++) {
63 sc = (*it)->execute();
65 log <<
"Error while executing " << (*it)->name() << endreq;
67 return StatusCode::SUCCESS;
72 MsgStream log(
msgSvc(), name());
73 log << MSG::INFO <<
"in finalize()" << endmsg;
74 return StatusCode::SUCCESS;
PPbar(const std::string &name, ISvcLocator *pSvcLocator)