CGEM BOSS
6.6.5.i
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
DedxCurAlg::DedxCurAlg
(
const
std::string& name,
8
ISvcLocator* pSvcLocator )
9
: Algorithm ( name, pSvcLocator ), m_pCalibDataSvc(0)
10
{
11
// Declare properties here.
12
13
}
14
15
16
StatusCode
DedxCurAlg::initialize
() {
17
StatusCode sc;
18
MsgStream log(
msgSvc
(), name());
19
log << MSG::INFO <<
"Initialize()"
<< endreq;
20
21
// So far don't have any properties, but in case we do some day..
22
// setProperties();
23
24
return
StatusCode::SUCCESS;
25
26
}
27
28
29
StatusCode
DedxCurAlg::execute
( ) {
30
31
MsgStream log(
msgSvc
(), name());
32
33
IDedxCurSvc
* vtxsvc;
34
Gaudi::svcLocator()->service(
"DedxCurSvc"
, vtxsvc);
35
for
(
int
i=0;i<5;i++){
36
std::cout<<
"vtxsvc->getSigma(i)"
<<vtxsvc->
getSigma
(i)<<std::endl;
37
std::cout<<
"vtxsvc->getCurve(i)"
<<vtxsvc->
getCurve
(i)<<std::endl;
38
}
39
40
return
StatusCode::SUCCESS;
41
}
42
43
StatusCode
DedxCurAlg::finalize
( ) {
44
45
MsgStream log(
msgSvc
(), name());
46
log << MSG::INFO
47
<<
" DedxCurAlg FINALIZE!! "
48
<< endreq;
49
50
return
StatusCode::SUCCESS;
51
}
52
53
DedxCurAlg.h
IDedxCurSvc.h
msgSvc
IMessageSvc * msgSvc()
Definition
ServiceAccessor.h:13
DedxCurAlg::DedxCurAlg
DedxCurAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DedxCurAlg.cxx:7
DedxCurAlg::finalize
StatusCode finalize()
Definition
DedxCurAlg.cxx:43
DedxCurAlg::initialize
StatusCode initialize()
Definition
DedxCurAlg.cxx:16
DedxCurAlg::execute
StatusCode execute()
Definition
DedxCurAlg.cxx:29
IDedxCurSvc
Definition
IDedxCurSvc.h:9
IDedxCurSvc::getCurve
virtual const double getCurve(int i)=0
IDedxCurSvc::getSigma
virtual const double getSigma(int i)=0
6.6.5.i
Mdc
DedxCurSvc
DedxCurSvc-00-00-17
src
DedxCurAlg.cxx
Generated by
1.12.0