2#include "GaudiKernel/MsgStream.h"
7 Algorithm(name, pSvcLocator), m_myInt(0), m_myBool(0), m_myDouble(0)
10 declareProperty(
"MyInt", m_myInt);
11 declareProperty(
"MyBool", m_myBool);
12 declareProperty(
"MyDouble", m_myDouble);
13 declareProperty(
"MyStringVec",m_myStringVec);
21 MsgStream log(
msgSvc(), name());
22 log << MSG::INFO <<
" HelloWorld initialize()" << endreq;
25 log << MSG::INFO <<
" MyInt = " << m_myInt << endreq;
26 log << MSG::INFO <<
" MyBool = " << (int)m_myBool << endreq;
27 log << MSG::INFO <<
" MyDouble = " << m_myDouble << endreq;
29 for (
unsigned int i=0; i<m_myStringVec.size(); i++) {
30 log << MSG::INFO <<
" MyStringVec[" << i <<
"] = " << m_myStringVec[i]
34 return StatusCode::SUCCESS;
42 MsgStream log(
msgSvc(), name());
43 log << MSG::INFO <<
"AtlasHelloWorld execute()" << endreq;
46 log << MSG::DEBUG <<
"A DEBUG message" << endreq;
47 log << MSG::INFO <<
"An INFO message" << endreq;
48 log << MSG::WARNING <<
"A WARNING message" << endreq;
49 log << MSG::ERROR <<
"An ERROR message" << endreq;
50 log << MSG::FATAL <<
"A FATAL error message" << endreq;
52 return StatusCode::SUCCESS;
60 MsgStream log(
msgSvc(), name());
61 log << MSG::INFO <<
"HelloWorld finalize()" << endreq;
63 return StatusCode::SUCCESS;
HelloWorld(const std::string &name, ISvcLocator *pSvcLocator)