BOSS
8.0.0
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/Bootstrap.h"
4
#include "GaudiKernel/IDataProviderSvc.h"
5
#include "GaudiKernel/ISvcLocator.h"
6
7
DECLARE_COMPONENT
(
DedxCurAlg
)
8
9
DedxCurAlg
::
DedxCurAlg
( const
std
::
string
& name, ISvcLocator* pSvcLocator )
10
: Algorithm( name, pSvcLocator ), m_pCalibDataSvc( 0 ) {
11
// Declare properties here.
12
}
13
14
StatusCode
DedxCurAlg::initialize
() {
15
StatusCode sc;
16
MsgStream log(
msgSvc
(), name() );
17
log << MSG::INFO <<
"Initialize()"
<< endmsg;
18
19
// So far don't have any properties, but in case we do some day..
20
// setProperties();
21
22
return
StatusCode::SUCCESS;
23
}
24
25
StatusCode
DedxCurAlg::execute
() {
26
27
MsgStream log(
msgSvc
(), name() );
28
29
IDedxCurSvc
* vtxsvc;
30
Gaudi::svcLocator()->service(
"DedxCurSvc"
, vtxsvc );
31
for
(
int
i = 0; i < 5; i++ )
32
{
33
std::cout <<
"vtxsvc->getSigma(i)"
<< vtxsvc->
getSigma
( i ) << std::endl;
34
std::cout <<
"vtxsvc->getCurve(i)"
<< vtxsvc->
getCurve
( i ) << std::endl;
35
}
36
37
return
StatusCode::SUCCESS;
38
}
39
40
StatusCode
DedxCurAlg::finalize
() {
41
42
MsgStream log(
msgSvc
(), name() );
43
log << MSG::INFO <<
" DedxCurAlg FINALIZE!! "
<< endmsg;
44
45
return
StatusCode::SUCCESS;
46
}
DECLARE_COMPONENT
DECLARE_COMPONENT(BesBdkRc)
DedxCurAlg.h
msgSvc
IMessageSvc * msgSvc()
Definition
ServiceAccessor.h:12
DedxCurAlg
Simple algorithm to test functioning of "the other" TDS.
Definition
DedxCurAlg.h:11
DedxCurAlg::DedxCurAlg
DedxCurAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
DedxCurAlg.cxx:9
DedxCurAlg::finalize
StatusCode finalize()
Definition
DedxCurAlg.cxx:40
DedxCurAlg::initialize
StatusCode initialize()
Definition
DedxCurAlg.cxx:14
DedxCurAlg::execute
StatusCode execute()
Definition
DedxCurAlg.cxx:25
IDedxCurSvc
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/DedxCurSvc/IDedxCurSvc.h:9
IDedxCurSvc::getCurve
virtual const double getCurve(int i)=0
IDedxCurSvc::getSigma
virtual const double getSigma(int i)=0
std
Definition
x86_64-el9-gcc13-dbg/Event/RootEventData/RootEventDataDict.cxx:101
8.0.0
BOSS_Source
Mdc
DedxCurSvc
src
DedxCurAlg.cxx
Generated by
1.16.1