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