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

#include <PPbar.h>

+ Inheritance diagram for PPbar:

Public Member Functions

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

Detailed Description

Definition at line 8 of file PPbar.h.

Constructor & Destructor Documentation

◆ PPbar()

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

Definition at line 13 of file PPbar.cxx.

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

Member Function Documentation

◆ 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}
IMessageSvc * msgSvc()

◆ 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// if (m_signal){
36// sc = createSubAlgorithm("Signal", "Signal", m_Signal);
37// if(sc.isFailure()) {
38// log << MSG::ERROR << "Error create 'Signal' algorithm" << endreq;
39// return StatusCode::FAILURE;
40// }
41// }
42//
43// if (m_mctruth){
44// sc = createSubAlgorithm("McTruth", "McTruth", m_McTruth);
45// if(sc.isFailure()) {
46// log << MSG::ERROR << "Error create 'McTruth' algorithm" << endreq;
47// return StatusCode::FAILURE;
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: