BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
ValidJpsiRhopi.cxx
Go to the documentation of this file.
1
#include "GaudiKernel/MsgStream.h"
2
#include "GaudiKernel/AlgFactory.h"
3
#include "GaudiKernel/ISvcLocator.h"
4
#include "GaudiKernel/SmartDataPtr.h"
5
#include "GaudiKernel/IDataProviderSvc.h"
6
#include "GaudiKernel/PropertyMgr.h"
7
#include "
ValidJpsiRhopi/ValidJpsiRhopi.h
"
8
9
/////////////////////////////////////////////////////////////////////////////
10
DECLARE_COMPONENT(
ValidJpsiRhopi
)
11
12
ValidJpsiRhopi
::
ValidJpsiRhopi
(const
std
::
string
& name, ISvcLocator* pSvcLocator) :
13
Algorithm(name, pSvcLocator) {
14
15
//Declare the properties
16
declareProperty(
"signal"
, m_signal =
false
);
17
18
}
19
20
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
21
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
22
StatusCode
ValidJpsiRhopi::initialize
(){
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
}
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
44
StatusCode
ValidJpsiRhopi::execute
() {
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
}
60
61
62
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
63
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
64
StatusCode
ValidJpsiRhopi::finalize
() {
65
66
MsgStream log(
msgSvc
(), name());
67
log << MSG::INFO <<
"in finalize()"
<< endmsg;
68
69
70
return
StatusCode::SUCCESS;
71
}
72
73
74
msgSvc
IMessageSvc * msgSvc()
Definition
ServiceAccessor.h:13
ValidJpsiRhopi.h
ValidJpsiRhopi
Definition
ValidJpsiRhopi.h:8
ValidJpsiRhopi::finalize
StatusCode finalize()
Definition
ValidJpsiRhopi.cxx:64
ValidJpsiRhopi::execute
StatusCode execute()
Definition
ValidJpsiRhopi.cxx:44
ValidJpsiRhopi::initialize
StatusCode initialize()
Definition
ValidJpsiRhopi.cxx:22
std
Definition
RootEventData/RootEventData_rootcint.cxx:38
7.1.1
Validation
ValidJpsiRhopi
ValidJpsiRhopi-08-07-01
src
ValidJpsiRhopi.cxx
Generated by
1.12.0