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

#include <ValidPhyJPsill.h>

+ Inheritance diagram for ValidPhyJPsill:

Public Member Functions

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

Detailed Description

Definition at line 8 of file ValidPhyJPsill.h.

Constructor & Destructor Documentation

◆ ValidPhyJPsill()

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

Definition at line 12 of file ValidPhyJPsill.cxx.

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

Member Function Documentation

◆ execute()

StatusCode ValidPhyJPsill::execute ( )

Definition at line 61 of file ValidPhyJPsill.cxx.

61 {
62
63 MsgStream log(msgSvc(), name());
64 log << MSG::INFO << "in execute()" << endreq;
65
66 StatusCode sc;
67 std::vector<Algorithm*>::const_iterator it = subAlgorithms()->begin();
68 std::vector<Algorithm*>::const_iterator end = subAlgorithms()->end();
69 for(; it != end; it++) {
70 sc = (*it)->execute();
71 if(sc.isFailure())
72 log << "Error while executing " << (*it)->name() << endreq;
73 }
74
75 return StatusCode::SUCCESS;
76}
IMessageSvc * msgSvc()

◆ finalize()

StatusCode ValidPhyJPsill::finalize ( )

Definition at line 81 of file ValidPhyJPsill.cxx.

81 {
82
83 MsgStream log(msgSvc(), name());
84 log << MSG::INFO << "in finalize()" << endmsg;
85
86
87 return StatusCode::SUCCESS;
88}

◆ initialize()

StatusCode ValidPhyJPsill::initialize ( )

Definition at line 23 of file ValidPhyJPsill.cxx.

23 {
24 MsgStream log(msgSvc(), name());
25
26 log << MSG::INFO << "in initialize()" << endmsg;
27
28 StatusCode sc;
29
30 if (m_signal){
31 sc = createSubAlgorithm("Signal", "Signal", m_Signal);
32 if(sc.isFailure()) {
33 log << MSG::ERROR << "Error create 'Signal' algorithm" << endreq;
34 return StatusCode::FAILURE;
35 }
36 }
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
55 return StatusCode::SUCCESS;
56
57}

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