BOSS
7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCurAlg.cxx
Go to the documentation of this file.
1
#include "
DedxCurAlg.h
"
2
#include "
DedxCurSvc/IDedxCurSvc.h
"
3
#include "GaudiKernel/ISvcLocator.h"
4
#include "GaudiKernel/IDataProviderSvc.h"
5
#include "GaudiKernel/Bootstrap.h"
6
7
DECLARE_COMPONENT(
DedxCurAlg
)
8
9
DedxCurAlg
::
DedxCurAlg
( const
std
::
string
& name,
10
ISvcLocator* pSvcLocator )
11
: Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
12
{
13
// Declare properties here.
14
15
}
16
17
18
StatusCode
DedxCurAlg::initialize
() {
19
StatusCode sc;
20
MsgStream log(
msgSvc
(), name());
21
log << MSG::INFO <<
"Initialize()"
<< endreq;
22
23
// So far don't have any properties, but in case we do some day..
24
// setProperties();
25
26
return
StatusCode::SUCCESS;
27
28
}
29
30
31
StatusCode
DedxCurAlg::execute
( ) {
32
33
MsgStream log(
msgSvc
(), name());
34
35
IDedxCurSvc
* vtxsvc;
36
Gaudi::svcLocator()->service(
"DedxCurSvc"
, vtxsvc);
37
for
(
int
i=0;i<5;i++){
38
std::cout<<
"vtxsvc->getSigma(i)"
<<vtxsvc->
getSigma
(i)<<std::endl;
39
std::cout<<
"vtxsvc->getCurve(i)"
<<vtxsvc->
getCurve
(i)<<std::endl;
40
}
41
42
return
StatusCode::SUCCESS;
43
}
44
45
StatusCode
DedxCurAlg::finalize
( ) {
46
47
MsgStream log(
msgSvc
(), name());
48
log << MSG::INFO
49
<<
" DedxCurAlg FINALIZE!! "
50
<< endreq;
51
52
return
StatusCode::SUCCESS;
53
}
54
55
DedxCurAlg.h
IDedxCurSvc.h
msgSvc
IMessageSvc * msgSvc()
Definition
ServiceAccessor.h:13
DedxCurAlg
Simple algorithm to test functioning of "the other" TDS.
Definition
DedxCurAlg.h:10
DedxCurAlg::finalize
StatusCode finalize()
Definition
DedxCurAlg.cxx:45
DedxCurAlg::initialize
StatusCode initialize()
Definition
DedxCurAlg.cxx:18
DedxCurAlg::execute
StatusCode execute()
Definition
DedxCurAlg.cxx:31
IDedxCurSvc
Definition
IDedxCurSvc.h:9
IDedxCurSvc::getCurve
virtual const double getCurve(int i)=0
IDedxCurSvc::getSigma
virtual const double getSigma(int i)=0
std
Definition
RootEventData/RootEventData_rootcint.cxx:38
7.1.1
Mdc
DedxCurSvc
DedxCurSvc-00-01-00
src
DedxCurAlg.cxx
Generated by
1.12.0