#include <ValidJpsiRhopi.h>
Definition at line 8 of file ValidJpsiRhopi.h.
◆ ValidJpsiRhopi()
ValidJpsiRhopi::ValidJpsiRhopi |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Definition at line 11 of file ValidJpsiRhopi.cxx.
11 :
12 Algorithm(name, pSvcLocator) {
13
14
15 declareProperty("signal", m_signal = false);
16
17}
◆ execute()
StatusCode ValidJpsiRhopi::execute |
( |
| ) |
|
Definition at line 43 of file ValidJpsiRhopi.cxx.
43 {
44
45 MsgStream log(
msgSvc(), name());
46 log << MSG::INFO << "in execute()" << endreq;
47
48 StatusCode sc;
49 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
50 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
51 for(; it != end; it++) {
52 sc = (*it)->execute();
53 if(sc.isFailure())
54 log << "Error while executing " << (*it)->name() << endreq;
55 }
56
57 return StatusCode::SUCCESS;
58}
◆ finalize()
StatusCode ValidJpsiRhopi::finalize |
( |
| ) |
|
Definition at line 63 of file ValidJpsiRhopi.cxx.
63 {
64
65 MsgStream log(
msgSvc(), name());
66 log << MSG::INFO << "in finalize()" << endmsg;
67
68
69 return StatusCode::SUCCESS;
70}
◆ initialize()
StatusCode ValidJpsiRhopi::initialize |
( |
| ) |
|
Definition at line 21 of file ValidJpsiRhopi.cxx.
21 {
22 MsgStream log(
msgSvc(), name());
23
24 log << MSG::INFO << "in initialize()" << endmsg;
25
26 StatusCode sc;
27
28 if (m_signal){
29 sc = createSubAlgorithm("rhopi", "rhopi", m_Signal);
30 if(sc.isFailure()) {
31 log << MSG::ERROR << "Error create 'Signal' algorithm" << endreq;
32 return StatusCode::FAILURE;
33 }
34 }
35
36 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
37 return StatusCode::SUCCESS;
38
39}
The documentation for this class was generated from the following files: