BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
ValidJpsiRhopi Class Reference

#include <ValidJpsiRhopi.h>

+ Inheritance diagram for ValidJpsiRhopi:

Public Member Functions

 ValidJpsiRhopi (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 

Detailed Description

Definition at line 8 of file ValidJpsiRhopi.h.

Constructor & Destructor Documentation

◆ ValidJpsiRhopi()

ValidJpsiRhopi::ValidJpsiRhopi ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 12 of file ValidJpsiRhopi.cxx.

12 :
13 Algorithm(name, pSvcLocator) {
14
15 //Declare the properties
16 declareProperty("signal", m_signal = false);
17
18}

Member Function Documentation

◆ execute()

StatusCode ValidJpsiRhopi::execute ( )

Definition at line 44 of file ValidJpsiRhopi.cxx.

44 {
45
46 MsgStream log(msgSvc(), name());
47 log << MSG::INFO << "in execute()" << endreq;
48
49 StatusCode sc;
50 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
51 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
52 for(; it != end; it++) {
53 sc = (*it)->execute();
54 if(sc.isFailure())
55 log << "Error while executing " << (*it)->name() << endreq;
56 }
57
58 return StatusCode::SUCCESS;
59}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode ValidJpsiRhopi::finalize ( )

Definition at line 64 of file ValidJpsiRhopi.cxx.

64 {
65
66 MsgStream log(msgSvc(), name());
67 log << MSG::INFO << "in finalize()" << endmsg;
68
69
70 return StatusCode::SUCCESS;
71}

◆ initialize()

StatusCode ValidJpsiRhopi::initialize ( )

Definition at line 22 of file ValidJpsiRhopi.cxx.

22 {
23 MsgStream log(msgSvc(), name());
24
25 log << MSG::INFO << "in initialize()" << endmsg;
26
27 StatusCode sc;
28
29 if (m_signal){
30 sc = createSubAlgorithm("rhopi", "rhopi", m_Signal);
31 if(sc.isFailure()) {
32 log << MSG::ERROR << "Error create 'rhopi' algorithm" << endreq;
33 return StatusCode::FAILURE;
34 }
35 }
36
37 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
38 return StatusCode::SUCCESS;
39
40}

The documentation for this class was generated from the following files: