#include <PPbar.h>
Definition at line 8 of file PPbar.h.
◆ PPbar()
PPbar::PPbar |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
Definition at line 13 of file PPbar.cxx.
13 :
14 Algorithm(name, pSvcLocator) {
15
16 declareProperty ("testv", m_testv = false);
17
18
19}
◆ execute()
StatusCode PPbar::execute |
( |
| ) |
|
Definition at line 56 of file PPbar.cxx.
56 {
57
58 MsgStream log(
msgSvc(), name());
59 log << MSG::INFO << "in execute()" << endreq;
60 StatusCode sc;
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();
65 if(sc.isFailure())
66 log << "Error while executing " << (*it)->name() << endreq;
67 }
68 return StatusCode::SUCCESS;
69}
◆ finalize()
StatusCode PPbar::finalize |
( |
| ) |
|
Definition at line 72 of file PPbar.cxx.
72 {
73 MsgStream log(
msgSvc(), name());
74 log << MSG::INFO << "in finalize()" << endmsg;
75 return StatusCode::SUCCESS;
76}
◆ initialize()
StatusCode PPbar::initialize |
( |
| ) |
|
Definition at line 21 of file PPbar.cxx.
21 {
22 MsgStream log(
msgSvc(), name());
23
24 log << MSG::INFO << "in initialize()" << endmsg;
25 StatusCode sc;
26
27 if (m_testv){
28 sc = createSubAlgorithm("TestV", "TestV", m_TestV);
29 if(sc.isFailure()) {
30 log << MSG::ERROR << "Error create 'TestV' algorithm" << endreq;
31 return StatusCode::FAILURE;
32 }
33 }
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
52 return StatusCode::SUCCESS;
53}
The documentation for this class was generated from the following files: